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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AuthorizationErrorException Object
/// </summary>
public class AuthorizationErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<AuthorizationErrorException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AuthorizationErrorException 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 AuthorizationErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
AuthorizationErrorException unmarshalledObject = new AuthorizationErrorException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static AuthorizationErrorExceptionUnmarshaller _instance = new AuthorizationErrorExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AuthorizationErrorExceptionUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchDeleteImportDataError Object
/// </summary>
public class BatchDeleteImportDataErrorUnmarshaller : IUnmarshaller<BatchDeleteImportDataError, XmlUnmarshallerContext>, IUnmarshaller<BatchDeleteImportDataError, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchDeleteImportDataError IUnmarshaller<BatchDeleteImportDataError, 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 BatchDeleteImportDataError Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchDeleteImportDataError unmarshalledObject = new BatchDeleteImportDataError();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("errorCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("errorDescription", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ErrorDescription = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("importTaskId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ImportTaskId = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchDeleteImportDataErrorUnmarshaller _instance = new BatchDeleteImportDataErrorUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchDeleteImportDataErrorUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchDeleteImportData Request Marshaller
/// </summary>
public class BatchDeleteImportDataRequestMarshaller : IMarshaller<IRequest, BatchDeleteImportDataRequest> , 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((BatchDeleteImportDataRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(BatchDeleteImportDataRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.BatchDeleteImportData";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetImportTaskIds())
{
context.Writer.WritePropertyName("importTaskIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestImportTaskIdsListValue in publicRequest.ImportTaskIds)
{
context.Writer.Write(publicRequestImportTaskIdsListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static BatchDeleteImportDataRequestMarshaller _instance = new BatchDeleteImportDataRequestMarshaller();
internal static BatchDeleteImportDataRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchDeleteImportDataRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 108 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchDeleteImportData operation
/// </summary>
public class BatchDeleteImportDataResponseUnmarshaller : 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)
{
BatchDeleteImportDataResponse response = new BatchDeleteImportDataResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("errors", targetDepth))
{
var unmarshaller = new ListUnmarshaller<BatchDeleteImportDataError, BatchDeleteImportDataErrorUnmarshaller>(BatchDeleteImportDataErrorUnmarshaller.Instance);
response.Errors = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static BatchDeleteImportDataResponseUnmarshaller _instance = new BatchDeleteImportDataResponseUnmarshaller();
internal static BatchDeleteImportDataResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchDeleteImportDataResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConfigurationTag Object
/// </summary>
public class ConfigurationTagUnmarshaller : IUnmarshaller<ConfigurationTag, XmlUnmarshallerContext>, IUnmarshaller<ConfigurationTag, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ConfigurationTag IUnmarshaller<ConfigurationTag, 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 ConfigurationTag Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ConfigurationTag unmarshalledObject = new ConfigurationTag();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("configurationId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ConfigurationId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("configurationType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ConfigurationType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("key", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Key = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("timeOfCreation", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.TimeOfCreation = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("value", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ConfigurationTagUnmarshaller _instance = new ConfigurationTagUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConfigurationTagUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConflictErrorException Object
/// </summary>
public class ConflictErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictErrorException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ConflictErrorException 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 ConflictErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ConflictErrorException unmarshalledObject = new ConflictErrorException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ConflictErrorExceptionUnmarshaller _instance = new ConflictErrorExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConflictErrorExceptionUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ContinuousExportDescription Object
/// </summary>
public class ContinuousExportDescriptionUnmarshaller : IUnmarshaller<ContinuousExportDescription, XmlUnmarshallerContext>, IUnmarshaller<ContinuousExportDescription, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ContinuousExportDescription IUnmarshaller<ContinuousExportDescription, 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 ContinuousExportDescription Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ContinuousExportDescription unmarshalledObject = new ContinuousExportDescription();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("dataSource", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DataSource = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("exportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ExportId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("s3Bucket", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.S3Bucket = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("schemaStorageConfig", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.SchemaStorageConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("startTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.StartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("statusDetail", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusDetail = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("stopTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.StopTime = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ContinuousExportDescriptionUnmarshaller _instance = new ContinuousExportDescriptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ContinuousExportDescriptionUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateApplication Request Marshaller
/// </summary>
public class CreateApplicationRequestMarshaller : IMarshaller<IRequest, CreateApplicationRequest> , 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((CreateApplicationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateApplicationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.CreateApplication";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetDescription())
{
context.Writer.WritePropertyName("description");
context.Writer.Write(publicRequest.Description);
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(publicRequest.Name);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateApplicationRequestMarshaller _instance = new CreateApplicationRequestMarshaller();
internal static CreateApplicationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateApplicationRequestMarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateApplication operation
/// </summary>
public class CreateApplicationResponseUnmarshaller : 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)
{
CreateApplicationResponse response = new CreateApplicationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("configurationId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ConfigurationId = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateApplicationResponseUnmarshaller _instance = new CreateApplicationResponseUnmarshaller();
internal static CreateApplicationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateApplicationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateTags Request Marshaller
/// </summary>
public class CreateTagsRequestMarshaller : IMarshaller<IRequest, CreateTagsRequest> , 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((CreateTagsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateTagsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.CreateTags";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetConfigurationIds())
{
context.Writer.WritePropertyName("configurationIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestConfigurationIdsListValue in publicRequest.ConfigurationIds)
{
context.Writer.Write(publicRequestConfigurationIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagsListValue in publicRequest.Tags)
{
context.Writer.WriteObjectStart();
var marshaller = TagMarshaller.Instance;
marshaller.Marshall(publicRequestTagsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateTagsRequestMarshaller _instance = new CreateTagsRequestMarshaller();
internal static CreateTagsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateTagsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateTags operation
/// </summary>
public class CreateTagsResponseUnmarshaller : 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)
{
CreateTagsResponse response = new CreateTagsResponse();
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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateTagsResponseUnmarshaller _instance = new CreateTagsResponseUnmarshaller();
internal static CreateTagsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateTagsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 119 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CustomerAgentInfo Object
/// </summary>
public class CustomerAgentInfoUnmarshaller : IUnmarshaller<CustomerAgentInfo, XmlUnmarshallerContext>, IUnmarshaller<CustomerAgentInfo, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
CustomerAgentInfo IUnmarshaller<CustomerAgentInfo, 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 CustomerAgentInfo Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
CustomerAgentInfo unmarshalledObject = new CustomerAgentInfo();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("activeAgents", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ActiveAgents = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("blackListedAgents", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.BlackListedAgents = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("healthyAgents", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.HealthyAgents = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("shutdownAgents", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ShutdownAgents = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("totalAgents", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.TotalAgents = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unhealthyAgents", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnhealthyAgents = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unknownAgents", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnknownAgents = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CustomerAgentInfoUnmarshaller _instance = new CustomerAgentInfoUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CustomerAgentInfoUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CustomerAgentlessCollectorInfo Object
/// </summary>
public class CustomerAgentlessCollectorInfoUnmarshaller : IUnmarshaller<CustomerAgentlessCollectorInfo, XmlUnmarshallerContext>, IUnmarshaller<CustomerAgentlessCollectorInfo, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
CustomerAgentlessCollectorInfo IUnmarshaller<CustomerAgentlessCollectorInfo, 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 CustomerAgentlessCollectorInfo Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
CustomerAgentlessCollectorInfo unmarshalledObject = new CustomerAgentlessCollectorInfo();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("activeAgentlessCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ActiveAgentlessCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("denyListedAgentlessCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.DenyListedAgentlessCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("healthyAgentlessCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.HealthyAgentlessCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("shutdownAgentlessCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ShutdownAgentlessCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("totalAgentlessCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.TotalAgentlessCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unhealthyAgentlessCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnhealthyAgentlessCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unknownAgentlessCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnknownAgentlessCollectors = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CustomerAgentlessCollectorInfoUnmarshaller _instance = new CustomerAgentlessCollectorInfoUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CustomerAgentlessCollectorInfoUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CustomerConnectorInfo Object
/// </summary>
public class CustomerConnectorInfoUnmarshaller : IUnmarshaller<CustomerConnectorInfo, XmlUnmarshallerContext>, IUnmarshaller<CustomerConnectorInfo, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
CustomerConnectorInfo IUnmarshaller<CustomerConnectorInfo, 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 CustomerConnectorInfo Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
CustomerConnectorInfo unmarshalledObject = new CustomerConnectorInfo();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("activeConnectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ActiveConnectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("blackListedConnectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.BlackListedConnectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("healthyConnectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.HealthyConnectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("shutdownConnectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ShutdownConnectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("totalConnectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.TotalConnectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unhealthyConnectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnhealthyConnectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unknownConnectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnknownConnectors = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CustomerConnectorInfoUnmarshaller _instance = new CustomerConnectorInfoUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CustomerConnectorInfoUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CustomerMeCollectorInfo Object
/// </summary>
public class CustomerMeCollectorInfoUnmarshaller : IUnmarshaller<CustomerMeCollectorInfo, XmlUnmarshallerContext>, IUnmarshaller<CustomerMeCollectorInfo, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
CustomerMeCollectorInfo IUnmarshaller<CustomerMeCollectorInfo, 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 CustomerMeCollectorInfo Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
CustomerMeCollectorInfo unmarshalledObject = new CustomerMeCollectorInfo();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("activeMeCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ActiveMeCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("denyListedMeCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.DenyListedMeCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("healthyMeCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.HealthyMeCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("shutdownMeCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ShutdownMeCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("totalMeCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.TotalMeCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unhealthyMeCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnhealthyMeCollectors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("unknownMeCollectors", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.UnknownMeCollectors = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CustomerMeCollectorInfoUnmarshaller _instance = new CustomerMeCollectorInfoUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CustomerMeCollectorInfoUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteApplications Request Marshaller
/// </summary>
public class DeleteApplicationsRequestMarshaller : IMarshaller<IRequest, DeleteApplicationsRequest> , 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((DeleteApplicationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteApplicationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DeleteApplications";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetConfigurationIds())
{
context.Writer.WritePropertyName("configurationIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestConfigurationIdsListValue in publicRequest.ConfigurationIds)
{
context.Writer.Write(publicRequestConfigurationIdsListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteApplicationsRequestMarshaller _instance = new DeleteApplicationsRequestMarshaller();
internal static DeleteApplicationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteApplicationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 108 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteApplications operation
/// </summary>
public class DeleteApplicationsResponseUnmarshaller : 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)
{
DeleteApplicationsResponse response = new DeleteApplicationsResponse();
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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteApplicationsResponseUnmarshaller _instance = new DeleteApplicationsResponseUnmarshaller();
internal static DeleteApplicationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteApplicationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteTags Request Marshaller
/// </summary>
public class DeleteTagsRequestMarshaller : IMarshaller<IRequest, DeleteTagsRequest> , 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((DeleteTagsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteTagsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DeleteTags";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetConfigurationIds())
{
context.Writer.WritePropertyName("configurationIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestConfigurationIdsListValue in publicRequest.ConfigurationIds)
{
context.Writer.Write(publicRequestConfigurationIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagsListValue in publicRequest.Tags)
{
context.Writer.WriteObjectStart();
var marshaller = TagMarshaller.Instance;
marshaller.Marshall(publicRequestTagsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteTagsRequestMarshaller _instance = new DeleteTagsRequestMarshaller();
internal static DeleteTagsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteTagsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteTags operation
/// </summary>
public class DeleteTagsResponseUnmarshaller : 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)
{
DeleteTagsResponse response = new DeleteTagsResponse();
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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteTagsResponseUnmarshaller _instance = new DeleteTagsResponseUnmarshaller();
internal static DeleteTagsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteTagsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 119 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeAgents Request Marshaller
/// </summary>
public class DescribeAgentsRequestMarshaller : IMarshaller<IRequest, DescribeAgentsRequest> , 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((DescribeAgentsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeAgentsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DescribeAgents";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAgentIds())
{
context.Writer.WritePropertyName("agentIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestAgentIdsListValue in publicRequest.AgentIds)
{
context.Writer.Write(publicRequestAgentIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetFilters())
{
context.Writer.WritePropertyName("filters");
context.Writer.WriteArrayStart();
foreach(var publicRequestFiltersListValue in publicRequest.Filters)
{
context.Writer.WriteObjectStart();
var marshaller = FilterMarshaller.Instance;
marshaller.Marshall(publicRequestFiltersListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeAgentsRequestMarshaller _instance = new DescribeAgentsRequestMarshaller();
internal static DescribeAgentsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeAgentsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 136 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeAgents operation
/// </summary>
public class DescribeAgentsResponseUnmarshaller : 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)
{
DescribeAgentsResponse response = new DescribeAgentsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("agentsInfo", targetDepth))
{
var unmarshaller = new ListUnmarshaller<AgentInfo, AgentInfoUnmarshaller>(AgentInfoUnmarshaller.Instance);
response.AgentsInfo = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeAgentsResponseUnmarshaller _instance = new DescribeAgentsResponseUnmarshaller();
internal static DescribeAgentsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeAgentsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 132 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeConfigurations Request Marshaller
/// </summary>
public class DescribeConfigurationsRequestMarshaller : IMarshaller<IRequest, DescribeConfigurationsRequest> , 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((DescribeConfigurationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeConfigurationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DescribeConfigurations";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetConfigurationIds())
{
context.Writer.WritePropertyName("configurationIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestConfigurationIdsListValue in publicRequest.ConfigurationIds)
{
context.Writer.Write(publicRequestConfigurationIdsListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeConfigurationsRequestMarshaller _instance = new DescribeConfigurationsRequestMarshaller();
internal static DescribeConfigurationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeConfigurationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 108 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeConfigurations operation
/// </summary>
public class DescribeConfigurationsResponseUnmarshaller : 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)
{
DescribeConfigurationsResponse response = new DescribeConfigurationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("configurations", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Dictionary<string, string>, DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>>(new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance));
response.Configurations = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeConfigurationsResponseUnmarshaller _instance = new DescribeConfigurationsResponseUnmarshaller();
internal static DescribeConfigurationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeConfigurationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeContinuousExports Request Marshaller
/// </summary>
public class DescribeContinuousExportsRequestMarshaller : IMarshaller<IRequest, DescribeContinuousExportsRequest> , 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((DescribeContinuousExportsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeContinuousExportsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DescribeContinuousExports";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetExportIds())
{
context.Writer.WritePropertyName("exportIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestExportIdsListValue in publicRequest.ExportIds)
{
context.Writer.Write(publicRequestExportIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeContinuousExportsRequestMarshaller _instance = new DescribeContinuousExportsRequestMarshaller();
internal static DescribeContinuousExportsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeContinuousExportsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeContinuousExports operation
/// </summary>
public class DescribeContinuousExportsResponseUnmarshaller : 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)
{
DescribeContinuousExportsResponse response = new DescribeContinuousExportsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("descriptions", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ContinuousExportDescription, ContinuousExportDescriptionUnmarshaller>(ContinuousExportDescriptionUnmarshaller.Instance);
response.Descriptions = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("OperationNotPermittedException"))
{
return OperationNotPermittedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeContinuousExportsResponseUnmarshaller _instance = new DescribeContinuousExportsResponseUnmarshaller();
internal static DescribeContinuousExportsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeContinuousExportsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 140 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeExportConfigurations Request Marshaller
/// </summary>
public class DescribeExportConfigurationsRequestMarshaller : IMarshaller<IRequest, DescribeExportConfigurationsRequest> , 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((DescribeExportConfigurationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeExportConfigurationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DescribeExportConfigurations";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetExportIds())
{
context.Writer.WritePropertyName("exportIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestExportIdsListValue in publicRequest.ExportIds)
{
context.Writer.Write(publicRequestExportIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeExportConfigurationsRequestMarshaller _instance = new DescribeExportConfigurationsRequestMarshaller();
internal static DescribeExportConfigurationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeExportConfigurationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeExportConfigurations operation
/// </summary>
public class DescribeExportConfigurationsResponseUnmarshaller : 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)
{
DescribeExportConfigurationsResponse response = new DescribeExportConfigurationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("exportsInfo", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ExportInfo, ExportInfoUnmarshaller>(ExportInfoUnmarshaller.Instance);
response.ExportsInfo = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeExportConfigurationsResponseUnmarshaller _instance = new DescribeExportConfigurationsResponseUnmarshaller();
internal static DescribeExportConfigurationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeExportConfigurationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 136 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeExportTasks Request Marshaller
/// </summary>
public class DescribeExportTasksRequestMarshaller : IMarshaller<IRequest, DescribeExportTasksRequest> , 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((DescribeExportTasksRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeExportTasksRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DescribeExportTasks";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetExportIds())
{
context.Writer.WritePropertyName("exportIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestExportIdsListValue in publicRequest.ExportIds)
{
context.Writer.Write(publicRequestExportIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetFilters())
{
context.Writer.WritePropertyName("filters");
context.Writer.WriteArrayStart();
foreach(var publicRequestFiltersListValue in publicRequest.Filters)
{
context.Writer.WriteObjectStart();
var marshaller = ExportFilterMarshaller.Instance;
marshaller.Marshall(publicRequestFiltersListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeExportTasksRequestMarshaller _instance = new DescribeExportTasksRequestMarshaller();
internal static DescribeExportTasksRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeExportTasksRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 136 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeExportTasks operation
/// </summary>
public class DescribeExportTasksResponseUnmarshaller : 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)
{
DescribeExportTasksResponse response = new DescribeExportTasksResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("exportsInfo", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ExportInfo, ExportInfoUnmarshaller>(ExportInfoUnmarshaller.Instance);
response.ExportsInfo = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeExportTasksResponseUnmarshaller _instance = new DescribeExportTasksResponseUnmarshaller();
internal static DescribeExportTasksResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeExportTasksResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 132 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeImportTasks Request Marshaller
/// </summary>
public class DescribeImportTasksRequestMarshaller : IMarshaller<IRequest, DescribeImportTasksRequest> , 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((DescribeImportTasksRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeImportTasksRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DescribeImportTasks";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetFilters())
{
context.Writer.WritePropertyName("filters");
context.Writer.WriteArrayStart();
foreach(var publicRequestFiltersListValue in publicRequest.Filters)
{
context.Writer.WriteObjectStart();
var marshaller = ImportTaskFilterMarshaller.Instance;
marshaller.Marshall(publicRequestFiltersListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeImportTasksRequestMarshaller _instance = new DescribeImportTasksRequestMarshaller();
internal static DescribeImportTasksRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeImportTasksRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 125 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeImportTasks operation
/// </summary>
public class DescribeImportTasksResponseUnmarshaller : 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)
{
DescribeImportTasksResponse response = new DescribeImportTasksResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tasks", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ImportTask, ImportTaskUnmarshaller>(ImportTaskUnmarshaller.Instance);
response.Tasks = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeImportTasksResponseUnmarshaller _instance = new DescribeImportTasksResponseUnmarshaller();
internal static DescribeImportTasksResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeImportTasksResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 132 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeTags Request Marshaller
/// </summary>
public class DescribeTagsRequestMarshaller : IMarshaller<IRequest, DescribeTagsRequest> , 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((DescribeTagsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeTagsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DescribeTags";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetFilters())
{
context.Writer.WritePropertyName("filters");
context.Writer.WriteArrayStart();
foreach(var publicRequestFiltersListValue in publicRequest.Filters)
{
context.Writer.WriteObjectStart();
var marshaller = TagFilterMarshaller.Instance;
marshaller.Marshall(publicRequestFiltersListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeTagsRequestMarshaller _instance = new DescribeTagsRequestMarshaller();
internal static DescribeTagsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTagsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 125 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeTags operation
/// </summary>
public class DescribeTagsResponseUnmarshaller : 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)
{
DescribeTagsResponse response = new DescribeTagsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tags", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ConfigurationTag, ConfigurationTagUnmarshaller>(ConfigurationTagUnmarshaller.Instance);
response.Tags = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeTagsResponseUnmarshaller _instance = new DescribeTagsResponseUnmarshaller();
internal static DescribeTagsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTagsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 136 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// DisassociateConfigurationItemsFromApplication Request Marshaller
/// </summary>
public class DisassociateConfigurationItemsFromApplicationRequestMarshaller : IMarshaller<IRequest, DisassociateConfigurationItemsFromApplicationRequest> , 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((DisassociateConfigurationItemsFromApplicationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DisassociateConfigurationItemsFromApplicationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.DisassociateConfigurationItemsFromApplication";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetApplicationConfigurationId())
{
context.Writer.WritePropertyName("applicationConfigurationId");
context.Writer.Write(publicRequest.ApplicationConfigurationId);
}
if(publicRequest.IsSetConfigurationIds())
{
context.Writer.WritePropertyName("configurationIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestConfigurationIdsListValue in publicRequest.ConfigurationIds)
{
context.Writer.Write(publicRequestConfigurationIdsListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DisassociateConfigurationItemsFromApplicationRequestMarshaller _instance = new DisassociateConfigurationItemsFromApplicationRequestMarshaller();
internal static DisassociateConfigurationItemsFromApplicationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DisassociateConfigurationItemsFromApplicationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 114 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DisassociateConfigurationItemsFromApplication operation
/// </summary>
public class DisassociateConfigurationItemsFromApplicationResponseUnmarshaller : 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)
{
DisassociateConfigurationItemsFromApplicationResponse response = new DisassociateConfigurationItemsFromApplicationResponse();
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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DisassociateConfigurationItemsFromApplicationResponseUnmarshaller _instance = new DisassociateConfigurationItemsFromApplicationResponseUnmarshaller();
internal static DisassociateConfigurationItemsFromApplicationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DisassociateConfigurationItemsFromApplicationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Ec2RecommendationsExportPreferences Marshaller
/// </summary>
public class Ec2RecommendationsExportPreferencesMarshaller : IRequestMarshaller<Ec2RecommendationsExportPreferences, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(Ec2RecommendationsExportPreferences requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCpuPerformanceMetricBasis())
{
context.Writer.WritePropertyName("cpuPerformanceMetricBasis");
context.Writer.WriteObjectStart();
var marshaller = UsageMetricBasisMarshaller.Instance;
marshaller.Marshall(requestObject.CpuPerformanceMetricBasis, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetEnabled())
{
context.Writer.WritePropertyName("enabled");
context.Writer.Write(requestObject.Enabled);
}
if(requestObject.IsSetExcludedInstanceTypes())
{
context.Writer.WritePropertyName("excludedInstanceTypes");
context.Writer.WriteArrayStart();
foreach(var requestObjectExcludedInstanceTypesListValue in requestObject.ExcludedInstanceTypes)
{
context.Writer.Write(requestObjectExcludedInstanceTypesListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetPreferredRegion())
{
context.Writer.WritePropertyName("preferredRegion");
context.Writer.Write(requestObject.PreferredRegion);
}
if(requestObject.IsSetRamPerformanceMetricBasis())
{
context.Writer.WritePropertyName("ramPerformanceMetricBasis");
context.Writer.WriteObjectStart();
var marshaller = UsageMetricBasisMarshaller.Instance;
marshaller.Marshall(requestObject.RamPerformanceMetricBasis, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetReservedInstanceOptions())
{
context.Writer.WritePropertyName("reservedInstanceOptions");
context.Writer.WriteObjectStart();
var marshaller = ReservedInstanceOptionsMarshaller.Instance;
marshaller.Marshall(requestObject.ReservedInstanceOptions, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetTenancy())
{
context.Writer.WritePropertyName("tenancy");
context.Writer.Write(requestObject.Tenancy);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static Ec2RecommendationsExportPreferencesMarshaller Instance = new Ec2RecommendationsExportPreferencesMarshaller();
}
} | 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ExportConfigurations Request Marshaller
/// </summary>
public class ExportConfigurationsRequestMarshaller : IMarshaller<IRequest, ExportConfigurationsRequest> , 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((ExportConfigurationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ExportConfigurationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.ExportConfigurations";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
var content = "{}";
request.Content = System.Text.Encoding.UTF8.GetBytes(content);
return request;
}
private static ExportConfigurationsRequestMarshaller _instance = new ExportConfigurationsRequestMarshaller();
internal static ExportConfigurationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ExportConfigurationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ExportConfigurations operation
/// </summary>
public class ExportConfigurationsResponseUnmarshaller : 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)
{
ExportConfigurationsResponse response = new ExportConfigurationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("exportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ExportId = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("OperationNotPermittedException"))
{
return OperationNotPermittedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ExportConfigurationsResponseUnmarshaller _instance = new ExportConfigurationsResponseUnmarshaller();
internal static ExportConfigurationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ExportConfigurationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ExportFilter Marshaller
/// </summary>
public class ExportFilterMarshaller : IRequestMarshaller<ExportFilter, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ExportFilter requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCondition())
{
context.Writer.WritePropertyName("condition");
context.Writer.Write(requestObject.Condition);
}
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetValues())
{
context.Writer.WritePropertyName("values");
context.Writer.WriteArrayStart();
foreach(var requestObjectValuesListValue in requestObject.Values)
{
context.Writer.Write(requestObjectValuesListValue);
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ExportFilterMarshaller Instance = new ExportFilterMarshaller();
}
} | 79 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ExportInfo Object
/// </summary>
public class ExportInfoUnmarshaller : IUnmarshaller<ExportInfo, XmlUnmarshallerContext>, IUnmarshaller<ExportInfo, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ExportInfo IUnmarshaller<ExportInfo, 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 ExportInfo Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ExportInfo unmarshalledObject = new ExportInfo();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("configurationsDownloadUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ConfigurationsDownloadUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("exportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ExportId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("exportRequestTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ExportRequestTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("exportStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ExportStatus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("isTruncated", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsTruncated = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("requestedEndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.RequestedEndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("requestedStartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.RequestedStartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("statusMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusMessage = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ExportInfoUnmarshaller _instance = new ExportInfoUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ExportInfoUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ExportPreferences Marshaller
/// </summary>
public class ExportPreferencesMarshaller : IRequestMarshaller<ExportPreferences, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ExportPreferences requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetEc2RecommendationsPreferences())
{
context.Writer.WritePropertyName("ec2RecommendationsPreferences");
context.Writer.WriteObjectStart();
var marshaller = Ec2RecommendationsExportPreferencesMarshaller.Instance;
marshaller.Marshall(requestObject.Ec2RecommendationsPreferences, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ExportPreferencesMarshaller Instance = new ExportPreferencesMarshaller();
}
} | 67 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Filter Marshaller
/// </summary>
public class FilterMarshaller : IRequestMarshaller<Filter, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(Filter requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCondition())
{
context.Writer.WritePropertyName("condition");
context.Writer.Write(requestObject.Condition);
}
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetValues())
{
context.Writer.WritePropertyName("values");
context.Writer.WriteArrayStart();
foreach(var requestObjectValuesListValue in requestObject.Values)
{
context.Writer.Write(requestObjectValuesListValue);
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static FilterMarshaller Instance = new FilterMarshaller();
}
} | 79 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// GetDiscoverySummary Request Marshaller
/// </summary>
public class GetDiscoverySummaryRequestMarshaller : IMarshaller<IRequest, GetDiscoverySummaryRequest> , 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((GetDiscoverySummaryRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GetDiscoverySummaryRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.GetDiscoverySummary";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
var content = "{}";
request.Content = System.Text.Encoding.UTF8.GetBytes(content);
return request;
}
private static GetDiscoverySummaryRequestMarshaller _instance = new GetDiscoverySummaryRequestMarshaller();
internal static GetDiscoverySummaryRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetDiscoverySummaryRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GetDiscoverySummary operation
/// </summary>
public class GetDiscoverySummaryResponseUnmarshaller : 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)
{
GetDiscoverySummaryResponse response = new GetDiscoverySummaryResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("agentlessCollectorSummary", targetDepth))
{
var unmarshaller = CustomerAgentlessCollectorInfoUnmarshaller.Instance;
response.AgentlessCollectorSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("agentSummary", targetDepth))
{
var unmarshaller = CustomerAgentInfoUnmarshaller.Instance;
response.AgentSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("applications", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.Applications = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("connectorSummary", targetDepth))
{
var unmarshaller = CustomerConnectorInfoUnmarshaller.Instance;
response.ConnectorSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("meCollectorSummary", targetDepth))
{
var unmarshaller = CustomerMeCollectorInfoUnmarshaller.Instance;
response.MeCollectorSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("servers", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.Servers = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("serversMappedToApplications", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.ServersMappedToApplications = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("serversMappedtoTags", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.ServersMappedtoTags = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static GetDiscoverySummaryResponseUnmarshaller _instance = new GetDiscoverySummaryResponseUnmarshaller();
internal static GetDiscoverySummaryResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetDiscoverySummaryResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 168 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for HomeRegionNotSetException Object
/// </summary>
public class HomeRegionNotSetExceptionUnmarshaller : IErrorResponseUnmarshaller<HomeRegionNotSetException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public HomeRegionNotSetException 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 HomeRegionNotSetException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
HomeRegionNotSetException unmarshalledObject = new HomeRegionNotSetException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static HomeRegionNotSetExceptionUnmarshaller _instance = new HomeRegionNotSetExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static HomeRegionNotSetExceptionUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ImportTaskFilter Marshaller
/// </summary>
public class ImportTaskFilterMarshaller : IRequestMarshaller<ImportTaskFilter, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ImportTaskFilter requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetValues())
{
context.Writer.WritePropertyName("values");
context.Writer.WriteArrayStart();
foreach(var requestObjectValuesListValue in requestObject.Values)
{
context.Writer.Write(requestObjectValuesListValue);
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ImportTaskFilterMarshaller Instance = new ImportTaskFilterMarshaller();
}
} | 73 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ImportTask Object
/// </summary>
public class ImportTaskUnmarshaller : IUnmarshaller<ImportTask, XmlUnmarshallerContext>, IUnmarshaller<ImportTask, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ImportTask IUnmarshaller<ImportTask, 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 ImportTask Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ImportTask unmarshalledObject = new ImportTask();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("applicationImportFailure", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ApplicationImportFailure = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("applicationImportSuccess", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ApplicationImportSuccess = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("clientRequestToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ClientRequestToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("errorsAndFailedEntriesZip", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ErrorsAndFailedEntriesZip = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("importCompletionTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ImportCompletionTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("importDeletedTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ImportDeletedTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("importRequestTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ImportRequestTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("importTaskId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ImportTaskId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("importUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ImportUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("serverImportFailure", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ServerImportFailure = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("serverImportSuccess", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.ServerImportSuccess = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ImportTaskUnmarshaller _instance = new ImportTaskUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ImportTaskUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 164 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidParameterException Object
/// </summary>
public class InvalidParameterExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidParameterException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidParameterException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InvalidParameterException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidParameterException unmarshalledObject = new InvalidParameterException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidParameterExceptionUnmarshaller _instance = new InvalidParameterExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidParameterExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidParameterValueException Object
/// </summary>
public class InvalidParameterValueExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidParameterValueException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidParameterValueException 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 InvalidParameterValueException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidParameterValueException unmarshalledObject = new InvalidParameterValueException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidParameterValueExceptionUnmarshaller _instance = new InvalidParameterValueExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidParameterValueExceptionUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListConfigurations Request Marshaller
/// </summary>
public class ListConfigurationsRequestMarshaller : IMarshaller<IRequest, ListConfigurationsRequest> , 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((ListConfigurationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListConfigurationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.ListConfigurations";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetConfigurationType())
{
context.Writer.WritePropertyName("configurationType");
context.Writer.Write(publicRequest.ConfigurationType);
}
if(publicRequest.IsSetFilters())
{
context.Writer.WritePropertyName("filters");
context.Writer.WriteArrayStart();
foreach(var publicRequestFiltersListValue in publicRequest.Filters)
{
context.Writer.WriteObjectStart();
var marshaller = FilterMarshaller.Instance;
marshaller.Marshall(publicRequestFiltersListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetOrderBy())
{
context.Writer.WritePropertyName("orderBy");
context.Writer.WriteArrayStart();
foreach(var publicRequestOrderByListValue in publicRequest.OrderBy)
{
context.Writer.WriteObjectStart();
var marshaller = OrderByElementMarshaller.Instance;
marshaller.Marshall(publicRequestOrderByListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListConfigurationsRequestMarshaller _instance = new ListConfigurationsRequestMarshaller();
internal static ListConfigurationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConfigurationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 147 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListConfigurations operation
/// </summary>
public class ListConfigurationsResponseUnmarshaller : 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)
{
ListConfigurationsResponse response = new ListConfigurationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("configurations", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Dictionary<string, string>, DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>>(new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance));
response.Configurations = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListConfigurationsResponseUnmarshaller _instance = new ListConfigurationsResponseUnmarshaller();
internal static ListConfigurationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConfigurationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 136 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListServerNeighbors Request Marshaller
/// </summary>
public class ListServerNeighborsRequestMarshaller : IMarshaller<IRequest, ListServerNeighborsRequest> , 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((ListServerNeighborsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListServerNeighborsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.ListServerNeighbors";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetConfigurationId())
{
context.Writer.WritePropertyName("configurationId");
context.Writer.Write(publicRequest.ConfigurationId);
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNeighborConfigurationIds())
{
context.Writer.WritePropertyName("neighborConfigurationIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestNeighborConfigurationIdsListValue in publicRequest.NeighborConfigurationIds)
{
context.Writer.Write(publicRequestNeighborConfigurationIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetPortInformationNeeded())
{
context.Writer.WritePropertyName("portInformationNeeded");
context.Writer.Write(publicRequest.PortInformationNeeded);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListServerNeighborsRequestMarshaller _instance = new ListServerNeighborsRequestMarshaller();
internal static ListServerNeighborsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListServerNeighborsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 132 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListServerNeighbors operation
/// </summary>
public class ListServerNeighborsResponseUnmarshaller : 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)
{
ListServerNeighborsResponse response = new ListServerNeighborsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("knownDependencyCount", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
response.KnownDependencyCount = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("neighbors", targetDepth))
{
var unmarshaller = new ListUnmarshaller<NeighborConnectionDetail, NeighborConnectionDetailUnmarshaller>(NeighborConnectionDetailUnmarshaller.Instance);
response.Neighbors = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListServerNeighborsResponseUnmarshaller _instance = new ListServerNeighborsResponseUnmarshaller();
internal static ListServerNeighborsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListServerNeighborsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 138 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for NeighborConnectionDetail Object
/// </summary>
public class NeighborConnectionDetailUnmarshaller : IUnmarshaller<NeighborConnectionDetail, XmlUnmarshallerContext>, IUnmarshaller<NeighborConnectionDetail, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
NeighborConnectionDetail IUnmarshaller<NeighborConnectionDetail, 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 NeighborConnectionDetail Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
NeighborConnectionDetail unmarshalledObject = new NeighborConnectionDetail();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("connectionsCount", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.ConnectionsCount = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("destinationPort", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.DestinationPort = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("destinationServerId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DestinationServerId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("sourceServerId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SourceServerId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("transportProtocol", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TransportProtocol = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static NeighborConnectionDetailUnmarshaller _instance = new NeighborConnectionDetailUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static NeighborConnectionDetailUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for OperationNotPermittedException Object
/// </summary>
public class OperationNotPermittedExceptionUnmarshaller : IErrorResponseUnmarshaller<OperationNotPermittedException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public OperationNotPermittedException 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 OperationNotPermittedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
OperationNotPermittedException unmarshalledObject = new OperationNotPermittedException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static OperationNotPermittedExceptionUnmarshaller _instance = new OperationNotPermittedExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static OperationNotPermittedExceptionUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// OrderByElement Marshaller
/// </summary>
public class OrderByElementMarshaller : IRequestMarshaller<OrderByElement, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(OrderByElement requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetFieldName())
{
context.Writer.WritePropertyName("fieldName");
context.Writer.Write(requestObject.FieldName);
}
if(requestObject.IsSetSortOrder())
{
context.Writer.WritePropertyName("sortOrder");
context.Writer.Write(requestObject.SortOrder);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static OrderByElementMarshaller Instance = new OrderByElementMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// ReservedInstanceOptions Marshaller
/// </summary>
public class ReservedInstanceOptionsMarshaller : IRequestMarshaller<ReservedInstanceOptions, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ReservedInstanceOptions requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetOfferingClass())
{
context.Writer.WritePropertyName("offeringClass");
context.Writer.Write(requestObject.OfferingClass);
}
if(requestObject.IsSetPurchasingOption())
{
context.Writer.WritePropertyName("purchasingOption");
context.Writer.Write(requestObject.PurchasingOption);
}
if(requestObject.IsSetTermLength())
{
context.Writer.WritePropertyName("termLength");
context.Writer.Write(requestObject.TermLength);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ReservedInstanceOptionsMarshaller Instance = new ReservedInstanceOptionsMarshaller();
}
} | 74 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceInUseException Object
/// </summary>
public class ResourceInUseExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceInUseException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceInUseException 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 ResourceInUseException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceInUseException unmarshalledObject = new ResourceInUseException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceInUseExceptionUnmarshaller _instance = new ResourceInUseExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceInUseExceptionUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceNotFoundException Object
/// </summary>
public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceNotFoundExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServerInternalErrorException Object
/// </summary>
public class ServerInternalErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<ServerInternalErrorException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ServerInternalErrorException 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 ServerInternalErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ServerInternalErrorException unmarshalledObject = new ServerInternalErrorException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ServerInternalErrorExceptionUnmarshaller _instance = new ServerInternalErrorExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServerInternalErrorExceptionUnmarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartContinuousExport Request Marshaller
/// </summary>
public class StartContinuousExportRequestMarshaller : IMarshaller<IRequest, StartContinuousExportRequest> , 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((StartContinuousExportRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartContinuousExportRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.StartContinuousExport";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
var content = "{}";
request.Content = System.Text.Encoding.UTF8.GetBytes(content);
return request;
}
private static StartContinuousExportRequestMarshaller _instance = new StartContinuousExportRequestMarshaller();
internal static StartContinuousExportRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartContinuousExportRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StartContinuousExport operation
/// </summary>
public class StartContinuousExportResponseUnmarshaller : 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)
{
StartContinuousExportResponse response = new StartContinuousExportResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("dataSource", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.DataSource = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("exportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ExportId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("s3Bucket", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.S3Bucket = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("schemaStorageConfig", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
response.SchemaStorageConfig = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("startTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.StartTime = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictErrorException"))
{
return ConflictErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("OperationNotPermittedException"))
{
return OperationNotPermittedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceInUseException"))
{
return ResourceInUseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StartContinuousExportResponseUnmarshaller _instance = new StartContinuousExportResponseUnmarshaller();
internal static StartContinuousExportResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartContinuousExportResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 162 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartDataCollectionByAgentIds Request Marshaller
/// </summary>
public class StartDataCollectionByAgentIdsRequestMarshaller : IMarshaller<IRequest, StartDataCollectionByAgentIdsRequest> , 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((StartDataCollectionByAgentIdsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartDataCollectionByAgentIdsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.StartDataCollectionByAgentIds";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAgentIds())
{
context.Writer.WritePropertyName("agentIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestAgentIdsListValue in publicRequest.AgentIds)
{
context.Writer.Write(publicRequestAgentIdsListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StartDataCollectionByAgentIdsRequestMarshaller _instance = new StartDataCollectionByAgentIdsRequestMarshaller();
internal static StartDataCollectionByAgentIdsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartDataCollectionByAgentIdsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 108 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StartDataCollectionByAgentIds operation
/// </summary>
public class StartDataCollectionByAgentIdsResponseUnmarshaller : 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)
{
StartDataCollectionByAgentIdsResponse response = new StartDataCollectionByAgentIdsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("agentsConfigurationStatus", targetDepth))
{
var unmarshaller = new ListUnmarshaller<AgentConfigurationStatus, AgentConfigurationStatusUnmarshaller>(AgentConfigurationStatusUnmarshaller.Instance);
response.AgentsConfigurationStatus = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StartDataCollectionByAgentIdsResponseUnmarshaller _instance = new StartDataCollectionByAgentIdsResponseUnmarshaller();
internal static StartDataCollectionByAgentIdsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartDataCollectionByAgentIdsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartExportTask Request Marshaller
/// </summary>
public class StartExportTaskRequestMarshaller : IMarshaller<IRequest, StartExportTaskRequest> , 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((StartExportTaskRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartExportTaskRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.StartExportTask";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetEndTime())
{
context.Writer.WritePropertyName("endTime");
context.Writer.Write(publicRequest.EndTime);
}
if(publicRequest.IsSetExportDataFormat())
{
context.Writer.WritePropertyName("exportDataFormat");
context.Writer.WriteArrayStart();
foreach(var publicRequestExportDataFormatListValue in publicRequest.ExportDataFormat)
{
context.Writer.Write(publicRequestExportDataFormatListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetFilters())
{
context.Writer.WritePropertyName("filters");
context.Writer.WriteArrayStart();
foreach(var publicRequestFiltersListValue in publicRequest.Filters)
{
context.Writer.WriteObjectStart();
var marshaller = ExportFilterMarshaller.Instance;
marshaller.Marshall(publicRequestFiltersListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetPreferences())
{
context.Writer.WritePropertyName("preferences");
context.Writer.WriteObjectStart();
var marshaller = ExportPreferencesMarshaller.Instance;
marshaller.Marshall(publicRequest.Preferences, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetStartTime())
{
context.Writer.WritePropertyName("startTime");
context.Writer.Write(publicRequest.StartTime);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StartExportTaskRequestMarshaller _instance = new StartExportTaskRequestMarshaller();
internal static StartExportTaskRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartExportTaskRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 147 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StartExportTask operation
/// </summary>
public class StartExportTaskResponseUnmarshaller : 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)
{
StartExportTaskResponse response = new StartExportTaskResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("exportId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ExportId = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("OperationNotPermittedException"))
{
return OperationNotPermittedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StartExportTaskResponseUnmarshaller _instance = new StartExportTaskResponseUnmarshaller();
internal static StartExportTaskResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartExportTaskResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartImportTask Request Marshaller
/// </summary>
public class StartImportTaskRequestMarshaller : IMarshaller<IRequest, StartImportTaskRequest> , 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((StartImportTaskRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartImportTaskRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.StartImportTask";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetClientRequestToken())
{
context.Writer.WritePropertyName("clientRequestToken");
context.Writer.Write(publicRequest.ClientRequestToken);
}
else if(!(publicRequest.IsSetClientRequestToken()))
{
context.Writer.WritePropertyName("clientRequestToken");
context.Writer.Write(Guid.NewGuid().ToString());
}
if(publicRequest.IsSetImportUrl())
{
context.Writer.WritePropertyName("importUrl");
context.Writer.Write(publicRequest.ImportUrl);
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(publicRequest.Name);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StartImportTaskRequestMarshaller _instance = new StartImportTaskRequestMarshaller();
internal static StartImportTaskRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartImportTaskRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StartImportTask operation
/// </summary>
public class StartImportTaskResponseUnmarshaller : 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)
{
StartImportTaskResponse response = new StartImportTaskResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("task", targetDepth))
{
var unmarshaller = ImportTaskUnmarshaller.Instance;
response.Task = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceInUseException"))
{
return ResourceInUseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StartImportTaskResponseUnmarshaller _instance = new StartImportTaskResponseUnmarshaller();
internal static StartImportTaskResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartImportTaskResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// StopContinuousExport Request Marshaller
/// </summary>
public class StopContinuousExportRequestMarshaller : IMarshaller<IRequest, StopContinuousExportRequest> , 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((StopContinuousExportRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StopContinuousExportRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.StopContinuousExport";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetExportId())
{
context.Writer.WritePropertyName("exportId");
context.Writer.Write(publicRequest.ExportId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StopContinuousExportRequestMarshaller _instance = new StopContinuousExportRequestMarshaller();
internal static StopContinuousExportRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StopContinuousExportRequestMarshaller 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 discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StopContinuousExport operation
/// </summary>
public class StopContinuousExportResponseUnmarshaller : 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)
{
StopContinuousExportResponse response = new StopContinuousExportResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("startTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.StartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("stopTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.StopTime = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("OperationNotPermittedException"))
{
return OperationNotPermittedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceInUseException"))
{
return ResourceInUseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StopContinuousExportResponseUnmarshaller _instance = new StopContinuousExportResponseUnmarshaller();
internal static StopContinuousExportResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StopContinuousExportResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 144 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// StopDataCollectionByAgentIds Request Marshaller
/// </summary>
public class StopDataCollectionByAgentIdsRequestMarshaller : IMarshaller<IRequest, StopDataCollectionByAgentIdsRequest> , 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((StopDataCollectionByAgentIdsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StopDataCollectionByAgentIdsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.StopDataCollectionByAgentIds";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAgentIds())
{
context.Writer.WritePropertyName("agentIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestAgentIdsListValue in publicRequest.AgentIds)
{
context.Writer.Write(publicRequestAgentIdsListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StopDataCollectionByAgentIdsRequestMarshaller _instance = new StopDataCollectionByAgentIdsRequestMarshaller();
internal static StopDataCollectionByAgentIdsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StopDataCollectionByAgentIdsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 108 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StopDataCollectionByAgentIds operation
/// </summary>
public class StopDataCollectionByAgentIdsResponseUnmarshaller : 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)
{
StopDataCollectionByAgentIdsResponse response = new StopDataCollectionByAgentIdsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("agentsConfigurationStatus", targetDepth))
{
var unmarshaller = new ListUnmarshaller<AgentConfigurationStatus, AgentConfigurationStatusUnmarshaller>(AgentConfigurationStatusUnmarshaller.Instance);
response.AgentsConfigurationStatus = 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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StopDataCollectionByAgentIdsResponseUnmarshaller _instance = new StopDataCollectionByAgentIdsResponseUnmarshaller();
internal static StopDataCollectionByAgentIdsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StopDataCollectionByAgentIdsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// TagFilter Marshaller
/// </summary>
public class TagFilterMarshaller : IRequestMarshaller<TagFilter, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(TagFilter requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetValues())
{
context.Writer.WritePropertyName("values");
context.Writer.WriteArrayStart();
foreach(var requestObjectValuesListValue in requestObject.Values)
{
context.Writer.Write(requestObjectValuesListValue);
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TagFilterMarshaller Instance = new TagFilterMarshaller();
}
} | 73 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Tag Marshaller
/// </summary>
public class TagMarshaller : IRequestMarshaller<Tag, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(Tag requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetKey())
{
context.Writer.WritePropertyName("key");
context.Writer.Write(requestObject.Key);
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("value");
context.Writer.Write(requestObject.Value);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static TagMarshaller Instance = new TagMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateApplication Request Marshaller
/// </summary>
public class UpdateApplicationRequestMarshaller : IMarshaller<IRequest, UpdateApplicationRequest> , 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((UpdateApplicationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateApplicationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationDiscoveryService");
string target = "AWSPoseidonService_V2015_11_01.UpdateApplication";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-11-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetConfigurationId())
{
context.Writer.WritePropertyName("configurationId");
context.Writer.Write(publicRequest.ConfigurationId);
}
if(publicRequest.IsSetDescription())
{
context.Writer.WritePropertyName("description");
context.Writer.Write(publicRequest.Description);
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(publicRequest.Name);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateApplicationRequestMarshaller _instance = new UpdateApplicationRequestMarshaller();
internal static UpdateApplicationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateApplicationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateApplication operation
/// </summary>
public class UpdateApplicationResponseUnmarshaller : 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)
{
UpdateApplicationResponse response = new UpdateApplicationResponse();
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("AuthorizationErrorException"))
{
return AuthorizationErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("HomeRegionNotSetException"))
{
return HomeRegionNotSetExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServerInternalErrorException"))
{
return ServerInternalErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationDiscoveryServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateApplicationResponseUnmarshaller _instance = new UpdateApplicationResponseUnmarshaller();
internal static UpdateApplicationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateApplicationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations
{
/// <summary>
/// UsageMetricBasis Marshaller
/// </summary>
public class UsageMetricBasisMarshaller : IRequestMarshaller<UsageMetricBasis, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(UsageMetricBasis requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetPercentageAdjust())
{
context.Writer.WritePropertyName("percentageAdjust");
context.Writer.Write(requestObject.PercentageAdjust);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static UsageMetricBasisMarshaller Instance = new UsageMetricBasisMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.ApplicationDiscoveryService.Model
{
/// <summary>
/// Paginators for the ApplicationDiscoveryService service
///</summary>
public class ApplicationDiscoveryServicePaginatorFactory : IApplicationDiscoveryServicePaginatorFactory
{
private readonly IAmazonApplicationDiscoveryService client;
internal ApplicationDiscoveryServicePaginatorFactory(IAmazonApplicationDiscoveryService client)
{
this.client = client;
}
/// <summary>
/// Paginator for DescribeContinuousExports operation
///</summary>
public IDescribeContinuousExportsPaginator DescribeContinuousExports(DescribeContinuousExportsRequest request)
{
return new DescribeContinuousExportsPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeImportTasks operation
///</summary>
public IDescribeImportTasksPaginator DescribeImportTasks(DescribeImportTasksRequest request)
{
return new DescribeImportTasksPaginator(this.client, request);
}
}
} | 54 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.ApplicationDiscoveryService.Model
{
/// <summary>
/// Base class for DescribeContinuousExports paginators.
/// </summary>
internal sealed partial class DescribeContinuousExportsPaginator : IPaginator<DescribeContinuousExportsResponse>, IDescribeContinuousExportsPaginator
{
private readonly IAmazonApplicationDiscoveryService _client;
private readonly DescribeContinuousExportsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeContinuousExportsResponse> Responses => new PaginatedResponse<DescribeContinuousExportsResponse>(this);
internal DescribeContinuousExportsPaginator(IAmazonApplicationDiscoveryService client, DescribeContinuousExportsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeContinuousExportsResponse> IPaginator<DescribeContinuousExportsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeContinuousExportsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeContinuousExports(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeContinuousExportsResponse> IPaginator<DescribeContinuousExportsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeContinuousExportsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeContinuousExportsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.ApplicationDiscoveryService.Model
{
/// <summary>
/// Base class for DescribeImportTasks paginators.
/// </summary>
internal sealed partial class DescribeImportTasksPaginator : IPaginator<DescribeImportTasksResponse>, IDescribeImportTasksPaginator
{
private readonly IAmazonApplicationDiscoveryService _client;
private readonly DescribeImportTasksRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeImportTasksResponse> Responses => new PaginatedResponse<DescribeImportTasksResponse>(this);
internal DescribeImportTasksPaginator(IAmazonApplicationDiscoveryService client, DescribeImportTasksRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeImportTasksResponse> IPaginator<DescribeImportTasksResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeImportTasksResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeImportTasks(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeImportTasksResponse> IPaginator<DescribeImportTasksResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeImportTasksResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeImportTasksAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
namespace Amazon.ApplicationDiscoveryService.Model
{
/// <summary>
/// Paginators for the ApplicationDiscoveryService service
///</summary>
public interface IApplicationDiscoveryServicePaginatorFactory
{
/// <summary>
/// Paginator for DescribeContinuousExports operation
///</summary>
IDescribeContinuousExportsPaginator DescribeContinuousExports(DescribeContinuousExportsRequest request);
/// <summary>
/// Paginator for DescribeImportTasks operation
///</summary>
IDescribeImportTasksPaginator DescribeImportTasks(DescribeImportTasksRequest request);
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationDiscoveryService.Model
{
/// <summary>
/// Paginator for the DescribeContinuousExports operation
///</summary>
public interface IDescribeContinuousExportsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeContinuousExportsResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationDiscoveryService.Model
{
/// <summary>
/// Paginator for the DescribeImportTasks operation
///</summary>
public interface IDescribeImportTasksPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeImportTasksResponse> Responses { get; }
}
} | 33 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.ApplicationDiscoveryService.Model;
using Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations;
using Amazon.ApplicationDiscoveryService.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationDiscoveryService
{
/// <summary>
/// Implementation for accessing ApplicationDiscoveryService
///
/// Amazon Web Services Application Discovery Service
/// <para>
/// Amazon Web Services Application Discovery Service (Application Discovery Service)
/// helps you plan application migration projects. It automatically identifies servers,
/// virtual machines (VMs), and network dependencies in your on-premises data centers.
/// For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon
/// Web Services Application Discovery Service FAQ</a>.
/// </para>
///
/// <para>
/// Application Discovery Service offers three ways of performing discovery and collecting
/// data about your on-premises servers:
/// </para>
/// <ul> <li>
/// <para>
/// <b>Agentless discovery</b> using Amazon Web Services Application Discovery Service
/// Agentless Collector (Agentless Collector), which doesn't require you to install an
/// agent on each host.
/// </para>
/// <ul> <li>
/// <para>
/// Agentless Collector gathers server information regardless of the operating systems,
/// which minimizes the time required for initial on-premises infrastructure assessment.
/// </para>
/// </li> <li>
/// <para>
/// Agentless Collector doesn't collect information about network dependencies, only agent-based
/// discovery collects that information.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Agent-based discovery</b> using the Amazon Web Services Application Discovery
/// Agent (Application Discovery Agent) collects a richer set of data than agentless discovery,
/// which you install on one or more hosts in your data center.
/// </para>
/// <ul> <li>
/// <para>
/// The agent captures infrastructure and application information, including an inventory
/// of running processes, system performance information, resource utilization, and network
/// dependencies.
/// </para>
/// </li> <li>
/// <para>
/// The information collected by agents is secured at rest and in transit to the Application
/// Discovery Service database in the Amazon Web Services cloud. For more information,
/// see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-agent.html">Amazon
/// Web Services Application Discovery Agent</a>.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Amazon Web Services Partner Network (APN) solutions</b> integrate with Application
/// Discovery Service, enabling you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub (Migration Hub) without using Agentless
/// Collector or Application Discovery Agent.
/// </para>
/// <ul> <li>
/// <para>
/// Third-party application discovery tools can query Amazon Web Services Application
/// Discovery Service, and they can write to the Application Discovery Service database
/// using the public API.
/// </para>
/// </li> <li>
/// <para>
/// In this way, you can import data into Migration Hub and view it, so that you can associate
/// applications with servers and track migrations.
/// </para>
/// </li> </ul> </li> </ul>
/// <para>
/// <b>Working With This Guide</b>
/// </para>
///
/// <para>
/// This API reference provides descriptions, syntax, and usage examples for each of the
/// actions and data types for Application Discovery Service. The topic for each action
/// shows the API request parameters and the response. Alternatively, you can use one
/// of the Amazon Web Services SDKs to access an API that is tailored to the programming
/// language or platform that you're using. For more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon
/// Web Services SDKs</a>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// Remember that you must set your Migration Hub home Region before you call any of these
/// APIs.
/// </para>
/// </li> <li>
/// <para>
/// You must make API calls for write actions (create, notify, associate, disassociate,
/// import, or put) while in your home Region, or a <code>HomeRegionNotSetException</code>
/// error is returned.
/// </para>
/// </li> <li>
/// <para>
/// API calls for read actions (list, describe, stop, and delete) are permitted outside
/// of your home Region.
/// </para>
/// </li> <li>
/// <para>
/// Although it is unlikely, the Migration Hub home Region could change. If you call APIs
/// outside the home Region, an <code>InvalidInputException</code> is returned.
/// </para>
/// </li> <li>
/// <para>
/// You must call <code>GetHomeRegion</code> to obtain the latest Migration Hub home Region.
/// </para>
/// </li> </ul> </note>
/// <para>
/// This guide is intended for use with the <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon
/// Web Services Application Discovery Service User Guide</a>.
/// </para>
/// <important>
/// <para>
/// All data is handled according to the <a href="https://aws.amazon.com/privacy/">Amazon
/// Web Services Privacy Policy</a>. You can operate Application Discovery Service offline
/// to inspect collected data before it is shared with the service.
/// </para>
/// </important>
/// </summary>
public partial class AmazonApplicationDiscoveryServiceClient : AmazonServiceClient, IAmazonApplicationDiscoveryService
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationDiscoveryServiceMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IApplicationDiscoveryServicePaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationDiscoveryServicePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationDiscoveryServicePaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonApplicationDiscoveryServiceClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationDiscoveryServiceConfig()) { }
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonApplicationDiscoveryServiceClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationDiscoveryServiceConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(AmazonApplicationDiscoveryServiceConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationDiscoveryServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationDiscoveryServiceConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationDiscoveryServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationDiscoveryServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Credentials and an
/// AmazonApplicationDiscoveryServiceClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(AWSCredentials credentials, AmazonApplicationDiscoveryServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationDiscoveryServiceConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationDiscoveryServiceConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationDiscoveryServiceClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationDiscoveryServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationDiscoveryServiceConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationDiscoveryServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationDiscoveryServiceConfig 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 AmazonApplicationDiscoveryServiceEndpointResolver());
}
/// <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 AssociateConfigurationItemsToApplication
/// <summary>
/// Associates one or more configuration items with an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication service method.</param>
///
/// <returns>The response from the AssociateConfigurationItemsToApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
public virtual AssociateConfigurationItemsToApplicationResponse AssociateConfigurationItemsToApplication(AssociateConfigurationItemsToApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateConfigurationItemsToApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateConfigurationItemsToApplicationResponseUnmarshaller.Instance;
return Invoke<AssociateConfigurationItemsToApplicationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the AssociateConfigurationItemsToApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateConfigurationItemsToApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
public virtual IAsyncResult BeginAssociateConfigurationItemsToApplication(AssociateConfigurationItemsToApplicationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateConfigurationItemsToApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateConfigurationItemsToApplicationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the AssociateConfigurationItemsToApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateConfigurationItemsToApplication.</param>
///
/// <returns>Returns a AssociateConfigurationItemsToApplicationResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
public virtual AssociateConfigurationItemsToApplicationResponse EndAssociateConfigurationItemsToApplication(IAsyncResult asyncResult)
{
return EndInvoke<AssociateConfigurationItemsToApplicationResponse>(asyncResult);
}
#endregion
#region BatchDeleteImportData
/// <summary>
/// Deletes one or more import tasks, each identified by their import ID. Each import
/// task has a number of records that can identify servers or applications.
///
///
/// <para>
/// Amazon Web Services Application Discovery Service has built-in matching logic that
/// will identify when discovered servers match existing entries that you've previously
/// discovered, the information for the already-existing discovered server is updated.
/// When you delete an import task that contains records that were used to match, the
/// information in those matched records that comes from the deleted records will also
/// be deleted.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData service method.</param>
///
/// <returns>The response from the BatchDeleteImportData service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
public virtual BatchDeleteImportDataResponse BatchDeleteImportData(BatchDeleteImportDataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteImportDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteImportDataResponseUnmarshaller.Instance;
return Invoke<BatchDeleteImportDataResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the BatchDeleteImportData operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDeleteImportData
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
public virtual IAsyncResult BeginBatchDeleteImportData(BatchDeleteImportDataRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteImportDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteImportDataResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the BatchDeleteImportData operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchDeleteImportData.</param>
///
/// <returns>Returns a BatchDeleteImportDataResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
public virtual BatchDeleteImportDataResponse EndBatchDeleteImportData(IAsyncResult asyncResult)
{
return EndInvoke<BatchDeleteImportDataResponse>(asyncResult);
}
#endregion
#region CreateApplication
/// <summary>
/// Creates an application with the given name and description.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApplication service method.</param>
///
/// <returns>The response from the CreateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
public virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance;
return Invoke<CreateApplicationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateApplication operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
public virtual IAsyncResult BeginCreateApplication(CreateApplicationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateApplication.</param>
///
/// <returns>Returns a CreateApplicationResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
public virtual CreateApplicationResponse EndCreateApplication(IAsyncResult asyncResult)
{
return EndInvoke<CreateApplicationResponse>(asyncResult);
}
#endregion
#region CreateTags
/// <summary>
/// Creates one or more tags for configuration items. Tags are metadata that help you
/// categorize IT assets. This API accepts a list of multiple configuration items.
///
/// <important>
/// <para>
/// Do not store sensitive information (like personal data) in tags.
/// </para>
/// </important>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTags service method.</param>
///
/// <returns>The response from the CreateTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
public virtual CreateTagsResponse CreateTags(CreateTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTagsResponseUnmarshaller.Instance;
return Invoke<CreateTagsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateTags operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateTags operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateTags
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
public virtual IAsyncResult BeginCreateTags(CreateTagsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTagsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateTags operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateTags.</param>
///
/// <returns>Returns a CreateTagsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
public virtual CreateTagsResponse EndCreateTags(IAsyncResult asyncResult)
{
return EndInvoke<CreateTagsResponse>(asyncResult);
}
#endregion
#region DeleteApplications
/// <summary>
/// Deletes a list of applications and their associations with configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications service method.</param>
///
/// <returns>The response from the DeleteApplications service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
public virtual DeleteApplicationsResponse DeleteApplications(DeleteApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationsResponseUnmarshaller.Instance;
return Invoke<DeleteApplicationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteApplications operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteApplications
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
public virtual IAsyncResult BeginDeleteApplications(DeleteApplicationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteApplications operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApplications.</param>
///
/// <returns>Returns a DeleteApplicationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
public virtual DeleteApplicationsResponse EndDeleteApplications(IAsyncResult asyncResult)
{
return EndInvoke<DeleteApplicationsResponse>(asyncResult);
}
#endregion
#region DeleteTags
/// <summary>
/// Deletes the association between configuration items and one or more tags. This API
/// accepts a list of multiple configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param>
///
/// <returns>The response from the DeleteTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
public virtual DeleteTagsResponse DeleteTags(DeleteTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance;
return Invoke<DeleteTagsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteTags operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteTags operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTags
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
public virtual IAsyncResult BeginDeleteTags(DeleteTagsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteTags operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteTags.</param>
///
/// <returns>Returns a DeleteTagsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
public virtual DeleteTagsResponse EndDeleteTags(IAsyncResult asyncResult)
{
return EndInvoke<DeleteTagsResponse>(asyncResult);
}
#endregion
#region DescribeAgents
/// <summary>
/// Lists agents or collectors as specified by ID or other filters. All agents/collectors
/// associated with your user can be listed if you call <code>DescribeAgents</code> as
/// is without passing any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents service method.</param>
///
/// <returns>The response from the DescribeAgents service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
public virtual DescribeAgentsResponse DescribeAgents(DescribeAgentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAgentsResponseUnmarshaller.Instance;
return Invoke<DescribeAgentsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeAgents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAgents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
public virtual IAsyncResult BeginDescribeAgents(DescribeAgentsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAgentsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeAgents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAgents.</param>
///
/// <returns>Returns a DescribeAgentsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
public virtual DescribeAgentsResponse EndDescribeAgents(IAsyncResult asyncResult)
{
return EndInvoke<DescribeAgentsResponse>(asyncResult);
}
#endregion
#region DescribeConfigurations
/// <summary>
/// Retrieves attributes for a list of configuration item IDs.
///
/// <note>
/// <para>
/// All of the supplied IDs must be for the same asset type from one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// server
/// </para>
/// </li> <li>
/// <para>
/// application
/// </para>
/// </li> <li>
/// <para>
/// process
/// </para>
/// </li> <li>
/// <para>
/// connection
/// </para>
/// </li> </ul>
/// <para>
/// Output fields are specific to the asset type specified. For example, the output for
/// a <i>server</i> configuration item includes a list of attributes about the server,
/// such as host name, operating system, number of network cards, etc.
/// </para>
///
/// <para>
/// For a complete list of outputs for each asset type, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations">Using
/// the DescribeConfigurations Action</a> in the <i>Amazon Web Services Application Discovery
/// Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations service method.</param>
///
/// <returns>The response from the DescribeConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
public virtual DescribeConfigurationsResponse DescribeConfigurations(DescribeConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConfigurationsResponseUnmarshaller.Instance;
return Invoke<DescribeConfigurationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
public virtual IAsyncResult BeginDescribeConfigurations(DescribeConfigurationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConfigurationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConfigurations.</param>
///
/// <returns>Returns a DescribeConfigurationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
public virtual DescribeConfigurationsResponse EndDescribeConfigurations(IAsyncResult asyncResult)
{
return EndInvoke<DescribeConfigurationsResponse>(asyncResult);
}
#endregion
#region DescribeContinuousExports
/// <summary>
/// Lists exports as specified by ID. All continuous exports associated with your user
/// can be listed if you call <code>DescribeContinuousExports</code> as is without passing
/// any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports service method.</param>
///
/// <returns>The response from the DescribeContinuousExports service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
public virtual DescribeContinuousExportsResponse DescribeContinuousExports(DescribeContinuousExportsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeContinuousExportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeContinuousExportsResponseUnmarshaller.Instance;
return Invoke<DescribeContinuousExportsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeContinuousExports operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeContinuousExports
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
public virtual IAsyncResult BeginDescribeContinuousExports(DescribeContinuousExportsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeContinuousExportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeContinuousExportsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeContinuousExports operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeContinuousExports.</param>
///
/// <returns>Returns a DescribeContinuousExportsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
public virtual DescribeContinuousExportsResponse EndDescribeContinuousExports(IAsyncResult asyncResult)
{
return EndInvoke<DescribeContinuousExportsResponse>(asyncResult);
}
#endregion
#region DescribeExportConfigurations
/// <summary>
/// <code>DescribeExportConfigurations</code> is deprecated. Use <a href="https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a>,
/// instead.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations service method.</param>
///
/// <returns>The response from the DescribeExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
public virtual DescribeExportConfigurationsResponse DescribeExportConfigurations(DescribeExportConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportConfigurationsResponseUnmarshaller.Instance;
return Invoke<DescribeExportConfigurationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeExportConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeExportConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
public virtual IAsyncResult BeginDescribeExportConfigurations(DescribeExportConfigurationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportConfigurationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeExportConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeExportConfigurations.</param>
///
/// <returns>Returns a DescribeExportConfigurationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
public virtual DescribeExportConfigurationsResponse EndDescribeExportConfigurations(IAsyncResult asyncResult)
{
return EndInvoke<DescribeExportConfigurationsResponse>(asyncResult);
}
#endregion
#region DescribeExportTasks
/// <summary>
/// Retrieve status of one or more export tasks. You can retrieve the status of up to
/// 100 export tasks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks service method.</param>
///
/// <returns>The response from the DescribeExportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
public virtual DescribeExportTasksResponse DescribeExportTasks(DescribeExportTasksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportTasksResponseUnmarshaller.Instance;
return Invoke<DescribeExportTasksResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeExportTasks operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeExportTasks
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
public virtual IAsyncResult BeginDescribeExportTasks(DescribeExportTasksRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportTasksResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeExportTasks operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeExportTasks.</param>
///
/// <returns>Returns a DescribeExportTasksResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
public virtual DescribeExportTasksResponse EndDescribeExportTasks(IAsyncResult asyncResult)
{
return EndInvoke<DescribeExportTasksResponse>(asyncResult);
}
#endregion
#region DescribeImportTasks
/// <summary>
/// Returns an array of import tasks for your account, including status information, times,
/// IDs, the Amazon S3 Object URL for the import file, and more.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks service method.</param>
///
/// <returns>The response from the DescribeImportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
public virtual DescribeImportTasksResponse DescribeImportTasks(DescribeImportTasksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeImportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeImportTasksResponseUnmarshaller.Instance;
return Invoke<DescribeImportTasksResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeImportTasks operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeImportTasks
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
public virtual IAsyncResult BeginDescribeImportTasks(DescribeImportTasksRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeImportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeImportTasksResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeImportTasks operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeImportTasks.</param>
///
/// <returns>Returns a DescribeImportTasksResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
public virtual DescribeImportTasksResponse EndDescribeImportTasks(IAsyncResult asyncResult)
{
return EndInvoke<DescribeImportTasksResponse>(asyncResult);
}
#endregion
#region DescribeTags
/// <summary>
/// Retrieves a list of configuration items that have tags as specified by the key-value
/// pairs, name and value, passed to the optional parameter <code>filters</code>.
///
///
/// <para>
/// There are three valid tag filter names:
/// </para>
/// <ul> <li>
/// <para>
/// tagKey
/// </para>
/// </li> <li>
/// <para>
/// tagValue
/// </para>
/// </li> <li>
/// <para>
/// configurationId
/// </para>
/// </li> </ul>
/// <para>
/// Also, all configuration items associated with your user that have tags can be listed
/// if you call <code>DescribeTags</code> as is without passing any parameters.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param>
///
/// <returns>The response from the DescribeTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
public virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;
return Invoke<DescribeTagsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeTags operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTags operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTags
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
public virtual IAsyncResult BeginDescribeTags(DescribeTagsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeTags operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTags.</param>
///
/// <returns>Returns a DescribeTagsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
public virtual DescribeTagsResponse EndDescribeTags(IAsyncResult asyncResult)
{
return EndInvoke<DescribeTagsResponse>(asyncResult);
}
#endregion
#region DisassociateConfigurationItemsFromApplication
/// <summary>
/// Disassociates one or more configuration items from an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication service method.</param>
///
/// <returns>The response from the DisassociateConfigurationItemsFromApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
public virtual DisassociateConfigurationItemsFromApplicationResponse DisassociateConfigurationItemsFromApplication(DisassociateConfigurationItemsFromApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateConfigurationItemsFromApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateConfigurationItemsFromApplicationResponseUnmarshaller.Instance;
return Invoke<DisassociateConfigurationItemsFromApplicationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DisassociateConfigurationItemsFromApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateConfigurationItemsFromApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
public virtual IAsyncResult BeginDisassociateConfigurationItemsFromApplication(DisassociateConfigurationItemsFromApplicationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateConfigurationItemsFromApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateConfigurationItemsFromApplicationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DisassociateConfigurationItemsFromApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateConfigurationItemsFromApplication.</param>
///
/// <returns>Returns a DisassociateConfigurationItemsFromApplicationResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
public virtual DisassociateConfigurationItemsFromApplicationResponse EndDisassociateConfigurationItemsFromApplication(IAsyncResult asyncResult)
{
return EndInvoke<DisassociateConfigurationItemsFromApplicationResponse>(asyncResult);
}
#endregion
#region ExportConfigurations
/// <summary>
/// Deprecated. Use <code>StartExportTask</code> instead.
///
///
/// <para>
/// Exports all discovered configuration data to an Amazon S3 bucket or an application
/// that enables you to view and evaluate the data. Data includes tags and tag associations,
/// processes, connections, servers, and system performance. This API returns an export
/// ID that you can query using the <i>DescribeExportConfigurations</i> API. The system
/// imposes a limit of two configuration exports in six hours.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations service method.</param>
///
/// <returns>The response from the ExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
public virtual ExportConfigurationsResponse ExportConfigurations(ExportConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportConfigurationsResponseUnmarshaller.Instance;
return Invoke<ExportConfigurationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ExportConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
public virtual IAsyncResult BeginExportConfigurations(ExportConfigurationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportConfigurationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ExportConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportConfigurations.</param>
///
/// <returns>Returns a ExportConfigurationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
public virtual ExportConfigurationsResponse EndExportConfigurations(IAsyncResult asyncResult)
{
return EndInvoke<ExportConfigurationsResponse>(asyncResult);
}
#endregion
#region GetDiscoverySummary
/// <summary>
/// Retrieves a short summary of discovered assets.
///
///
/// <para>
/// This API operation takes no request parameters and is called as is at the command
/// prompt as shown in the example.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary service method.</param>
///
/// <returns>The response from the GetDiscoverySummary service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
public virtual GetDiscoverySummaryResponse GetDiscoverySummary(GetDiscoverySummaryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDiscoverySummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDiscoverySummaryResponseUnmarshaller.Instance;
return Invoke<GetDiscoverySummaryResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetDiscoverySummary operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDiscoverySummary
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
public virtual IAsyncResult BeginGetDiscoverySummary(GetDiscoverySummaryRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDiscoverySummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDiscoverySummaryResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetDiscoverySummary operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDiscoverySummary.</param>
///
/// <returns>Returns a GetDiscoverySummaryResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
public virtual GetDiscoverySummaryResponse EndGetDiscoverySummary(IAsyncResult asyncResult)
{
return EndInvoke<GetDiscoverySummaryResponse>(asyncResult);
}
#endregion
#region ListConfigurations
/// <summary>
/// Retrieves a list of configuration items as specified by the value passed to the required
/// parameter <code>configurationType</code>. Optional filtering may be applied to refine
/// search results.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations service method.</param>
///
/// <returns>The response from the ListConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
public virtual ListConfigurationsResponse ListConfigurations(ListConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationsResponseUnmarshaller.Instance;
return Invoke<ListConfigurationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
public virtual IAsyncResult BeginListConfigurations(ListConfigurationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConfigurations.</param>
///
/// <returns>Returns a ListConfigurationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
public virtual ListConfigurationsResponse EndListConfigurations(IAsyncResult asyncResult)
{
return EndInvoke<ListConfigurationsResponse>(asyncResult);
}
#endregion
#region ListServerNeighbors
/// <summary>
/// Retrieves a list of servers that are one network hop away from a specified server.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors service method.</param>
///
/// <returns>The response from the ListServerNeighbors service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
public virtual ListServerNeighborsResponse ListServerNeighbors(ListServerNeighborsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServerNeighborsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServerNeighborsResponseUnmarshaller.Instance;
return Invoke<ListServerNeighborsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListServerNeighbors operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListServerNeighbors
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
public virtual IAsyncResult BeginListServerNeighbors(ListServerNeighborsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServerNeighborsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServerNeighborsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListServerNeighbors operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListServerNeighbors.</param>
///
/// <returns>Returns a ListServerNeighborsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
public virtual ListServerNeighborsResponse EndListServerNeighbors(IAsyncResult asyncResult)
{
return EndInvoke<ListServerNeighborsResponse>(asyncResult);
}
#endregion
#region StartContinuousExport
/// <summary>
/// Start the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport service method.</param>
///
/// <returns>The response from the StartContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ConflictErrorException">
///
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
public virtual StartContinuousExportResponse StartContinuousExport(StartContinuousExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartContinuousExportResponseUnmarshaller.Instance;
return Invoke<StartContinuousExportResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartContinuousExport operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartContinuousExport
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
public virtual IAsyncResult BeginStartContinuousExport(StartContinuousExportRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartContinuousExportResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartContinuousExport operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartContinuousExport.</param>
///
/// <returns>Returns a StartContinuousExportResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
public virtual StartContinuousExportResponse EndStartContinuousExport(IAsyncResult asyncResult)
{
return EndInvoke<StartContinuousExportResponse>(asyncResult);
}
#endregion
#region StartDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to start collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds service method.</param>
///
/// <returns>The response from the StartDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
public virtual StartDataCollectionByAgentIdsResponse StartDataCollectionByAgentIds(StartDataCollectionByAgentIdsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return Invoke<StartDataCollectionByAgentIdsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartDataCollectionByAgentIds operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartDataCollectionByAgentIds
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
public virtual IAsyncResult BeginStartDataCollectionByAgentIds(StartDataCollectionByAgentIdsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartDataCollectionByAgentIds operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartDataCollectionByAgentIds.</param>
///
/// <returns>Returns a StartDataCollectionByAgentIdsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
public virtual StartDataCollectionByAgentIdsResponse EndStartDataCollectionByAgentIds(IAsyncResult asyncResult)
{
return EndInvoke<StartDataCollectionByAgentIdsResponse>(asyncResult);
}
#endregion
#region StartExportTask
/// <summary>
/// Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon
/// Web Services.
///
/// <note>
/// <para>
/// Exports might provide an estimate of fees and savings based on certain information
/// that you provide. Fee estimates do not include any taxes that might apply. Your actual
/// fees and savings depend on a variety of factors, including your actual usage of Amazon
/// Web Services services, which might vary from the estimates provided in this report.
/// </para>
/// </note>
/// <para>
/// If you do not specify <code>preferences</code> or <code>agentIds</code> in the filter,
/// a summary of all servers, applications, tags, and performance is generated. This data
/// is an aggregation of all server data collected through on-premises tooling, file import,
/// application grouping and applying tags.
/// </para>
///
/// <para>
/// If you specify <code>agentIds</code> in a filter, the task exports up to 72 hours
/// of detailed data collected by the identified Application Discovery Agent, including
/// network, process, and performance details. A time range for exported agent data may
/// be set by using <code>startTime</code> and <code>endTime</code>. Export of detailed
/// agent data is limited to five concurrently running exports. Export of detailed agent
/// data is limited to two exports per day.
/// </para>
///
/// <para>
/// If you enable <code>ec2RecommendationsPreferences</code> in <code>preferences</code>
/// , an Amazon EC2 instance matching the characteristics of each server in Application
/// Discovery Service is generated. Changing the attributes of the <code>ec2RecommendationsPreferences</code>
/// changes the criteria of the recommendation.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartExportTask service method.</param>
///
/// <returns>The response from the StartExportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
public virtual StartExportTaskResponse StartExportTask(StartExportTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExportTaskResponseUnmarshaller.Instance;
return Invoke<StartExportTaskResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartExportTask operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartExportTask operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartExportTask
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
public virtual IAsyncResult BeginStartExportTask(StartExportTaskRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExportTaskResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartExportTask operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartExportTask.</param>
///
/// <returns>Returns a StartExportTaskResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
public virtual StartExportTaskResponse EndStartExportTask(IAsyncResult asyncResult)
{
return EndInvoke<StartExportTaskResponse>(asyncResult);
}
#endregion
#region StartImportTask
/// <summary>
/// Starts an import task, which allows you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub without having to use the Amazon Web
/// Services Application Discovery Service (Application Discovery Service) tools such
/// as the Amazon Web Services Application Discovery Service Agentless Collector or Application
/// Discovery Agent. This gives you the option to perform migration assessment and planning
/// directly from your imported data, including the ability to group your devices as applications
/// and track their migration status.
///
///
/// <para>
/// To start an import request, do this:
/// </para>
/// <ol> <li>
/// <para>
/// Download the specially formatted comma separated value (CSV) import template, which
/// you can find here: <a href="https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv">https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv</a>.
/// </para>
/// </li> <li>
/// <para>
/// Fill out the template with your server and application data.
/// </para>
/// </li> <li>
/// <para>
/// Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL.
/// Your import file must be in the CSV format.
/// </para>
/// </li> <li>
/// <para>
/// Use the console or the <code>StartImportTask</code> command with the Amazon Web Services
/// CLI or one of the Amazon Web Services SDKs to import the records from your file.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, including step-by-step procedures, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html">Migration
/// Hub Import</a> in the <i>Amazon Web Services Application Discovery Service User Guide</i>.
/// </para>
/// <note>
/// <para>
/// There are limits to the number of import tasks you can create (and delete) in an Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html">Amazon
/// Web Services Application Discovery Service Limits</a> in the <i>Amazon Web Services
/// Application Discovery Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartImportTask service method.</param>
///
/// <returns>The response from the StartImportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
public virtual StartImportTaskResponse StartImportTask(StartImportTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportTaskResponseUnmarshaller.Instance;
return Invoke<StartImportTaskResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartImportTask operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartImportTask operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartImportTask
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
public virtual IAsyncResult BeginStartImportTask(StartImportTaskRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportTaskResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartImportTask operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartImportTask.</param>
///
/// <returns>Returns a StartImportTaskResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
public virtual StartImportTaskResponse EndStartImportTask(IAsyncResult asyncResult)
{
return EndInvoke<StartImportTaskResponse>(asyncResult);
}
#endregion
#region StopContinuousExport
/// <summary>
/// Stop the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport service method.</param>
///
/// <returns>The response from the StopContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
public virtual StopContinuousExportResponse StopContinuousExport(StopContinuousExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopContinuousExportResponseUnmarshaller.Instance;
return Invoke<StopContinuousExportResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StopContinuousExport operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopContinuousExport
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
public virtual IAsyncResult BeginStopContinuousExport(StopContinuousExportRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopContinuousExportResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StopContinuousExport operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopContinuousExport.</param>
///
/// <returns>Returns a StopContinuousExportResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
public virtual StopContinuousExportResponse EndStopContinuousExport(IAsyncResult asyncResult)
{
return EndInvoke<StopContinuousExportResponse>(asyncResult);
}
#endregion
#region StopDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to stop collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds service method.</param>
///
/// <returns>The response from the StopDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
public virtual StopDataCollectionByAgentIdsResponse StopDataCollectionByAgentIds(StopDataCollectionByAgentIdsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return Invoke<StopDataCollectionByAgentIdsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StopDataCollectionByAgentIds operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopDataCollectionByAgentIds
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
public virtual IAsyncResult BeginStopDataCollectionByAgentIds(StopDataCollectionByAgentIdsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StopDataCollectionByAgentIds operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopDataCollectionByAgentIds.</param>
///
/// <returns>Returns a StopDataCollectionByAgentIdsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
public virtual StopDataCollectionByAgentIdsResponse EndStopDataCollectionByAgentIds(IAsyncResult asyncResult)
{
return EndInvoke<StopDataCollectionByAgentIdsResponse>(asyncResult);
}
#endregion
#region UpdateApplication
/// <summary>
/// Updates metadata about an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication service method.</param>
///
/// <returns>The response from the UpdateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
public virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;
return Invoke<UpdateApplicationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
public virtual IAsyncResult BeginUpdateApplication(UpdateApplicationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateApplication.</param>
///
/// <returns>Returns a UpdateApplicationResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
public virtual UpdateApplicationResponse EndUpdateApplication(IAsyncResult asyncResult)
{
return EndInvoke<UpdateApplicationResponse>(asyncResult);
}
#endregion
}
} | 2,406 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApplicationDiscoveryService.Model;
namespace Amazon.ApplicationDiscoveryService
{
/// <summary>
/// Interface for accessing ApplicationDiscoveryService
///
/// Amazon Web Services Application Discovery Service
/// <para>
/// Amazon Web Services Application Discovery Service (Application Discovery Service)
/// helps you plan application migration projects. It automatically identifies servers,
/// virtual machines (VMs), and network dependencies in your on-premises data centers.
/// For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon
/// Web Services Application Discovery Service FAQ</a>.
/// </para>
///
/// <para>
/// Application Discovery Service offers three ways of performing discovery and collecting
/// data about your on-premises servers:
/// </para>
/// <ul> <li>
/// <para>
/// <b>Agentless discovery</b> using Amazon Web Services Application Discovery Service
/// Agentless Collector (Agentless Collector), which doesn't require you to install an
/// agent on each host.
/// </para>
/// <ul> <li>
/// <para>
/// Agentless Collector gathers server information regardless of the operating systems,
/// which minimizes the time required for initial on-premises infrastructure assessment.
/// </para>
/// </li> <li>
/// <para>
/// Agentless Collector doesn't collect information about network dependencies, only agent-based
/// discovery collects that information.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Agent-based discovery</b> using the Amazon Web Services Application Discovery
/// Agent (Application Discovery Agent) collects a richer set of data than agentless discovery,
/// which you install on one or more hosts in your data center.
/// </para>
/// <ul> <li>
/// <para>
/// The agent captures infrastructure and application information, including an inventory
/// of running processes, system performance information, resource utilization, and network
/// dependencies.
/// </para>
/// </li> <li>
/// <para>
/// The information collected by agents is secured at rest and in transit to the Application
/// Discovery Service database in the Amazon Web Services cloud. For more information,
/// see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-agent.html">Amazon
/// Web Services Application Discovery Agent</a>.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Amazon Web Services Partner Network (APN) solutions</b> integrate with Application
/// Discovery Service, enabling you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub (Migration Hub) without using Agentless
/// Collector or Application Discovery Agent.
/// </para>
/// <ul> <li>
/// <para>
/// Third-party application discovery tools can query Amazon Web Services Application
/// Discovery Service, and they can write to the Application Discovery Service database
/// using the public API.
/// </para>
/// </li> <li>
/// <para>
/// In this way, you can import data into Migration Hub and view it, so that you can associate
/// applications with servers and track migrations.
/// </para>
/// </li> </ul> </li> </ul>
/// <para>
/// <b>Working With This Guide</b>
/// </para>
///
/// <para>
/// This API reference provides descriptions, syntax, and usage examples for each of the
/// actions and data types for Application Discovery Service. The topic for each action
/// shows the API request parameters and the response. Alternatively, you can use one
/// of the Amazon Web Services SDKs to access an API that is tailored to the programming
/// language or platform that you're using. For more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon
/// Web Services SDKs</a>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// Remember that you must set your Migration Hub home Region before you call any of these
/// APIs.
/// </para>
/// </li> <li>
/// <para>
/// You must make API calls for write actions (create, notify, associate, disassociate,
/// import, or put) while in your home Region, or a <code>HomeRegionNotSetException</code>
/// error is returned.
/// </para>
/// </li> <li>
/// <para>
/// API calls for read actions (list, describe, stop, and delete) are permitted outside
/// of your home Region.
/// </para>
/// </li> <li>
/// <para>
/// Although it is unlikely, the Migration Hub home Region could change. If you call APIs
/// outside the home Region, an <code>InvalidInputException</code> is returned.
/// </para>
/// </li> <li>
/// <para>
/// You must call <code>GetHomeRegion</code> to obtain the latest Migration Hub home Region.
/// </para>
/// </li> </ul> </note>
/// <para>
/// This guide is intended for use with the <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon
/// Web Services Application Discovery Service User Guide</a>.
/// </para>
/// <important>
/// <para>
/// All data is handled according to the <a href="https://aws.amazon.com/privacy/">Amazon
/// Web Services Privacy Policy</a>. You can operate Application Discovery Service offline
/// to inspect collected data before it is shared with the service.
/// </para>
/// </important>
/// </summary>
public partial interface IAmazonApplicationDiscoveryService : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationDiscoveryServicePaginatorFactory Paginators { get; }
#endif
#region AssociateConfigurationItemsToApplication
/// <summary>
/// Associates one or more configuration items with an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication service method.</param>
///
/// <returns>The response from the AssociateConfigurationItemsToApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
AssociateConfigurationItemsToApplicationResponse AssociateConfigurationItemsToApplication(AssociateConfigurationItemsToApplicationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the AssociateConfigurationItemsToApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateConfigurationItemsToApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
IAsyncResult BeginAssociateConfigurationItemsToApplication(AssociateConfigurationItemsToApplicationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the AssociateConfigurationItemsToApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateConfigurationItemsToApplication.</param>
///
/// <returns>Returns a AssociateConfigurationItemsToApplicationResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
AssociateConfigurationItemsToApplicationResponse EndAssociateConfigurationItemsToApplication(IAsyncResult asyncResult);
#endregion
#region BatchDeleteImportData
/// <summary>
/// Deletes one or more import tasks, each identified by their import ID. Each import
/// task has a number of records that can identify servers or applications.
///
///
/// <para>
/// Amazon Web Services Application Discovery Service has built-in matching logic that
/// will identify when discovered servers match existing entries that you've previously
/// discovered, the information for the already-existing discovered server is updated.
/// When you delete an import task that contains records that were used to match, the
/// information in those matched records that comes from the deleted records will also
/// be deleted.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData service method.</param>
///
/// <returns>The response from the BatchDeleteImportData service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
BatchDeleteImportDataResponse BatchDeleteImportData(BatchDeleteImportDataRequest request);
/// <summary>
/// Initiates the asynchronous execution of the BatchDeleteImportData operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDeleteImportData
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
IAsyncResult BeginBatchDeleteImportData(BatchDeleteImportDataRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the BatchDeleteImportData operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchDeleteImportData.</param>
///
/// <returns>Returns a BatchDeleteImportDataResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
BatchDeleteImportDataResponse EndBatchDeleteImportData(IAsyncResult asyncResult);
#endregion
#region CreateApplication
/// <summary>
/// Creates an application with the given name and description.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApplication service method.</param>
///
/// <returns>The response from the CreateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
CreateApplicationResponse CreateApplication(CreateApplicationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateApplication operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
IAsyncResult BeginCreateApplication(CreateApplicationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateApplication.</param>
///
/// <returns>Returns a CreateApplicationResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
CreateApplicationResponse EndCreateApplication(IAsyncResult asyncResult);
#endregion
#region CreateTags
/// <summary>
/// Creates one or more tags for configuration items. Tags are metadata that help you
/// categorize IT assets. This API accepts a list of multiple configuration items.
///
/// <important>
/// <para>
/// Do not store sensitive information (like personal data) in tags.
/// </para>
/// </important>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTags service method.</param>
///
/// <returns>The response from the CreateTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
CreateTagsResponse CreateTags(CreateTagsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateTags operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateTags operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateTags
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
IAsyncResult BeginCreateTags(CreateTagsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateTags operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateTags.</param>
///
/// <returns>Returns a CreateTagsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
CreateTagsResponse EndCreateTags(IAsyncResult asyncResult);
#endregion
#region DeleteApplications
/// <summary>
/// Deletes a list of applications and their associations with configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications service method.</param>
///
/// <returns>The response from the DeleteApplications service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
DeleteApplicationsResponse DeleteApplications(DeleteApplicationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteApplications operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteApplications
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
IAsyncResult BeginDeleteApplications(DeleteApplicationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteApplications operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApplications.</param>
///
/// <returns>Returns a DeleteApplicationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
DeleteApplicationsResponse EndDeleteApplications(IAsyncResult asyncResult);
#endregion
#region DeleteTags
/// <summary>
/// Deletes the association between configuration items and one or more tags. This API
/// accepts a list of multiple configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param>
///
/// <returns>The response from the DeleteTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
DeleteTagsResponse DeleteTags(DeleteTagsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteTags operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteTags operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTags
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
IAsyncResult BeginDeleteTags(DeleteTagsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteTags operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteTags.</param>
///
/// <returns>Returns a DeleteTagsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
DeleteTagsResponse EndDeleteTags(IAsyncResult asyncResult);
#endregion
#region DescribeAgents
/// <summary>
/// Lists agents or collectors as specified by ID or other filters. All agents/collectors
/// associated with your user can be listed if you call <code>DescribeAgents</code> as
/// is without passing any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents service method.</param>
///
/// <returns>The response from the DescribeAgents service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
DescribeAgentsResponse DescribeAgents(DescribeAgentsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeAgents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAgents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
IAsyncResult BeginDescribeAgents(DescribeAgentsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeAgents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAgents.</param>
///
/// <returns>Returns a DescribeAgentsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
DescribeAgentsResponse EndDescribeAgents(IAsyncResult asyncResult);
#endregion
#region DescribeConfigurations
/// <summary>
/// Retrieves attributes for a list of configuration item IDs.
///
/// <note>
/// <para>
/// All of the supplied IDs must be for the same asset type from one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// server
/// </para>
/// </li> <li>
/// <para>
/// application
/// </para>
/// </li> <li>
/// <para>
/// process
/// </para>
/// </li> <li>
/// <para>
/// connection
/// </para>
/// </li> </ul>
/// <para>
/// Output fields are specific to the asset type specified. For example, the output for
/// a <i>server</i> configuration item includes a list of attributes about the server,
/// such as host name, operating system, number of network cards, etc.
/// </para>
///
/// <para>
/// For a complete list of outputs for each asset type, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations">Using
/// the DescribeConfigurations Action</a> in the <i>Amazon Web Services Application Discovery
/// Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations service method.</param>
///
/// <returns>The response from the DescribeConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
DescribeConfigurationsResponse DescribeConfigurations(DescribeConfigurationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
IAsyncResult BeginDescribeConfigurations(DescribeConfigurationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeConfigurations.</param>
///
/// <returns>Returns a DescribeConfigurationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
DescribeConfigurationsResponse EndDescribeConfigurations(IAsyncResult asyncResult);
#endregion
#region DescribeContinuousExports
/// <summary>
/// Lists exports as specified by ID. All continuous exports associated with your user
/// can be listed if you call <code>DescribeContinuousExports</code> as is without passing
/// any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports service method.</param>
///
/// <returns>The response from the DescribeContinuousExports service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
DescribeContinuousExportsResponse DescribeContinuousExports(DescribeContinuousExportsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeContinuousExports operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeContinuousExports
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
IAsyncResult BeginDescribeContinuousExports(DescribeContinuousExportsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeContinuousExports operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeContinuousExports.</param>
///
/// <returns>Returns a DescribeContinuousExportsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
DescribeContinuousExportsResponse EndDescribeContinuousExports(IAsyncResult asyncResult);
#endregion
#region DescribeExportConfigurations
/// <summary>
/// <code>DescribeExportConfigurations</code> is deprecated. Use <a href="https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a>,
/// instead.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations service method.</param>
///
/// <returns>The response from the DescribeExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
DescribeExportConfigurationsResponse DescribeExportConfigurations(DescribeExportConfigurationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeExportConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeExportConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
IAsyncResult BeginDescribeExportConfigurations(DescribeExportConfigurationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeExportConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeExportConfigurations.</param>
///
/// <returns>Returns a DescribeExportConfigurationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
DescribeExportConfigurationsResponse EndDescribeExportConfigurations(IAsyncResult asyncResult);
#endregion
#region DescribeExportTasks
/// <summary>
/// Retrieve status of one or more export tasks. You can retrieve the status of up to
/// 100 export tasks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks service method.</param>
///
/// <returns>The response from the DescribeExportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
DescribeExportTasksResponse DescribeExportTasks(DescribeExportTasksRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeExportTasks operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeExportTasks
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
IAsyncResult BeginDescribeExportTasks(DescribeExportTasksRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeExportTasks operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeExportTasks.</param>
///
/// <returns>Returns a DescribeExportTasksResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
DescribeExportTasksResponse EndDescribeExportTasks(IAsyncResult asyncResult);
#endregion
#region DescribeImportTasks
/// <summary>
/// Returns an array of import tasks for your account, including status information, times,
/// IDs, the Amazon S3 Object URL for the import file, and more.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks service method.</param>
///
/// <returns>The response from the DescribeImportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
DescribeImportTasksResponse DescribeImportTasks(DescribeImportTasksRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeImportTasks operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeImportTasks
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
IAsyncResult BeginDescribeImportTasks(DescribeImportTasksRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeImportTasks operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeImportTasks.</param>
///
/// <returns>Returns a DescribeImportTasksResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
DescribeImportTasksResponse EndDescribeImportTasks(IAsyncResult asyncResult);
#endregion
#region DescribeTags
/// <summary>
/// Retrieves a list of configuration items that have tags as specified by the key-value
/// pairs, name and value, passed to the optional parameter <code>filters</code>.
///
///
/// <para>
/// There are three valid tag filter names:
/// </para>
/// <ul> <li>
/// <para>
/// tagKey
/// </para>
/// </li> <li>
/// <para>
/// tagValue
/// </para>
/// </li> <li>
/// <para>
/// configurationId
/// </para>
/// </li> </ul>
/// <para>
/// Also, all configuration items associated with your user that have tags can be listed
/// if you call <code>DescribeTags</code> as is without passing any parameters.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param>
///
/// <returns>The response from the DescribeTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
DescribeTagsResponse DescribeTags(DescribeTagsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeTags operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTags operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTags
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
IAsyncResult BeginDescribeTags(DescribeTagsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeTags operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTags.</param>
///
/// <returns>Returns a DescribeTagsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
DescribeTagsResponse EndDescribeTags(IAsyncResult asyncResult);
#endregion
#region DisassociateConfigurationItemsFromApplication
/// <summary>
/// Disassociates one or more configuration items from an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication service method.</param>
///
/// <returns>The response from the DisassociateConfigurationItemsFromApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
DisassociateConfigurationItemsFromApplicationResponse DisassociateConfigurationItemsFromApplication(DisassociateConfigurationItemsFromApplicationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DisassociateConfigurationItemsFromApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateConfigurationItemsFromApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
IAsyncResult BeginDisassociateConfigurationItemsFromApplication(DisassociateConfigurationItemsFromApplicationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DisassociateConfigurationItemsFromApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateConfigurationItemsFromApplication.</param>
///
/// <returns>Returns a DisassociateConfigurationItemsFromApplicationResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
DisassociateConfigurationItemsFromApplicationResponse EndDisassociateConfigurationItemsFromApplication(IAsyncResult asyncResult);
#endregion
#region ExportConfigurations
/// <summary>
/// Deprecated. Use <code>StartExportTask</code> instead.
///
///
/// <para>
/// Exports all discovered configuration data to an Amazon S3 bucket or an application
/// that enables you to view and evaluate the data. Data includes tags and tag associations,
/// processes, connections, servers, and system performance. This API returns an export
/// ID that you can query using the <i>DescribeExportConfigurations</i> API. The system
/// imposes a limit of two configuration exports in six hours.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations service method.</param>
///
/// <returns>The response from the ExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
ExportConfigurationsResponse ExportConfigurations(ExportConfigurationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ExportConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
IAsyncResult BeginExportConfigurations(ExportConfigurationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ExportConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportConfigurations.</param>
///
/// <returns>Returns a ExportConfigurationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
ExportConfigurationsResponse EndExportConfigurations(IAsyncResult asyncResult);
#endregion
#region GetDiscoverySummary
/// <summary>
/// Retrieves a short summary of discovered assets.
///
///
/// <para>
/// This API operation takes no request parameters and is called as is at the command
/// prompt as shown in the example.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary service method.</param>
///
/// <returns>The response from the GetDiscoverySummary service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
GetDiscoverySummaryResponse GetDiscoverySummary(GetDiscoverySummaryRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetDiscoverySummary operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDiscoverySummary
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
IAsyncResult BeginGetDiscoverySummary(GetDiscoverySummaryRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetDiscoverySummary operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDiscoverySummary.</param>
///
/// <returns>Returns a GetDiscoverySummaryResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
GetDiscoverySummaryResponse EndGetDiscoverySummary(IAsyncResult asyncResult);
#endregion
#region ListConfigurations
/// <summary>
/// Retrieves a list of configuration items as specified by the value passed to the required
/// parameter <code>configurationType</code>. Optional filtering may be applied to refine
/// search results.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations service method.</param>
///
/// <returns>The response from the ListConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
ListConfigurationsResponse ListConfigurations(ListConfigurationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListConfigurations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListConfigurations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
IAsyncResult BeginListConfigurations(ListConfigurationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListConfigurations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConfigurations.</param>
///
/// <returns>Returns a ListConfigurationsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
ListConfigurationsResponse EndListConfigurations(IAsyncResult asyncResult);
#endregion
#region ListServerNeighbors
/// <summary>
/// Retrieves a list of servers that are one network hop away from a specified server.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors service method.</param>
///
/// <returns>The response from the ListServerNeighbors service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
ListServerNeighborsResponse ListServerNeighbors(ListServerNeighborsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListServerNeighbors operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListServerNeighbors
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
IAsyncResult BeginListServerNeighbors(ListServerNeighborsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListServerNeighbors operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListServerNeighbors.</param>
///
/// <returns>Returns a ListServerNeighborsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
ListServerNeighborsResponse EndListServerNeighbors(IAsyncResult asyncResult);
#endregion
#region StartContinuousExport
/// <summary>
/// Start the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport service method.</param>
///
/// <returns>The response from the StartContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ConflictErrorException">
///
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
StartContinuousExportResponse StartContinuousExport(StartContinuousExportRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartContinuousExport operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartContinuousExport
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
IAsyncResult BeginStartContinuousExport(StartContinuousExportRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartContinuousExport operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartContinuousExport.</param>
///
/// <returns>Returns a StartContinuousExportResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
StartContinuousExportResponse EndStartContinuousExport(IAsyncResult asyncResult);
#endregion
#region StartDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to start collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds service method.</param>
///
/// <returns>The response from the StartDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
StartDataCollectionByAgentIdsResponse StartDataCollectionByAgentIds(StartDataCollectionByAgentIdsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartDataCollectionByAgentIds operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartDataCollectionByAgentIds
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
IAsyncResult BeginStartDataCollectionByAgentIds(StartDataCollectionByAgentIdsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartDataCollectionByAgentIds operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartDataCollectionByAgentIds.</param>
///
/// <returns>Returns a StartDataCollectionByAgentIdsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
StartDataCollectionByAgentIdsResponse EndStartDataCollectionByAgentIds(IAsyncResult asyncResult);
#endregion
#region StartExportTask
/// <summary>
/// Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon
/// Web Services.
///
/// <note>
/// <para>
/// Exports might provide an estimate of fees and savings based on certain information
/// that you provide. Fee estimates do not include any taxes that might apply. Your actual
/// fees and savings depend on a variety of factors, including your actual usage of Amazon
/// Web Services services, which might vary from the estimates provided in this report.
/// </para>
/// </note>
/// <para>
/// If you do not specify <code>preferences</code> or <code>agentIds</code> in the filter,
/// a summary of all servers, applications, tags, and performance is generated. This data
/// is an aggregation of all server data collected through on-premises tooling, file import,
/// application grouping and applying tags.
/// </para>
///
/// <para>
/// If you specify <code>agentIds</code> in a filter, the task exports up to 72 hours
/// of detailed data collected by the identified Application Discovery Agent, including
/// network, process, and performance details. A time range for exported agent data may
/// be set by using <code>startTime</code> and <code>endTime</code>. Export of detailed
/// agent data is limited to five concurrently running exports. Export of detailed agent
/// data is limited to two exports per day.
/// </para>
///
/// <para>
/// If you enable <code>ec2RecommendationsPreferences</code> in <code>preferences</code>
/// , an Amazon EC2 instance matching the characteristics of each server in Application
/// Discovery Service is generated. Changing the attributes of the <code>ec2RecommendationsPreferences</code>
/// changes the criteria of the recommendation.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartExportTask service method.</param>
///
/// <returns>The response from the StartExportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
StartExportTaskResponse StartExportTask(StartExportTaskRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartExportTask operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartExportTask operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartExportTask
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
IAsyncResult BeginStartExportTask(StartExportTaskRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartExportTask operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartExportTask.</param>
///
/// <returns>Returns a StartExportTaskResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
StartExportTaskResponse EndStartExportTask(IAsyncResult asyncResult);
#endregion
#region StartImportTask
/// <summary>
/// Starts an import task, which allows you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub without having to use the Amazon Web
/// Services Application Discovery Service (Application Discovery Service) tools such
/// as the Amazon Web Services Application Discovery Service Agentless Collector or Application
/// Discovery Agent. This gives you the option to perform migration assessment and planning
/// directly from your imported data, including the ability to group your devices as applications
/// and track their migration status.
///
///
/// <para>
/// To start an import request, do this:
/// </para>
/// <ol> <li>
/// <para>
/// Download the specially formatted comma separated value (CSV) import template, which
/// you can find here: <a href="https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv">https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv</a>.
/// </para>
/// </li> <li>
/// <para>
/// Fill out the template with your server and application data.
/// </para>
/// </li> <li>
/// <para>
/// Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL.
/// Your import file must be in the CSV format.
/// </para>
/// </li> <li>
/// <para>
/// Use the console or the <code>StartImportTask</code> command with the Amazon Web Services
/// CLI or one of the Amazon Web Services SDKs to import the records from your file.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, including step-by-step procedures, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html">Migration
/// Hub Import</a> in the <i>Amazon Web Services Application Discovery Service User Guide</i>.
/// </para>
/// <note>
/// <para>
/// There are limits to the number of import tasks you can create (and delete) in an Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html">Amazon
/// Web Services Application Discovery Service Limits</a> in the <i>Amazon Web Services
/// Application Discovery Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartImportTask service method.</param>
///
/// <returns>The response from the StartImportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
StartImportTaskResponse StartImportTask(StartImportTaskRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartImportTask operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartImportTask operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartImportTask
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
IAsyncResult BeginStartImportTask(StartImportTaskRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartImportTask operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartImportTask.</param>
///
/// <returns>Returns a StartImportTaskResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
StartImportTaskResponse EndStartImportTask(IAsyncResult asyncResult);
#endregion
#region StopContinuousExport
/// <summary>
/// Stop the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport service method.</param>
///
/// <returns>The response from the StopContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
StopContinuousExportResponse StopContinuousExport(StopContinuousExportRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StopContinuousExport operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopContinuousExport
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
IAsyncResult BeginStopContinuousExport(StopContinuousExportRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StopContinuousExport operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopContinuousExport.</param>
///
/// <returns>Returns a StopContinuousExportResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
StopContinuousExportResponse EndStopContinuousExport(IAsyncResult asyncResult);
#endregion
#region StopDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to stop collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds service method.</param>
///
/// <returns>The response from the StopDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
StopDataCollectionByAgentIdsResponse StopDataCollectionByAgentIds(StopDataCollectionByAgentIdsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StopDataCollectionByAgentIds operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopDataCollectionByAgentIds
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
IAsyncResult BeginStopDataCollectionByAgentIds(StopDataCollectionByAgentIdsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StopDataCollectionByAgentIds operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopDataCollectionByAgentIds.</param>
///
/// <returns>Returns a StopDataCollectionByAgentIdsResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
StopDataCollectionByAgentIdsResponse EndStopDataCollectionByAgentIds(IAsyncResult asyncResult);
#endregion
#region UpdateApplication
/// <summary>
/// Updates metadata about an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication service method.</param>
///
/// <returns>The response from the UpdateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication operation on AmazonApplicationDiscoveryServiceClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
IAsyncResult BeginUpdateApplication(UpdateApplicationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateApplication.</param>
///
/// <returns>Returns a UpdateApplicationResult from ApplicationDiscoveryService.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
UpdateApplicationResponse EndUpdateApplication(IAsyncResult asyncResult);
#endregion
}
} | 1,836 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations;
using Amazon.ApplicationDiscoveryService.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationDiscoveryService
{
/// <summary>
/// Implementation for accessing ApplicationDiscoveryService
///
/// Amazon Web Services Application Discovery Service
/// <para>
/// Amazon Web Services Application Discovery Service (Application Discovery Service)
/// helps you plan application migration projects. It automatically identifies servers,
/// virtual machines (VMs), and network dependencies in your on-premises data centers.
/// For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon
/// Web Services Application Discovery Service FAQ</a>.
/// </para>
///
/// <para>
/// Application Discovery Service offers three ways of performing discovery and collecting
/// data about your on-premises servers:
/// </para>
/// <ul> <li>
/// <para>
/// <b>Agentless discovery</b> using Amazon Web Services Application Discovery Service
/// Agentless Collector (Agentless Collector), which doesn't require you to install an
/// agent on each host.
/// </para>
/// <ul> <li>
/// <para>
/// Agentless Collector gathers server information regardless of the operating systems,
/// which minimizes the time required for initial on-premises infrastructure assessment.
/// </para>
/// </li> <li>
/// <para>
/// Agentless Collector doesn't collect information about network dependencies, only agent-based
/// discovery collects that information.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Agent-based discovery</b> using the Amazon Web Services Application Discovery
/// Agent (Application Discovery Agent) collects a richer set of data than agentless discovery,
/// which you install on one or more hosts in your data center.
/// </para>
/// <ul> <li>
/// <para>
/// The agent captures infrastructure and application information, including an inventory
/// of running processes, system performance information, resource utilization, and network
/// dependencies.
/// </para>
/// </li> <li>
/// <para>
/// The information collected by agents is secured at rest and in transit to the Application
/// Discovery Service database in the Amazon Web Services cloud. For more information,
/// see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-agent.html">Amazon
/// Web Services Application Discovery Agent</a>.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Amazon Web Services Partner Network (APN) solutions</b> integrate with Application
/// Discovery Service, enabling you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub (Migration Hub) without using Agentless
/// Collector or Application Discovery Agent.
/// </para>
/// <ul> <li>
/// <para>
/// Third-party application discovery tools can query Amazon Web Services Application
/// Discovery Service, and they can write to the Application Discovery Service database
/// using the public API.
/// </para>
/// </li> <li>
/// <para>
/// In this way, you can import data into Migration Hub and view it, so that you can associate
/// applications with servers and track migrations.
/// </para>
/// </li> </ul> </li> </ul>
/// <para>
/// <b>Working With This Guide</b>
/// </para>
///
/// <para>
/// This API reference provides descriptions, syntax, and usage examples for each of the
/// actions and data types for Application Discovery Service. The topic for each action
/// shows the API request parameters and the response. Alternatively, you can use one
/// of the Amazon Web Services SDKs to access an API that is tailored to the programming
/// language or platform that you're using. For more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon
/// Web Services SDKs</a>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// Remember that you must set your Migration Hub home Region before you call any of these
/// APIs.
/// </para>
/// </li> <li>
/// <para>
/// You must make API calls for write actions (create, notify, associate, disassociate,
/// import, or put) while in your home Region, or a <code>HomeRegionNotSetException</code>
/// error is returned.
/// </para>
/// </li> <li>
/// <para>
/// API calls for read actions (list, describe, stop, and delete) are permitted outside
/// of your home Region.
/// </para>
/// </li> <li>
/// <para>
/// Although it is unlikely, the Migration Hub home Region could change. If you call APIs
/// outside the home Region, an <code>InvalidInputException</code> is returned.
/// </para>
/// </li> <li>
/// <para>
/// You must call <code>GetHomeRegion</code> to obtain the latest Migration Hub home Region.
/// </para>
/// </li> </ul> </note>
/// <para>
/// This guide is intended for use with the <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon
/// Web Services Application Discovery Service User Guide</a>.
/// </para>
/// <important>
/// <para>
/// All data is handled according to the <a href="https://aws.amazon.com/privacy/">Amazon
/// Web Services Privacy Policy</a>. You can operate Application Discovery Service offline
/// to inspect collected data before it is shared with the service.
/// </para>
/// </important>
/// </summary>
public partial class AmazonApplicationDiscoveryServiceClient : AmazonServiceClient, IAmazonApplicationDiscoveryService
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationDiscoveryServiceMetadata();
private IApplicationDiscoveryServicePaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationDiscoveryServicePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationDiscoveryServicePaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonApplicationDiscoveryServiceClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationDiscoveryServiceConfig()) { }
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonApplicationDiscoveryServiceClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationDiscoveryServiceConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(AmazonApplicationDiscoveryServiceConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationDiscoveryServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationDiscoveryServiceConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationDiscoveryServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationDiscoveryServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Credentials and an
/// AmazonApplicationDiscoveryServiceClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(AWSCredentials credentials, AmazonApplicationDiscoveryServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationDiscoveryServiceConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationDiscoveryServiceConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationDiscoveryServiceClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationDiscoveryServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationDiscoveryServiceConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationDiscoveryServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationDiscoveryServiceConfig 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 AmazonApplicationDiscoveryServiceEndpointResolver());
}
/// <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 AssociateConfigurationItemsToApplication
/// <summary>
/// Associates one or more configuration items with an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication service method.</param>
///
/// <returns>The response from the AssociateConfigurationItemsToApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
public virtual AssociateConfigurationItemsToApplicationResponse AssociateConfigurationItemsToApplication(AssociateConfigurationItemsToApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateConfigurationItemsToApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateConfigurationItemsToApplicationResponseUnmarshaller.Instance;
return Invoke<AssociateConfigurationItemsToApplicationResponse>(request, options);
}
/// <summary>
/// Associates one or more configuration items with an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AssociateConfigurationItemsToApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
public virtual Task<AssociateConfigurationItemsToApplicationResponse> AssociateConfigurationItemsToApplicationAsync(AssociateConfigurationItemsToApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateConfigurationItemsToApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateConfigurationItemsToApplicationResponseUnmarshaller.Instance;
return InvokeAsync<AssociateConfigurationItemsToApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region BatchDeleteImportData
/// <summary>
/// Deletes one or more import tasks, each identified by their import ID. Each import
/// task has a number of records that can identify servers or applications.
///
///
/// <para>
/// Amazon Web Services Application Discovery Service has built-in matching logic that
/// will identify when discovered servers match existing entries that you've previously
/// discovered, the information for the already-existing discovered server is updated.
/// When you delete an import task that contains records that were used to match, the
/// information in those matched records that comes from the deleted records will also
/// be deleted.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData service method.</param>
///
/// <returns>The response from the BatchDeleteImportData service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
public virtual BatchDeleteImportDataResponse BatchDeleteImportData(BatchDeleteImportDataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteImportDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteImportDataResponseUnmarshaller.Instance;
return Invoke<BatchDeleteImportDataResponse>(request, options);
}
/// <summary>
/// Deletes one or more import tasks, each identified by their import ID. Each import
/// task has a number of records that can identify servers or applications.
///
///
/// <para>
/// Amazon Web Services Application Discovery Service has built-in matching logic that
/// will identify when discovered servers match existing entries that you've previously
/// discovered, the information for the already-existing discovered server is updated.
/// When you delete an import task that contains records that were used to match, the
/// information in those matched records that comes from the deleted records will also
/// be deleted.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the BatchDeleteImportData service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
public virtual Task<BatchDeleteImportDataResponse> BatchDeleteImportDataAsync(BatchDeleteImportDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteImportDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteImportDataResponseUnmarshaller.Instance;
return InvokeAsync<BatchDeleteImportDataResponse>(request, options, cancellationToken);
}
#endregion
#region CreateApplication
/// <summary>
/// Creates an application with the given name and description.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApplication service method.</param>
///
/// <returns>The response from the CreateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
public virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance;
return Invoke<CreateApplicationResponse>(request, options);
}
/// <summary>
/// Creates an application with the given name and description.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
public virtual Task<CreateApplicationResponse> CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance;
return InvokeAsync<CreateApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateTags
/// <summary>
/// Creates one or more tags for configuration items. Tags are metadata that help you
/// categorize IT assets. This API accepts a list of multiple configuration items.
///
/// <important>
/// <para>
/// Do not store sensitive information (like personal data) in tags.
/// </para>
/// </important>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTags service method.</param>
///
/// <returns>The response from the CreateTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
public virtual CreateTagsResponse CreateTags(CreateTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTagsResponseUnmarshaller.Instance;
return Invoke<CreateTagsResponse>(request, options);
}
/// <summary>
/// Creates one or more tags for configuration items. Tags are metadata that help you
/// categorize IT assets. This API accepts a list of multiple configuration items.
///
/// <important>
/// <para>
/// Do not store sensitive information (like personal data) in tags.
/// </para>
/// </important>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
public virtual Task<CreateTagsResponse> CreateTagsAsync(CreateTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTagsResponseUnmarshaller.Instance;
return InvokeAsync<CreateTagsResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteApplications
/// <summary>
/// Deletes a list of applications and their associations with configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications service method.</param>
///
/// <returns>The response from the DeleteApplications service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
public virtual DeleteApplicationsResponse DeleteApplications(DeleteApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationsResponseUnmarshaller.Instance;
return Invoke<DeleteApplicationsResponse>(request, options);
}
/// <summary>
/// Deletes a list of applications and their associations with configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApplications service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
public virtual Task<DeleteApplicationsResponse> DeleteApplicationsAsync(DeleteApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationsResponseUnmarshaller.Instance;
return InvokeAsync<DeleteApplicationsResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteTags
/// <summary>
/// Deletes the association between configuration items and one or more tags. This API
/// accepts a list of multiple configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param>
///
/// <returns>The response from the DeleteTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
public virtual DeleteTagsResponse DeleteTags(DeleteTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance;
return Invoke<DeleteTagsResponse>(request, options);
}
/// <summary>
/// Deletes the association between configuration items and one or more tags. This API
/// accepts a list of multiple configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
public virtual Task<DeleteTagsResponse> DeleteTagsAsync(DeleteTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance;
return InvokeAsync<DeleteTagsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeAgents
/// <summary>
/// Lists agents or collectors as specified by ID or other filters. All agents/collectors
/// associated with your user can be listed if you call <code>DescribeAgents</code> as
/// is without passing any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents service method.</param>
///
/// <returns>The response from the DescribeAgents service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
public virtual DescribeAgentsResponse DescribeAgents(DescribeAgentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAgentsResponseUnmarshaller.Instance;
return Invoke<DescribeAgentsResponse>(request, options);
}
/// <summary>
/// Lists agents or collectors as specified by ID or other filters. All agents/collectors
/// associated with your user can be listed if you call <code>DescribeAgents</code> as
/// is without passing any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeAgents service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
public virtual Task<DescribeAgentsResponse> DescribeAgentsAsync(DescribeAgentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAgentsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAgentsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeConfigurations
/// <summary>
/// Retrieves attributes for a list of configuration item IDs.
///
/// <note>
/// <para>
/// All of the supplied IDs must be for the same asset type from one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// server
/// </para>
/// </li> <li>
/// <para>
/// application
/// </para>
/// </li> <li>
/// <para>
/// process
/// </para>
/// </li> <li>
/// <para>
/// connection
/// </para>
/// </li> </ul>
/// <para>
/// Output fields are specific to the asset type specified. For example, the output for
/// a <i>server</i> configuration item includes a list of attributes about the server,
/// such as host name, operating system, number of network cards, etc.
/// </para>
///
/// <para>
/// For a complete list of outputs for each asset type, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations">Using
/// the DescribeConfigurations Action</a> in the <i>Amazon Web Services Application Discovery
/// Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations service method.</param>
///
/// <returns>The response from the DescribeConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
public virtual DescribeConfigurationsResponse DescribeConfigurations(DescribeConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConfigurationsResponseUnmarshaller.Instance;
return Invoke<DescribeConfigurationsResponse>(request, options);
}
/// <summary>
/// Retrieves attributes for a list of configuration item IDs.
///
/// <note>
/// <para>
/// All of the supplied IDs must be for the same asset type from one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// server
/// </para>
/// </li> <li>
/// <para>
/// application
/// </para>
/// </li> <li>
/// <para>
/// process
/// </para>
/// </li> <li>
/// <para>
/// connection
/// </para>
/// </li> </ul>
/// <para>
/// Output fields are specific to the asset type specified. For example, the output for
/// a <i>server</i> configuration item includes a list of attributes about the server,
/// such as host name, operating system, number of network cards, etc.
/// </para>
///
/// <para>
/// For a complete list of outputs for each asset type, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations">Using
/// the DescribeConfigurations Action</a> in the <i>Amazon Web Services Application Discovery
/// Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
public virtual Task<DescribeConfigurationsResponse> DescribeConfigurationsAsync(DescribeConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeContinuousExports
/// <summary>
/// Lists exports as specified by ID. All continuous exports associated with your user
/// can be listed if you call <code>DescribeContinuousExports</code> as is without passing
/// any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports service method.</param>
///
/// <returns>The response from the DescribeContinuousExports service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
public virtual DescribeContinuousExportsResponse DescribeContinuousExports(DescribeContinuousExportsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeContinuousExportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeContinuousExportsResponseUnmarshaller.Instance;
return Invoke<DescribeContinuousExportsResponse>(request, options);
}
/// <summary>
/// Lists exports as specified by ID. All continuous exports associated with your user
/// can be listed if you call <code>DescribeContinuousExports</code> as is without passing
/// any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeContinuousExports service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
public virtual Task<DescribeContinuousExportsResponse> DescribeContinuousExportsAsync(DescribeContinuousExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeContinuousExportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeContinuousExportsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeContinuousExportsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeExportConfigurations
/// <summary>
/// <code>DescribeExportConfigurations</code> is deprecated. Use <a href="https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a>,
/// instead.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations service method.</param>
///
/// <returns>The response from the DescribeExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
public virtual DescribeExportConfigurationsResponse DescribeExportConfigurations(DescribeExportConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportConfigurationsResponseUnmarshaller.Instance;
return Invoke<DescribeExportConfigurationsResponse>(request, options);
}
/// <summary>
/// <code>DescribeExportConfigurations</code> is deprecated. Use <a href="https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a>,
/// instead.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
public virtual Task<DescribeExportConfigurationsResponse> DescribeExportConfigurationsAsync(DescribeExportConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeExportConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeExportTasks
/// <summary>
/// Retrieve status of one or more export tasks. You can retrieve the status of up to
/// 100 export tasks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks service method.</param>
///
/// <returns>The response from the DescribeExportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
public virtual DescribeExportTasksResponse DescribeExportTasks(DescribeExportTasksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportTasksResponseUnmarshaller.Instance;
return Invoke<DescribeExportTasksResponse>(request, options);
}
/// <summary>
/// Retrieve status of one or more export tasks. You can retrieve the status of up to
/// 100 export tasks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeExportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
public virtual Task<DescribeExportTasksResponse> DescribeExportTasksAsync(DescribeExportTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportTasksResponseUnmarshaller.Instance;
return InvokeAsync<DescribeExportTasksResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeImportTasks
/// <summary>
/// Returns an array of import tasks for your account, including status information, times,
/// IDs, the Amazon S3 Object URL for the import file, and more.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks service method.</param>
///
/// <returns>The response from the DescribeImportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
public virtual DescribeImportTasksResponse DescribeImportTasks(DescribeImportTasksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeImportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeImportTasksResponseUnmarshaller.Instance;
return Invoke<DescribeImportTasksResponse>(request, options);
}
/// <summary>
/// Returns an array of import tasks for your account, including status information, times,
/// IDs, the Amazon S3 Object URL for the import file, and more.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeImportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
public virtual Task<DescribeImportTasksResponse> DescribeImportTasksAsync(DescribeImportTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeImportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeImportTasksResponseUnmarshaller.Instance;
return InvokeAsync<DescribeImportTasksResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTags
/// <summary>
/// Retrieves a list of configuration items that have tags as specified by the key-value
/// pairs, name and value, passed to the optional parameter <code>filters</code>.
///
///
/// <para>
/// There are three valid tag filter names:
/// </para>
/// <ul> <li>
/// <para>
/// tagKey
/// </para>
/// </li> <li>
/// <para>
/// tagValue
/// </para>
/// </li> <li>
/// <para>
/// configurationId
/// </para>
/// </li> </ul>
/// <para>
/// Also, all configuration items associated with your user that have tags can be listed
/// if you call <code>DescribeTags</code> as is without passing any parameters.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param>
///
/// <returns>The response from the DescribeTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
public virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;
return Invoke<DescribeTagsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of configuration items that have tags as specified by the key-value
/// pairs, name and value, passed to the optional parameter <code>filters</code>.
///
///
/// <para>
/// There are three valid tag filter names:
/// </para>
/// <ul> <li>
/// <para>
/// tagKey
/// </para>
/// </li> <li>
/// <para>
/// tagValue
/// </para>
/// </li> <li>
/// <para>
/// configurationId
/// </para>
/// </li> </ul>
/// <para>
/// Also, all configuration items associated with your user that have tags can be listed
/// if you call <code>DescribeTags</code> as is without passing any parameters.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
public virtual Task<DescribeTagsResponse> DescribeTagsAsync(DescribeTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTagsResponse>(request, options, cancellationToken);
}
#endregion
#region DisassociateConfigurationItemsFromApplication
/// <summary>
/// Disassociates one or more configuration items from an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication service method.</param>
///
/// <returns>The response from the DisassociateConfigurationItemsFromApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
public virtual DisassociateConfigurationItemsFromApplicationResponse DisassociateConfigurationItemsFromApplication(DisassociateConfigurationItemsFromApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateConfigurationItemsFromApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateConfigurationItemsFromApplicationResponseUnmarshaller.Instance;
return Invoke<DisassociateConfigurationItemsFromApplicationResponse>(request, options);
}
/// <summary>
/// Disassociates one or more configuration items from an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisassociateConfigurationItemsFromApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
public virtual Task<DisassociateConfigurationItemsFromApplicationResponse> DisassociateConfigurationItemsFromApplicationAsync(DisassociateConfigurationItemsFromApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateConfigurationItemsFromApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateConfigurationItemsFromApplicationResponseUnmarshaller.Instance;
return InvokeAsync<DisassociateConfigurationItemsFromApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region ExportConfigurations
/// <summary>
/// Deprecated. Use <code>StartExportTask</code> instead.
///
///
/// <para>
/// Exports all discovered configuration data to an Amazon S3 bucket or an application
/// that enables you to view and evaluate the data. Data includes tags and tag associations,
/// processes, connections, servers, and system performance. This API returns an export
/// ID that you can query using the <i>DescribeExportConfigurations</i> API. The system
/// imposes a limit of two configuration exports in six hours.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations service method.</param>
///
/// <returns>The response from the ExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
public virtual ExportConfigurationsResponse ExportConfigurations(ExportConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportConfigurationsResponseUnmarshaller.Instance;
return Invoke<ExportConfigurationsResponse>(request, options);
}
/// <summary>
/// Deprecated. Use <code>StartExportTask</code> instead.
///
///
/// <para>
/// Exports all discovered configuration data to an Amazon S3 bucket or an application
/// that enables you to view and evaluate the data. Data includes tags and tag associations,
/// processes, connections, servers, and system performance. This API returns an export
/// ID that you can query using the <i>DescribeExportConfigurations</i> API. The system
/// imposes a limit of two configuration exports in six hours.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
public virtual Task<ExportConfigurationsResponse> ExportConfigurationsAsync(ExportConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<ExportConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region GetDiscoverySummary
/// <summary>
/// Retrieves a short summary of discovered assets.
///
///
/// <para>
/// This API operation takes no request parameters and is called as is at the command
/// prompt as shown in the example.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary service method.</param>
///
/// <returns>The response from the GetDiscoverySummary service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
public virtual GetDiscoverySummaryResponse GetDiscoverySummary(GetDiscoverySummaryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDiscoverySummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDiscoverySummaryResponseUnmarshaller.Instance;
return Invoke<GetDiscoverySummaryResponse>(request, options);
}
/// <summary>
/// Retrieves a short summary of discovered assets.
///
///
/// <para>
/// This API operation takes no request parameters and is called as is at the command
/// prompt as shown in the example.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDiscoverySummary service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
public virtual Task<GetDiscoverySummaryResponse> GetDiscoverySummaryAsync(GetDiscoverySummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDiscoverySummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDiscoverySummaryResponseUnmarshaller.Instance;
return InvokeAsync<GetDiscoverySummaryResponse>(request, options, cancellationToken);
}
#endregion
#region ListConfigurations
/// <summary>
/// Retrieves a list of configuration items as specified by the value passed to the required
/// parameter <code>configurationType</code>. Optional filtering may be applied to refine
/// search results.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations service method.</param>
///
/// <returns>The response from the ListConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
public virtual ListConfigurationsResponse ListConfigurations(ListConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationsResponseUnmarshaller.Instance;
return Invoke<ListConfigurationsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of configuration items as specified by the value passed to the required
/// parameter <code>configurationType</code>. Optional filtering may be applied to refine
/// search results.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
public virtual Task<ListConfigurationsResponse> ListConfigurationsAsync(ListConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<ListConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListServerNeighbors
/// <summary>
/// Retrieves a list of servers that are one network hop away from a specified server.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors service method.</param>
///
/// <returns>The response from the ListServerNeighbors service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
public virtual ListServerNeighborsResponse ListServerNeighbors(ListServerNeighborsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServerNeighborsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServerNeighborsResponseUnmarshaller.Instance;
return Invoke<ListServerNeighborsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of servers that are one network hop away from a specified server.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListServerNeighbors service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
public virtual Task<ListServerNeighborsResponse> ListServerNeighborsAsync(ListServerNeighborsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServerNeighborsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServerNeighborsResponseUnmarshaller.Instance;
return InvokeAsync<ListServerNeighborsResponse>(request, options, cancellationToken);
}
#endregion
#region StartContinuousExport
/// <summary>
/// Start the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport service method.</param>
///
/// <returns>The response from the StartContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ConflictErrorException">
///
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
public virtual StartContinuousExportResponse StartContinuousExport(StartContinuousExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartContinuousExportResponseUnmarshaller.Instance;
return Invoke<StartContinuousExportResponse>(request, options);
}
/// <summary>
/// Start the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ConflictErrorException">
///
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
public virtual Task<StartContinuousExportResponse> StartContinuousExportAsync(StartContinuousExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartContinuousExportResponseUnmarshaller.Instance;
return InvokeAsync<StartContinuousExportResponse>(request, options, cancellationToken);
}
#endregion
#region StartDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to start collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds service method.</param>
///
/// <returns>The response from the StartDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
public virtual StartDataCollectionByAgentIdsResponse StartDataCollectionByAgentIds(StartDataCollectionByAgentIdsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return Invoke<StartDataCollectionByAgentIdsResponse>(request, options);
}
/// <summary>
/// Instructs the specified agents to start collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
public virtual Task<StartDataCollectionByAgentIdsResponse> StartDataCollectionByAgentIdsAsync(StartDataCollectionByAgentIdsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return InvokeAsync<StartDataCollectionByAgentIdsResponse>(request, options, cancellationToken);
}
#endregion
#region StartExportTask
/// <summary>
/// Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon
/// Web Services.
///
/// <note>
/// <para>
/// Exports might provide an estimate of fees and savings based on certain information
/// that you provide. Fee estimates do not include any taxes that might apply. Your actual
/// fees and savings depend on a variety of factors, including your actual usage of Amazon
/// Web Services services, which might vary from the estimates provided in this report.
/// </para>
/// </note>
/// <para>
/// If you do not specify <code>preferences</code> or <code>agentIds</code> in the filter,
/// a summary of all servers, applications, tags, and performance is generated. This data
/// is an aggregation of all server data collected through on-premises tooling, file import,
/// application grouping and applying tags.
/// </para>
///
/// <para>
/// If you specify <code>agentIds</code> in a filter, the task exports up to 72 hours
/// of detailed data collected by the identified Application Discovery Agent, including
/// network, process, and performance details. A time range for exported agent data may
/// be set by using <code>startTime</code> and <code>endTime</code>. Export of detailed
/// agent data is limited to five concurrently running exports. Export of detailed agent
/// data is limited to two exports per day.
/// </para>
///
/// <para>
/// If you enable <code>ec2RecommendationsPreferences</code> in <code>preferences</code>
/// , an Amazon EC2 instance matching the characteristics of each server in Application
/// Discovery Service is generated. Changing the attributes of the <code>ec2RecommendationsPreferences</code>
/// changes the criteria of the recommendation.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartExportTask service method.</param>
///
/// <returns>The response from the StartExportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
public virtual StartExportTaskResponse StartExportTask(StartExportTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExportTaskResponseUnmarshaller.Instance;
return Invoke<StartExportTaskResponse>(request, options);
}
/// <summary>
/// Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon
/// Web Services.
///
/// <note>
/// <para>
/// Exports might provide an estimate of fees and savings based on certain information
/// that you provide. Fee estimates do not include any taxes that might apply. Your actual
/// fees and savings depend on a variety of factors, including your actual usage of Amazon
/// Web Services services, which might vary from the estimates provided in this report.
/// </para>
/// </note>
/// <para>
/// If you do not specify <code>preferences</code> or <code>agentIds</code> in the filter,
/// a summary of all servers, applications, tags, and performance is generated. This data
/// is an aggregation of all server data collected through on-premises tooling, file import,
/// application grouping and applying tags.
/// </para>
///
/// <para>
/// If you specify <code>agentIds</code> in a filter, the task exports up to 72 hours
/// of detailed data collected by the identified Application Discovery Agent, including
/// network, process, and performance details. A time range for exported agent data may
/// be set by using <code>startTime</code> and <code>endTime</code>. Export of detailed
/// agent data is limited to five concurrently running exports. Export of detailed agent
/// data is limited to two exports per day.
/// </para>
///
/// <para>
/// If you enable <code>ec2RecommendationsPreferences</code> in <code>preferences</code>
/// , an Amazon EC2 instance matching the characteristics of each server in Application
/// Discovery Service is generated. Changing the attributes of the <code>ec2RecommendationsPreferences</code>
/// changes the criteria of the recommendation.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartExportTask service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartExportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
public virtual Task<StartExportTaskResponse> StartExportTaskAsync(StartExportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExportTaskResponseUnmarshaller.Instance;
return InvokeAsync<StartExportTaskResponse>(request, options, cancellationToken);
}
#endregion
#region StartImportTask
/// <summary>
/// Starts an import task, which allows you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub without having to use the Amazon Web
/// Services Application Discovery Service (Application Discovery Service) tools such
/// as the Amazon Web Services Application Discovery Service Agentless Collector or Application
/// Discovery Agent. This gives you the option to perform migration assessment and planning
/// directly from your imported data, including the ability to group your devices as applications
/// and track their migration status.
///
///
/// <para>
/// To start an import request, do this:
/// </para>
/// <ol> <li>
/// <para>
/// Download the specially formatted comma separated value (CSV) import template, which
/// you can find here: <a href="https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv">https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv</a>.
/// </para>
/// </li> <li>
/// <para>
/// Fill out the template with your server and application data.
/// </para>
/// </li> <li>
/// <para>
/// Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL.
/// Your import file must be in the CSV format.
/// </para>
/// </li> <li>
/// <para>
/// Use the console or the <code>StartImportTask</code> command with the Amazon Web Services
/// CLI or one of the Amazon Web Services SDKs to import the records from your file.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, including step-by-step procedures, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html">Migration
/// Hub Import</a> in the <i>Amazon Web Services Application Discovery Service User Guide</i>.
/// </para>
/// <note>
/// <para>
/// There are limits to the number of import tasks you can create (and delete) in an Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html">Amazon
/// Web Services Application Discovery Service Limits</a> in the <i>Amazon Web Services
/// Application Discovery Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartImportTask service method.</param>
///
/// <returns>The response from the StartImportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
public virtual StartImportTaskResponse StartImportTask(StartImportTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportTaskResponseUnmarshaller.Instance;
return Invoke<StartImportTaskResponse>(request, options);
}
/// <summary>
/// Starts an import task, which allows you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub without having to use the Amazon Web
/// Services Application Discovery Service (Application Discovery Service) tools such
/// as the Amazon Web Services Application Discovery Service Agentless Collector or Application
/// Discovery Agent. This gives you the option to perform migration assessment and planning
/// directly from your imported data, including the ability to group your devices as applications
/// and track their migration status.
///
///
/// <para>
/// To start an import request, do this:
/// </para>
/// <ol> <li>
/// <para>
/// Download the specially formatted comma separated value (CSV) import template, which
/// you can find here: <a href="https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv">https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv</a>.
/// </para>
/// </li> <li>
/// <para>
/// Fill out the template with your server and application data.
/// </para>
/// </li> <li>
/// <para>
/// Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL.
/// Your import file must be in the CSV format.
/// </para>
/// </li> <li>
/// <para>
/// Use the console or the <code>StartImportTask</code> command with the Amazon Web Services
/// CLI or one of the Amazon Web Services SDKs to import the records from your file.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, including step-by-step procedures, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html">Migration
/// Hub Import</a> in the <i>Amazon Web Services Application Discovery Service User Guide</i>.
/// </para>
/// <note>
/// <para>
/// There are limits to the number of import tasks you can create (and delete) in an Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html">Amazon
/// Web Services Application Discovery Service Limits</a> in the <i>Amazon Web Services
/// Application Discovery Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartImportTask service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartImportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
public virtual Task<StartImportTaskResponse> StartImportTaskAsync(StartImportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportTaskResponseUnmarshaller.Instance;
return InvokeAsync<StartImportTaskResponse>(request, options, cancellationToken);
}
#endregion
#region StopContinuousExport
/// <summary>
/// Stop the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport service method.</param>
///
/// <returns>The response from the StopContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
public virtual StopContinuousExportResponse StopContinuousExport(StopContinuousExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopContinuousExportResponseUnmarshaller.Instance;
return Invoke<StopContinuousExportResponse>(request, options);
}
/// <summary>
/// Stop the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
public virtual Task<StopContinuousExportResponse> StopContinuousExportAsync(StopContinuousExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopContinuousExportResponseUnmarshaller.Instance;
return InvokeAsync<StopContinuousExportResponse>(request, options, cancellationToken);
}
#endregion
#region StopDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to stop collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds service method.</param>
///
/// <returns>The response from the StopDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
public virtual StopDataCollectionByAgentIdsResponse StopDataCollectionByAgentIds(StopDataCollectionByAgentIdsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return Invoke<StopDataCollectionByAgentIdsResponse>(request, options);
}
/// <summary>
/// Instructs the specified agents to stop collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
public virtual Task<StopDataCollectionByAgentIdsResponse> StopDataCollectionByAgentIdsAsync(StopDataCollectionByAgentIdsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return InvokeAsync<StopDataCollectionByAgentIdsResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateApplication
/// <summary>
/// Updates metadata about an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication service method.</param>
///
/// <returns>The response from the UpdateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
public virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;
return Invoke<UpdateApplicationResponse>(request, options);
}
/// <summary>
/// Updates metadata about an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
public virtual Task<UpdateApplicationResponse> UpdateApplicationAsync(UpdateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateApplicationResponse>(request, options, cancellationToken);
}
#endregion
}
} | 2,745 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApplicationDiscoveryService.Model;
namespace Amazon.ApplicationDiscoveryService
{
/// <summary>
/// Interface for accessing ApplicationDiscoveryService
///
/// Amazon Web Services Application Discovery Service
/// <para>
/// Amazon Web Services Application Discovery Service (Application Discovery Service)
/// helps you plan application migration projects. It automatically identifies servers,
/// virtual machines (VMs), and network dependencies in your on-premises data centers.
/// For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon
/// Web Services Application Discovery Service FAQ</a>.
/// </para>
///
/// <para>
/// Application Discovery Service offers three ways of performing discovery and collecting
/// data about your on-premises servers:
/// </para>
/// <ul> <li>
/// <para>
/// <b>Agentless discovery</b> using Amazon Web Services Application Discovery Service
/// Agentless Collector (Agentless Collector), which doesn't require you to install an
/// agent on each host.
/// </para>
/// <ul> <li>
/// <para>
/// Agentless Collector gathers server information regardless of the operating systems,
/// which minimizes the time required for initial on-premises infrastructure assessment.
/// </para>
/// </li> <li>
/// <para>
/// Agentless Collector doesn't collect information about network dependencies, only agent-based
/// discovery collects that information.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Agent-based discovery</b> using the Amazon Web Services Application Discovery
/// Agent (Application Discovery Agent) collects a richer set of data than agentless discovery,
/// which you install on one or more hosts in your data center.
/// </para>
/// <ul> <li>
/// <para>
/// The agent captures infrastructure and application information, including an inventory
/// of running processes, system performance information, resource utilization, and network
/// dependencies.
/// </para>
/// </li> <li>
/// <para>
/// The information collected by agents is secured at rest and in transit to the Application
/// Discovery Service database in the Amazon Web Services cloud. For more information,
/// see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-agent.html">Amazon
/// Web Services Application Discovery Agent</a>.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Amazon Web Services Partner Network (APN) solutions</b> integrate with Application
/// Discovery Service, enabling you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub (Migration Hub) without using Agentless
/// Collector or Application Discovery Agent.
/// </para>
/// <ul> <li>
/// <para>
/// Third-party application discovery tools can query Amazon Web Services Application
/// Discovery Service, and they can write to the Application Discovery Service database
/// using the public API.
/// </para>
/// </li> <li>
/// <para>
/// In this way, you can import data into Migration Hub and view it, so that you can associate
/// applications with servers and track migrations.
/// </para>
/// </li> </ul> </li> </ul>
/// <para>
/// <b>Working With This Guide</b>
/// </para>
///
/// <para>
/// This API reference provides descriptions, syntax, and usage examples for each of the
/// actions and data types for Application Discovery Service. The topic for each action
/// shows the API request parameters and the response. Alternatively, you can use one
/// of the Amazon Web Services SDKs to access an API that is tailored to the programming
/// language or platform that you're using. For more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon
/// Web Services SDKs</a>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// Remember that you must set your Migration Hub home Region before you call any of these
/// APIs.
/// </para>
/// </li> <li>
/// <para>
/// You must make API calls for write actions (create, notify, associate, disassociate,
/// import, or put) while in your home Region, or a <code>HomeRegionNotSetException</code>
/// error is returned.
/// </para>
/// </li> <li>
/// <para>
/// API calls for read actions (list, describe, stop, and delete) are permitted outside
/// of your home Region.
/// </para>
/// </li> <li>
/// <para>
/// Although it is unlikely, the Migration Hub home Region could change. If you call APIs
/// outside the home Region, an <code>InvalidInputException</code> is returned.
/// </para>
/// </li> <li>
/// <para>
/// You must call <code>GetHomeRegion</code> to obtain the latest Migration Hub home Region.
/// </para>
/// </li> </ul> </note>
/// <para>
/// This guide is intended for use with the <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon
/// Web Services Application Discovery Service User Guide</a>.
/// </para>
/// <important>
/// <para>
/// All data is handled according to the <a href="https://aws.amazon.com/privacy/">Amazon
/// Web Services Privacy Policy</a>. You can operate Application Discovery Service offline
/// to inspect collected data before it is shared with the service.
/// </para>
/// </important>
/// </summary>
public partial interface IAmazonApplicationDiscoveryService : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationDiscoveryServicePaginatorFactory Paginators { get; }
#region AssociateConfigurationItemsToApplication
/// <summary>
/// Associates one or more configuration items with an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication service method.</param>
///
/// <returns>The response from the AssociateConfigurationItemsToApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
AssociateConfigurationItemsToApplicationResponse AssociateConfigurationItemsToApplication(AssociateConfigurationItemsToApplicationRequest request);
/// <summary>
/// Associates one or more configuration items with an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AssociateConfigurationItemsToApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
Task<AssociateConfigurationItemsToApplicationResponse> AssociateConfigurationItemsToApplicationAsync(AssociateConfigurationItemsToApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region BatchDeleteImportData
/// <summary>
/// Deletes one or more import tasks, each identified by their import ID. Each import
/// task has a number of records that can identify servers or applications.
///
///
/// <para>
/// Amazon Web Services Application Discovery Service has built-in matching logic that
/// will identify when discovered servers match existing entries that you've previously
/// discovered, the information for the already-existing discovered server is updated.
/// When you delete an import task that contains records that were used to match, the
/// information in those matched records that comes from the deleted records will also
/// be deleted.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData service method.</param>
///
/// <returns>The response from the BatchDeleteImportData service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
BatchDeleteImportDataResponse BatchDeleteImportData(BatchDeleteImportDataRequest request);
/// <summary>
/// Deletes one or more import tasks, each identified by their import ID. Each import
/// task has a number of records that can identify servers or applications.
///
///
/// <para>
/// Amazon Web Services Application Discovery Service has built-in matching logic that
/// will identify when discovered servers match existing entries that you've previously
/// discovered, the information for the already-existing discovered server is updated.
/// When you delete an import task that contains records that were used to match, the
/// information in those matched records that comes from the deleted records will also
/// be deleted.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the BatchDeleteImportData service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
Task<BatchDeleteImportDataResponse> BatchDeleteImportDataAsync(BatchDeleteImportDataRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateApplication
/// <summary>
/// Creates an application with the given name and description.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApplication service method.</param>
///
/// <returns>The response from the CreateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
CreateApplicationResponse CreateApplication(CreateApplicationRequest request);
/// <summary>
/// Creates an application with the given name and description.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
Task<CreateApplicationResponse> CreateApplicationAsync(CreateApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateTags
/// <summary>
/// Creates one or more tags for configuration items. Tags are metadata that help you
/// categorize IT assets. This API accepts a list of multiple configuration items.
///
/// <important>
/// <para>
/// Do not store sensitive information (like personal data) in tags.
/// </para>
/// </important>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTags service method.</param>
///
/// <returns>The response from the CreateTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
CreateTagsResponse CreateTags(CreateTagsRequest request);
/// <summary>
/// Creates one or more tags for configuration items. Tags are metadata that help you
/// categorize IT assets. This API accepts a list of multiple configuration items.
///
/// <important>
/// <para>
/// Do not store sensitive information (like personal data) in tags.
/// </para>
/// </important>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
Task<CreateTagsResponse> CreateTagsAsync(CreateTagsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteApplications
/// <summary>
/// Deletes a list of applications and their associations with configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications service method.</param>
///
/// <returns>The response from the DeleteApplications service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
DeleteApplicationsResponse DeleteApplications(DeleteApplicationsRequest request);
/// <summary>
/// Deletes a list of applications and their associations with configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApplications service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
Task<DeleteApplicationsResponse> DeleteApplicationsAsync(DeleteApplicationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteTags
/// <summary>
/// Deletes the association between configuration items and one or more tags. This API
/// accepts a list of multiple configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param>
///
/// <returns>The response from the DeleteTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
DeleteTagsResponse DeleteTags(DeleteTagsRequest request);
/// <summary>
/// Deletes the association between configuration items and one or more tags. This API
/// accepts a list of multiple configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
Task<DeleteTagsResponse> DeleteTagsAsync(DeleteTagsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeAgents
/// <summary>
/// Lists agents or collectors as specified by ID or other filters. All agents/collectors
/// associated with your user can be listed if you call <code>DescribeAgents</code> as
/// is without passing any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents service method.</param>
///
/// <returns>The response from the DescribeAgents service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
DescribeAgentsResponse DescribeAgents(DescribeAgentsRequest request);
/// <summary>
/// Lists agents or collectors as specified by ID or other filters. All agents/collectors
/// associated with your user can be listed if you call <code>DescribeAgents</code> as
/// is without passing any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeAgents service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
Task<DescribeAgentsResponse> DescribeAgentsAsync(DescribeAgentsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeConfigurations
/// <summary>
/// Retrieves attributes for a list of configuration item IDs.
///
/// <note>
/// <para>
/// All of the supplied IDs must be for the same asset type from one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// server
/// </para>
/// </li> <li>
/// <para>
/// application
/// </para>
/// </li> <li>
/// <para>
/// process
/// </para>
/// </li> <li>
/// <para>
/// connection
/// </para>
/// </li> </ul>
/// <para>
/// Output fields are specific to the asset type specified. For example, the output for
/// a <i>server</i> configuration item includes a list of attributes about the server,
/// such as host name, operating system, number of network cards, etc.
/// </para>
///
/// <para>
/// For a complete list of outputs for each asset type, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations">Using
/// the DescribeConfigurations Action</a> in the <i>Amazon Web Services Application Discovery
/// Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations service method.</param>
///
/// <returns>The response from the DescribeConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
DescribeConfigurationsResponse DescribeConfigurations(DescribeConfigurationsRequest request);
/// <summary>
/// Retrieves attributes for a list of configuration item IDs.
///
/// <note>
/// <para>
/// All of the supplied IDs must be for the same asset type from one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// server
/// </para>
/// </li> <li>
/// <para>
/// application
/// </para>
/// </li> <li>
/// <para>
/// process
/// </para>
/// </li> <li>
/// <para>
/// connection
/// </para>
/// </li> </ul>
/// <para>
/// Output fields are specific to the asset type specified. For example, the output for
/// a <i>server</i> configuration item includes a list of attributes about the server,
/// such as host name, operating system, number of network cards, etc.
/// </para>
///
/// <para>
/// For a complete list of outputs for each asset type, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations">Using
/// the DescribeConfigurations Action</a> in the <i>Amazon Web Services Application Discovery
/// Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
Task<DescribeConfigurationsResponse> DescribeConfigurationsAsync(DescribeConfigurationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeContinuousExports
/// <summary>
/// Lists exports as specified by ID. All continuous exports associated with your user
/// can be listed if you call <code>DescribeContinuousExports</code> as is without passing
/// any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports service method.</param>
///
/// <returns>The response from the DescribeContinuousExports service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
DescribeContinuousExportsResponse DescribeContinuousExports(DescribeContinuousExportsRequest request);
/// <summary>
/// Lists exports as specified by ID. All continuous exports associated with your user
/// can be listed if you call <code>DescribeContinuousExports</code> as is without passing
/// any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeContinuousExports service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
Task<DescribeContinuousExportsResponse> DescribeContinuousExportsAsync(DescribeContinuousExportsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeExportConfigurations
/// <summary>
/// <code>DescribeExportConfigurations</code> is deprecated. Use <a href="https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a>,
/// instead.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations service method.</param>
///
/// <returns>The response from the DescribeExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
DescribeExportConfigurationsResponse DescribeExportConfigurations(DescribeExportConfigurationsRequest request);
/// <summary>
/// <code>DescribeExportConfigurations</code> is deprecated. Use <a href="https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a>,
/// instead.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
Task<DescribeExportConfigurationsResponse> DescribeExportConfigurationsAsync(DescribeExportConfigurationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeExportTasks
/// <summary>
/// Retrieve status of one or more export tasks. You can retrieve the status of up to
/// 100 export tasks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks service method.</param>
///
/// <returns>The response from the DescribeExportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
DescribeExportTasksResponse DescribeExportTasks(DescribeExportTasksRequest request);
/// <summary>
/// Retrieve status of one or more export tasks. You can retrieve the status of up to
/// 100 export tasks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeExportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
Task<DescribeExportTasksResponse> DescribeExportTasksAsync(DescribeExportTasksRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeImportTasks
/// <summary>
/// Returns an array of import tasks for your account, including status information, times,
/// IDs, the Amazon S3 Object URL for the import file, and more.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks service method.</param>
///
/// <returns>The response from the DescribeImportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
DescribeImportTasksResponse DescribeImportTasks(DescribeImportTasksRequest request);
/// <summary>
/// Returns an array of import tasks for your account, including status information, times,
/// IDs, the Amazon S3 Object URL for the import file, and more.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeImportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
Task<DescribeImportTasksResponse> DescribeImportTasksAsync(DescribeImportTasksRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTags
/// <summary>
/// Retrieves a list of configuration items that have tags as specified by the key-value
/// pairs, name and value, passed to the optional parameter <code>filters</code>.
///
///
/// <para>
/// There are three valid tag filter names:
/// </para>
/// <ul> <li>
/// <para>
/// tagKey
/// </para>
/// </li> <li>
/// <para>
/// tagValue
/// </para>
/// </li> <li>
/// <para>
/// configurationId
/// </para>
/// </li> </ul>
/// <para>
/// Also, all configuration items associated with your user that have tags can be listed
/// if you call <code>DescribeTags</code> as is without passing any parameters.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param>
///
/// <returns>The response from the DescribeTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
DescribeTagsResponse DescribeTags(DescribeTagsRequest request);
/// <summary>
/// Retrieves a list of configuration items that have tags as specified by the key-value
/// pairs, name and value, passed to the optional parameter <code>filters</code>.
///
///
/// <para>
/// There are three valid tag filter names:
/// </para>
/// <ul> <li>
/// <para>
/// tagKey
/// </para>
/// </li> <li>
/// <para>
/// tagValue
/// </para>
/// </li> <li>
/// <para>
/// configurationId
/// </para>
/// </li> </ul>
/// <para>
/// Also, all configuration items associated with your user that have tags can be listed
/// if you call <code>DescribeTags</code> as is without passing any parameters.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
Task<DescribeTagsResponse> DescribeTagsAsync(DescribeTagsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DisassociateConfigurationItemsFromApplication
/// <summary>
/// Disassociates one or more configuration items from an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication service method.</param>
///
/// <returns>The response from the DisassociateConfigurationItemsFromApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
DisassociateConfigurationItemsFromApplicationResponse DisassociateConfigurationItemsFromApplication(DisassociateConfigurationItemsFromApplicationRequest request);
/// <summary>
/// Disassociates one or more configuration items from an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisassociateConfigurationItemsFromApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
Task<DisassociateConfigurationItemsFromApplicationResponse> DisassociateConfigurationItemsFromApplicationAsync(DisassociateConfigurationItemsFromApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExportConfigurations
/// <summary>
/// Deprecated. Use <code>StartExportTask</code> instead.
///
///
/// <para>
/// Exports all discovered configuration data to an Amazon S3 bucket or an application
/// that enables you to view and evaluate the data. Data includes tags and tag associations,
/// processes, connections, servers, and system performance. This API returns an export
/// ID that you can query using the <i>DescribeExportConfigurations</i> API. The system
/// imposes a limit of two configuration exports in six hours.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations service method.</param>
///
/// <returns>The response from the ExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
ExportConfigurationsResponse ExportConfigurations(ExportConfigurationsRequest request);
/// <summary>
/// Deprecated. Use <code>StartExportTask</code> instead.
///
///
/// <para>
/// Exports all discovered configuration data to an Amazon S3 bucket or an application
/// that enables you to view and evaluate the data. Data includes tags and tag associations,
/// processes, connections, servers, and system performance. This API returns an export
/// ID that you can query using the <i>DescribeExportConfigurations</i> API. The system
/// imposes a limit of two configuration exports in six hours.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
Task<ExportConfigurationsResponse> ExportConfigurationsAsync(ExportConfigurationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetDiscoverySummary
/// <summary>
/// Retrieves a short summary of discovered assets.
///
///
/// <para>
/// This API operation takes no request parameters and is called as is at the command
/// prompt as shown in the example.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary service method.</param>
///
/// <returns>The response from the GetDiscoverySummary service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
GetDiscoverySummaryResponse GetDiscoverySummary(GetDiscoverySummaryRequest request);
/// <summary>
/// Retrieves a short summary of discovered assets.
///
///
/// <para>
/// This API operation takes no request parameters and is called as is at the command
/// prompt as shown in the example.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDiscoverySummary service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
Task<GetDiscoverySummaryResponse> GetDiscoverySummaryAsync(GetDiscoverySummaryRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListConfigurations
/// <summary>
/// Retrieves a list of configuration items as specified by the value passed to the required
/// parameter <code>configurationType</code>. Optional filtering may be applied to refine
/// search results.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations service method.</param>
///
/// <returns>The response from the ListConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
ListConfigurationsResponse ListConfigurations(ListConfigurationsRequest request);
/// <summary>
/// Retrieves a list of configuration items as specified by the value passed to the required
/// parameter <code>configurationType</code>. Optional filtering may be applied to refine
/// search results.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
Task<ListConfigurationsResponse> ListConfigurationsAsync(ListConfigurationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListServerNeighbors
/// <summary>
/// Retrieves a list of servers that are one network hop away from a specified server.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors service method.</param>
///
/// <returns>The response from the ListServerNeighbors service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
ListServerNeighborsResponse ListServerNeighbors(ListServerNeighborsRequest request);
/// <summary>
/// Retrieves a list of servers that are one network hop away from a specified server.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListServerNeighbors service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
Task<ListServerNeighborsResponse> ListServerNeighborsAsync(ListServerNeighborsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartContinuousExport
/// <summary>
/// Start the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport service method.</param>
///
/// <returns>The response from the StartContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ConflictErrorException">
///
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
StartContinuousExportResponse StartContinuousExport(StartContinuousExportRequest request);
/// <summary>
/// Start the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ConflictErrorException">
///
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
Task<StartContinuousExportResponse> StartContinuousExportAsync(StartContinuousExportRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to start collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds service method.</param>
///
/// <returns>The response from the StartDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
StartDataCollectionByAgentIdsResponse StartDataCollectionByAgentIds(StartDataCollectionByAgentIdsRequest request);
/// <summary>
/// Instructs the specified agents to start collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
Task<StartDataCollectionByAgentIdsResponse> StartDataCollectionByAgentIdsAsync(StartDataCollectionByAgentIdsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartExportTask
/// <summary>
/// Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon
/// Web Services.
///
/// <note>
/// <para>
/// Exports might provide an estimate of fees and savings based on certain information
/// that you provide. Fee estimates do not include any taxes that might apply. Your actual
/// fees and savings depend on a variety of factors, including your actual usage of Amazon
/// Web Services services, which might vary from the estimates provided in this report.
/// </para>
/// </note>
/// <para>
/// If you do not specify <code>preferences</code> or <code>agentIds</code> in the filter,
/// a summary of all servers, applications, tags, and performance is generated. This data
/// is an aggregation of all server data collected through on-premises tooling, file import,
/// application grouping and applying tags.
/// </para>
///
/// <para>
/// If you specify <code>agentIds</code> in a filter, the task exports up to 72 hours
/// of detailed data collected by the identified Application Discovery Agent, including
/// network, process, and performance details. A time range for exported agent data may
/// be set by using <code>startTime</code> and <code>endTime</code>. Export of detailed
/// agent data is limited to five concurrently running exports. Export of detailed agent
/// data is limited to two exports per day.
/// </para>
///
/// <para>
/// If you enable <code>ec2RecommendationsPreferences</code> in <code>preferences</code>
/// , an Amazon EC2 instance matching the characteristics of each server in Application
/// Discovery Service is generated. Changing the attributes of the <code>ec2RecommendationsPreferences</code>
/// changes the criteria of the recommendation.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartExportTask service method.</param>
///
/// <returns>The response from the StartExportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
StartExportTaskResponse StartExportTask(StartExportTaskRequest request);
/// <summary>
/// Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon
/// Web Services.
///
/// <note>
/// <para>
/// Exports might provide an estimate of fees and savings based on certain information
/// that you provide. Fee estimates do not include any taxes that might apply. Your actual
/// fees and savings depend on a variety of factors, including your actual usage of Amazon
/// Web Services services, which might vary from the estimates provided in this report.
/// </para>
/// </note>
/// <para>
/// If you do not specify <code>preferences</code> or <code>agentIds</code> in the filter,
/// a summary of all servers, applications, tags, and performance is generated. This data
/// is an aggregation of all server data collected through on-premises tooling, file import,
/// application grouping and applying tags.
/// </para>
///
/// <para>
/// If you specify <code>agentIds</code> in a filter, the task exports up to 72 hours
/// of detailed data collected by the identified Application Discovery Agent, including
/// network, process, and performance details. A time range for exported agent data may
/// be set by using <code>startTime</code> and <code>endTime</code>. Export of detailed
/// agent data is limited to five concurrently running exports. Export of detailed agent
/// data is limited to two exports per day.
/// </para>
///
/// <para>
/// If you enable <code>ec2RecommendationsPreferences</code> in <code>preferences</code>
/// , an Amazon EC2 instance matching the characteristics of each server in Application
/// Discovery Service is generated. Changing the attributes of the <code>ec2RecommendationsPreferences</code>
/// changes the criteria of the recommendation.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartExportTask service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartExportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
Task<StartExportTaskResponse> StartExportTaskAsync(StartExportTaskRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartImportTask
/// <summary>
/// Starts an import task, which allows you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub without having to use the Amazon Web
/// Services Application Discovery Service (Application Discovery Service) tools such
/// as the Amazon Web Services Application Discovery Service Agentless Collector or Application
/// Discovery Agent. This gives you the option to perform migration assessment and planning
/// directly from your imported data, including the ability to group your devices as applications
/// and track their migration status.
///
///
/// <para>
/// To start an import request, do this:
/// </para>
/// <ol> <li>
/// <para>
/// Download the specially formatted comma separated value (CSV) import template, which
/// you can find here: <a href="https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv">https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv</a>.
/// </para>
/// </li> <li>
/// <para>
/// Fill out the template with your server and application data.
/// </para>
/// </li> <li>
/// <para>
/// Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL.
/// Your import file must be in the CSV format.
/// </para>
/// </li> <li>
/// <para>
/// Use the console or the <code>StartImportTask</code> command with the Amazon Web Services
/// CLI or one of the Amazon Web Services SDKs to import the records from your file.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, including step-by-step procedures, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html">Migration
/// Hub Import</a> in the <i>Amazon Web Services Application Discovery Service User Guide</i>.
/// </para>
/// <note>
/// <para>
/// There are limits to the number of import tasks you can create (and delete) in an Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html">Amazon
/// Web Services Application Discovery Service Limits</a> in the <i>Amazon Web Services
/// Application Discovery Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartImportTask service method.</param>
///
/// <returns>The response from the StartImportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
StartImportTaskResponse StartImportTask(StartImportTaskRequest request);
/// <summary>
/// Starts an import task, which allows you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub without having to use the Amazon Web
/// Services Application Discovery Service (Application Discovery Service) tools such
/// as the Amazon Web Services Application Discovery Service Agentless Collector or Application
/// Discovery Agent. This gives you the option to perform migration assessment and planning
/// directly from your imported data, including the ability to group your devices as applications
/// and track their migration status.
///
///
/// <para>
/// To start an import request, do this:
/// </para>
/// <ol> <li>
/// <para>
/// Download the specially formatted comma separated value (CSV) import template, which
/// you can find here: <a href="https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv">https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv</a>.
/// </para>
/// </li> <li>
/// <para>
/// Fill out the template with your server and application data.
/// </para>
/// </li> <li>
/// <para>
/// Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL.
/// Your import file must be in the CSV format.
/// </para>
/// </li> <li>
/// <para>
/// Use the console or the <code>StartImportTask</code> command with the Amazon Web Services
/// CLI or one of the Amazon Web Services SDKs to import the records from your file.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, including step-by-step procedures, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html">Migration
/// Hub Import</a> in the <i>Amazon Web Services Application Discovery Service User Guide</i>.
/// </para>
/// <note>
/// <para>
/// There are limits to the number of import tasks you can create (and delete) in an Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html">Amazon
/// Web Services Application Discovery Service Limits</a> in the <i>Amazon Web Services
/// Application Discovery Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartImportTask service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartImportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
Task<StartImportTaskResponse> StartImportTaskAsync(StartImportTaskRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StopContinuousExport
/// <summary>
/// Stop the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport service method.</param>
///
/// <returns>The response from the StopContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
StopContinuousExportResponse StopContinuousExport(StopContinuousExportRequest request);
/// <summary>
/// Stop the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
Task<StopContinuousExportResponse> StopContinuousExportAsync(StopContinuousExportRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StopDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to stop collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds service method.</param>
///
/// <returns>The response from the StopDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
StopDataCollectionByAgentIdsResponse StopDataCollectionByAgentIds(StopDataCollectionByAgentIdsRequest request);
/// <summary>
/// Instructs the specified agents to stop collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
Task<StopDataCollectionByAgentIdsResponse> StopDataCollectionByAgentIdsAsync(StopDataCollectionByAgentIdsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateApplication
/// <summary>
/// Updates metadata about an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication service method.</param>
///
/// <returns>The response from the UpdateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request);
/// <summary>
/// Updates metadata about an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
Task<UpdateApplicationResponse> UpdateApplicationAsync(UpdateApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 2,199 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-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.ApplicationDiscoveryService.Model;
using Amazon.ApplicationDiscoveryService.Model.Internal.MarshallTransformations;
using Amazon.ApplicationDiscoveryService.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationDiscoveryService
{
/// <summary>
/// Implementation for accessing ApplicationDiscoveryService
///
/// Amazon Web Services Application Discovery Service
/// <para>
/// Amazon Web Services Application Discovery Service (Application Discovery Service)
/// helps you plan application migration projects. It automatically identifies servers,
/// virtual machines (VMs), and network dependencies in your on-premises data centers.
/// For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon
/// Web Services Application Discovery Service FAQ</a>.
/// </para>
///
/// <para>
/// Application Discovery Service offers three ways of performing discovery and collecting
/// data about your on-premises servers:
/// </para>
/// <ul> <li>
/// <para>
/// <b>Agentless discovery</b> using Amazon Web Services Application Discovery Service
/// Agentless Collector (Agentless Collector), which doesn't require you to install an
/// agent on each host.
/// </para>
/// <ul> <li>
/// <para>
/// Agentless Collector gathers server information regardless of the operating systems,
/// which minimizes the time required for initial on-premises infrastructure assessment.
/// </para>
/// </li> <li>
/// <para>
/// Agentless Collector doesn't collect information about network dependencies, only agent-based
/// discovery collects that information.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Agent-based discovery</b> using the Amazon Web Services Application Discovery
/// Agent (Application Discovery Agent) collects a richer set of data than agentless discovery,
/// which you install on one or more hosts in your data center.
/// </para>
/// <ul> <li>
/// <para>
/// The agent captures infrastructure and application information, including an inventory
/// of running processes, system performance information, resource utilization, and network
/// dependencies.
/// </para>
/// </li> <li>
/// <para>
/// The information collected by agents is secured at rest and in transit to the Application
/// Discovery Service database in the Amazon Web Services cloud. For more information,
/// see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-agent.html">Amazon
/// Web Services Application Discovery Agent</a>.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Amazon Web Services Partner Network (APN) solutions</b> integrate with Application
/// Discovery Service, enabling you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub (Migration Hub) without using Agentless
/// Collector or Application Discovery Agent.
/// </para>
/// <ul> <li>
/// <para>
/// Third-party application discovery tools can query Amazon Web Services Application
/// Discovery Service, and they can write to the Application Discovery Service database
/// using the public API.
/// </para>
/// </li> <li>
/// <para>
/// In this way, you can import data into Migration Hub and view it, so that you can associate
/// applications with servers and track migrations.
/// </para>
/// </li> </ul> </li> </ul>
/// <para>
/// <b>Working With This Guide</b>
/// </para>
///
/// <para>
/// This API reference provides descriptions, syntax, and usage examples for each of the
/// actions and data types for Application Discovery Service. The topic for each action
/// shows the API request parameters and the response. Alternatively, you can use one
/// of the Amazon Web Services SDKs to access an API that is tailored to the programming
/// language or platform that you're using. For more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon
/// Web Services SDKs</a>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// Remember that you must set your Migration Hub home Region before you call any of these
/// APIs.
/// </para>
/// </li> <li>
/// <para>
/// You must make API calls for write actions (create, notify, associate, disassociate,
/// import, or put) while in your home Region, or a <code>HomeRegionNotSetException</code>
/// error is returned.
/// </para>
/// </li> <li>
/// <para>
/// API calls for read actions (list, describe, stop, and delete) are permitted outside
/// of your home Region.
/// </para>
/// </li> <li>
/// <para>
/// Although it is unlikely, the Migration Hub home Region could change. If you call APIs
/// outside the home Region, an <code>InvalidInputException</code> is returned.
/// </para>
/// </li> <li>
/// <para>
/// You must call <code>GetHomeRegion</code> to obtain the latest Migration Hub home Region.
/// </para>
/// </li> </ul> </note>
/// <para>
/// This guide is intended for use with the <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon
/// Web Services Application Discovery Service User Guide</a>.
/// </para>
/// <important>
/// <para>
/// All data is handled according to the <a href="https://aws.amazon.com/privacy/">Amazon
/// Web Services Privacy Policy</a>. You can operate Application Discovery Service offline
/// to inspect collected data before it is shared with the service.
/// </para>
/// </important>
/// </summary>
public partial class AmazonApplicationDiscoveryServiceClient : AmazonServiceClient, IAmazonApplicationDiscoveryService
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationDiscoveryServiceMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonApplicationDiscoveryServiceClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationDiscoveryServiceConfig()) { }
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonApplicationDiscoveryServiceClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationDiscoveryServiceConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(AmazonApplicationDiscoveryServiceConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationDiscoveryServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationDiscoveryServiceConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationDiscoveryServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationDiscoveryServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Credentials and an
/// AmazonApplicationDiscoveryServiceClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(AWSCredentials credentials, AmazonApplicationDiscoveryServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationDiscoveryServiceConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationDiscoveryServiceConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationDiscoveryServiceClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationDiscoveryServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationDiscoveryServiceConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationDiscoveryServiceConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationDiscoveryServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationDiscoveryServiceClient 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 AmazonApplicationDiscoveryServiceClient Configuration Object</param>
public AmazonApplicationDiscoveryServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationDiscoveryServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IApplicationDiscoveryServicePaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationDiscoveryServicePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationDiscoveryServicePaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customizes the runtime pipeline.
/// </summary>
/// <param name="pipeline">Runtime pipeline for the current client.</param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonApplicationDiscoveryServiceEndpointResolver());
}
/// <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 AssociateConfigurationItemsToApplication
internal virtual AssociateConfigurationItemsToApplicationResponse AssociateConfigurationItemsToApplication(AssociateConfigurationItemsToApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateConfigurationItemsToApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateConfigurationItemsToApplicationResponseUnmarshaller.Instance;
return Invoke<AssociateConfigurationItemsToApplicationResponse>(request, options);
}
/// <summary>
/// Associates one or more configuration items with an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AssociateConfigurationItemsToApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
public virtual Task<AssociateConfigurationItemsToApplicationResponse> AssociateConfigurationItemsToApplicationAsync(AssociateConfigurationItemsToApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateConfigurationItemsToApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateConfigurationItemsToApplicationResponseUnmarshaller.Instance;
return InvokeAsync<AssociateConfigurationItemsToApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region BatchDeleteImportData
internal virtual BatchDeleteImportDataResponse BatchDeleteImportData(BatchDeleteImportDataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteImportDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteImportDataResponseUnmarshaller.Instance;
return Invoke<BatchDeleteImportDataResponse>(request, options);
}
/// <summary>
/// Deletes one or more import tasks, each identified by their import ID. Each import
/// task has a number of records that can identify servers or applications.
///
///
/// <para>
/// Amazon Web Services Application Discovery Service has built-in matching logic that
/// will identify when discovered servers match existing entries that you've previously
/// discovered, the information for the already-existing discovered server is updated.
/// When you delete an import task that contains records that were used to match, the
/// information in those matched records that comes from the deleted records will also
/// be deleted.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the BatchDeleteImportData service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
public virtual Task<BatchDeleteImportDataResponse> BatchDeleteImportDataAsync(BatchDeleteImportDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteImportDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteImportDataResponseUnmarshaller.Instance;
return InvokeAsync<BatchDeleteImportDataResponse>(request, options, cancellationToken);
}
#endregion
#region CreateApplication
internal virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance;
return Invoke<CreateApplicationResponse>(request, options);
}
/// <summary>
/// Creates an application with the given name and description.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
public virtual Task<CreateApplicationResponse> CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance;
return InvokeAsync<CreateApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateTags
internal virtual CreateTagsResponse CreateTags(CreateTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTagsResponseUnmarshaller.Instance;
return Invoke<CreateTagsResponse>(request, options);
}
/// <summary>
/// Creates one or more tags for configuration items. Tags are metadata that help you
/// categorize IT assets. This API accepts a list of multiple configuration items.
///
/// <important>
/// <para>
/// Do not store sensitive information (like personal data) in tags.
/// </para>
/// </important>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
public virtual Task<CreateTagsResponse> CreateTagsAsync(CreateTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTagsResponseUnmarshaller.Instance;
return InvokeAsync<CreateTagsResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteApplications
internal virtual DeleteApplicationsResponse DeleteApplications(DeleteApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationsResponseUnmarshaller.Instance;
return Invoke<DeleteApplicationsResponse>(request, options);
}
/// <summary>
/// Deletes a list of applications and their associations with configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApplications service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
public virtual Task<DeleteApplicationsResponse> DeleteApplicationsAsync(DeleteApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationsResponseUnmarshaller.Instance;
return InvokeAsync<DeleteApplicationsResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteTags
internal virtual DeleteTagsResponse DeleteTags(DeleteTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance;
return Invoke<DeleteTagsResponse>(request, options);
}
/// <summary>
/// Deletes the association between configuration items and one or more tags. This API
/// accepts a list of multiple configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
public virtual Task<DeleteTagsResponse> DeleteTagsAsync(DeleteTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance;
return InvokeAsync<DeleteTagsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeAgents
internal virtual DescribeAgentsResponse DescribeAgents(DescribeAgentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAgentsResponseUnmarshaller.Instance;
return Invoke<DescribeAgentsResponse>(request, options);
}
/// <summary>
/// Lists agents or collectors as specified by ID or other filters. All agents/collectors
/// associated with your user can be listed if you call <code>DescribeAgents</code> as
/// is without passing any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeAgents service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
public virtual Task<DescribeAgentsResponse> DescribeAgentsAsync(DescribeAgentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAgentsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAgentsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeConfigurations
internal virtual DescribeConfigurationsResponse DescribeConfigurations(DescribeConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConfigurationsResponseUnmarshaller.Instance;
return Invoke<DescribeConfigurationsResponse>(request, options);
}
/// <summary>
/// Retrieves attributes for a list of configuration item IDs.
///
/// <note>
/// <para>
/// All of the supplied IDs must be for the same asset type from one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// server
/// </para>
/// </li> <li>
/// <para>
/// application
/// </para>
/// </li> <li>
/// <para>
/// process
/// </para>
/// </li> <li>
/// <para>
/// connection
/// </para>
/// </li> </ul>
/// <para>
/// Output fields are specific to the asset type specified. For example, the output for
/// a <i>server</i> configuration item includes a list of attributes about the server,
/// such as host name, operating system, number of network cards, etc.
/// </para>
///
/// <para>
/// For a complete list of outputs for each asset type, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations">Using
/// the DescribeConfigurations Action</a> in the <i>Amazon Web Services Application Discovery
/// Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
public virtual Task<DescribeConfigurationsResponse> DescribeConfigurationsAsync(DescribeConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeContinuousExports
internal virtual DescribeContinuousExportsResponse DescribeContinuousExports(DescribeContinuousExportsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeContinuousExportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeContinuousExportsResponseUnmarshaller.Instance;
return Invoke<DescribeContinuousExportsResponse>(request, options);
}
/// <summary>
/// Lists exports as specified by ID. All continuous exports associated with your user
/// can be listed if you call <code>DescribeContinuousExports</code> as is without passing
/// any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeContinuousExports service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
public virtual Task<DescribeContinuousExportsResponse> DescribeContinuousExportsAsync(DescribeContinuousExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeContinuousExportsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeContinuousExportsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeContinuousExportsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeExportConfigurations
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
internal virtual DescribeExportConfigurationsResponse DescribeExportConfigurations(DescribeExportConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportConfigurationsResponseUnmarshaller.Instance;
return Invoke<DescribeExportConfigurationsResponse>(request, options);
}
/// <summary>
/// <code>DescribeExportConfigurations</code> is deprecated. Use <a href="https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a>,
/// instead.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
public virtual Task<DescribeExportConfigurationsResponse> DescribeExportConfigurationsAsync(DescribeExportConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeExportConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeExportTasks
internal virtual DescribeExportTasksResponse DescribeExportTasks(DescribeExportTasksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportTasksResponseUnmarshaller.Instance;
return Invoke<DescribeExportTasksResponse>(request, options);
}
/// <summary>
/// Retrieve status of one or more export tasks. You can retrieve the status of up to
/// 100 export tasks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeExportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
public virtual Task<DescribeExportTasksResponse> DescribeExportTasksAsync(DescribeExportTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExportTasksResponseUnmarshaller.Instance;
return InvokeAsync<DescribeExportTasksResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeImportTasks
internal virtual DescribeImportTasksResponse DescribeImportTasks(DescribeImportTasksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeImportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeImportTasksResponseUnmarshaller.Instance;
return Invoke<DescribeImportTasksResponse>(request, options);
}
/// <summary>
/// Returns an array of import tasks for your account, including status information, times,
/// IDs, the Amazon S3 Object URL for the import file, and more.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeImportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
public virtual Task<DescribeImportTasksResponse> DescribeImportTasksAsync(DescribeImportTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeImportTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeImportTasksResponseUnmarshaller.Instance;
return InvokeAsync<DescribeImportTasksResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTags
internal virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;
return Invoke<DescribeTagsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of configuration items that have tags as specified by the key-value
/// pairs, name and value, passed to the optional parameter <code>filters</code>.
///
///
/// <para>
/// There are three valid tag filter names:
/// </para>
/// <ul> <li>
/// <para>
/// tagKey
/// </para>
/// </li> <li>
/// <para>
/// tagValue
/// </para>
/// </li> <li>
/// <para>
/// configurationId
/// </para>
/// </li> </ul>
/// <para>
/// Also, all configuration items associated with your user that have tags can be listed
/// if you call <code>DescribeTags</code> as is without passing any parameters.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
public virtual Task<DescribeTagsResponse> DescribeTagsAsync(DescribeTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTagsResponse>(request, options, cancellationToken);
}
#endregion
#region DisassociateConfigurationItemsFromApplication
internal virtual DisassociateConfigurationItemsFromApplicationResponse DisassociateConfigurationItemsFromApplication(DisassociateConfigurationItemsFromApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateConfigurationItemsFromApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateConfigurationItemsFromApplicationResponseUnmarshaller.Instance;
return Invoke<DisassociateConfigurationItemsFromApplicationResponse>(request, options);
}
/// <summary>
/// Disassociates one or more configuration items from an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisassociateConfigurationItemsFromApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
public virtual Task<DisassociateConfigurationItemsFromApplicationResponse> DisassociateConfigurationItemsFromApplicationAsync(DisassociateConfigurationItemsFromApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateConfigurationItemsFromApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateConfigurationItemsFromApplicationResponseUnmarshaller.Instance;
return InvokeAsync<DisassociateConfigurationItemsFromApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region ExportConfigurations
[Obsolete("Deprecated in favor of StartExportTask.")]
internal virtual ExportConfigurationsResponse ExportConfigurations(ExportConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportConfigurationsResponseUnmarshaller.Instance;
return Invoke<ExportConfigurationsResponse>(request, options);
}
/// <summary>
/// Deprecated. Use <code>StartExportTask</code> instead.
///
///
/// <para>
/// Exports all discovered configuration data to an Amazon S3 bucket or an application
/// that enables you to view and evaluate the data. Data includes tags and tag associations,
/// processes, connections, servers, and system performance. This API returns an export
/// ID that you can query using the <i>DescribeExportConfigurations</i> API. The system
/// imposes a limit of two configuration exports in six hours.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
public virtual Task<ExportConfigurationsResponse> ExportConfigurationsAsync(ExportConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<ExportConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region GetDiscoverySummary
internal virtual GetDiscoverySummaryResponse GetDiscoverySummary(GetDiscoverySummaryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDiscoverySummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDiscoverySummaryResponseUnmarshaller.Instance;
return Invoke<GetDiscoverySummaryResponse>(request, options);
}
/// <summary>
/// Retrieves a short summary of discovered assets.
///
///
/// <para>
/// This API operation takes no request parameters and is called as is at the command
/// prompt as shown in the example.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDiscoverySummary service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
public virtual Task<GetDiscoverySummaryResponse> GetDiscoverySummaryAsync(GetDiscoverySummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDiscoverySummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDiscoverySummaryResponseUnmarshaller.Instance;
return InvokeAsync<GetDiscoverySummaryResponse>(request, options, cancellationToken);
}
#endregion
#region ListConfigurations
internal virtual ListConfigurationsResponse ListConfigurations(ListConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationsResponseUnmarshaller.Instance;
return Invoke<ListConfigurationsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of configuration items as specified by the value passed to the required
/// parameter <code>configurationType</code>. Optional filtering may be applied to refine
/// search results.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
public virtual Task<ListConfigurationsResponse> ListConfigurationsAsync(ListConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync<ListConfigurationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListServerNeighbors
internal virtual ListServerNeighborsResponse ListServerNeighbors(ListServerNeighborsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServerNeighborsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServerNeighborsResponseUnmarshaller.Instance;
return Invoke<ListServerNeighborsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of servers that are one network hop away from a specified server.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListServerNeighbors service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
public virtual Task<ListServerNeighborsResponse> ListServerNeighborsAsync(ListServerNeighborsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServerNeighborsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServerNeighborsResponseUnmarshaller.Instance;
return InvokeAsync<ListServerNeighborsResponse>(request, options, cancellationToken);
}
#endregion
#region StartContinuousExport
internal virtual StartContinuousExportResponse StartContinuousExport(StartContinuousExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartContinuousExportResponseUnmarshaller.Instance;
return Invoke<StartContinuousExportResponse>(request, options);
}
/// <summary>
/// Start the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ConflictErrorException">
///
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
public virtual Task<StartContinuousExportResponse> StartContinuousExportAsync(StartContinuousExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartContinuousExportResponseUnmarshaller.Instance;
return InvokeAsync<StartContinuousExportResponse>(request, options, cancellationToken);
}
#endregion
#region StartDataCollectionByAgentIds
internal virtual StartDataCollectionByAgentIdsResponse StartDataCollectionByAgentIds(StartDataCollectionByAgentIdsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return Invoke<StartDataCollectionByAgentIdsResponse>(request, options);
}
/// <summary>
/// Instructs the specified agents to start collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
public virtual Task<StartDataCollectionByAgentIdsResponse> StartDataCollectionByAgentIdsAsync(StartDataCollectionByAgentIdsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return InvokeAsync<StartDataCollectionByAgentIdsResponse>(request, options, cancellationToken);
}
#endregion
#region StartExportTask
internal virtual StartExportTaskResponse StartExportTask(StartExportTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExportTaskResponseUnmarshaller.Instance;
return Invoke<StartExportTaskResponse>(request, options);
}
/// <summary>
/// Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon
/// Web Services.
///
/// <note>
/// <para>
/// Exports might provide an estimate of fees and savings based on certain information
/// that you provide. Fee estimates do not include any taxes that might apply. Your actual
/// fees and savings depend on a variety of factors, including your actual usage of Amazon
/// Web Services services, which might vary from the estimates provided in this report.
/// </para>
/// </note>
/// <para>
/// If you do not specify <code>preferences</code> or <code>agentIds</code> in the filter,
/// a summary of all servers, applications, tags, and performance is generated. This data
/// is an aggregation of all server data collected through on-premises tooling, file import,
/// application grouping and applying tags.
/// </para>
///
/// <para>
/// If you specify <code>agentIds</code> in a filter, the task exports up to 72 hours
/// of detailed data collected by the identified Application Discovery Agent, including
/// network, process, and performance details. A time range for exported agent data may
/// be set by using <code>startTime</code> and <code>endTime</code>. Export of detailed
/// agent data is limited to five concurrently running exports. Export of detailed agent
/// data is limited to two exports per day.
/// </para>
///
/// <para>
/// If you enable <code>ec2RecommendationsPreferences</code> in <code>preferences</code>
/// , an Amazon EC2 instance matching the characteristics of each server in Application
/// Discovery Service is generated. Changing the attributes of the <code>ec2RecommendationsPreferences</code>
/// changes the criteria of the recommendation.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartExportTask service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartExportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
public virtual Task<StartExportTaskResponse> StartExportTaskAsync(StartExportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartExportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartExportTaskResponseUnmarshaller.Instance;
return InvokeAsync<StartExportTaskResponse>(request, options, cancellationToken);
}
#endregion
#region StartImportTask
internal virtual StartImportTaskResponse StartImportTask(StartImportTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportTaskResponseUnmarshaller.Instance;
return Invoke<StartImportTaskResponse>(request, options);
}
/// <summary>
/// Starts an import task, which allows you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub without having to use the Amazon Web
/// Services Application Discovery Service (Application Discovery Service) tools such
/// as the Amazon Web Services Application Discovery Service Agentless Collector or Application
/// Discovery Agent. This gives you the option to perform migration assessment and planning
/// directly from your imported data, including the ability to group your devices as applications
/// and track their migration status.
///
///
/// <para>
/// To start an import request, do this:
/// </para>
/// <ol> <li>
/// <para>
/// Download the specially formatted comma separated value (CSV) import template, which
/// you can find here: <a href="https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv">https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv</a>.
/// </para>
/// </li> <li>
/// <para>
/// Fill out the template with your server and application data.
/// </para>
/// </li> <li>
/// <para>
/// Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL.
/// Your import file must be in the CSV format.
/// </para>
/// </li> <li>
/// <para>
/// Use the console or the <code>StartImportTask</code> command with the Amazon Web Services
/// CLI or one of the Amazon Web Services SDKs to import the records from your file.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, including step-by-step procedures, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html">Migration
/// Hub Import</a> in the <i>Amazon Web Services Application Discovery Service User Guide</i>.
/// </para>
/// <note>
/// <para>
/// There are limits to the number of import tasks you can create (and delete) in an Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html">Amazon
/// Web Services Application Discovery Service Limits</a> in the <i>Amazon Web Services
/// Application Discovery Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartImportTask service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartImportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
public virtual Task<StartImportTaskResponse> StartImportTaskAsync(StartImportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportTaskResponseUnmarshaller.Instance;
return InvokeAsync<StartImportTaskResponse>(request, options, cancellationToken);
}
#endregion
#region StopContinuousExport
internal virtual StopContinuousExportResponse StopContinuousExport(StopContinuousExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopContinuousExportResponseUnmarshaller.Instance;
return Invoke<StopContinuousExportResponse>(request, options);
}
/// <summary>
/// Stop the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
public virtual Task<StopContinuousExportResponse> StopContinuousExportAsync(StopContinuousExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopContinuousExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopContinuousExportResponseUnmarshaller.Instance;
return InvokeAsync<StopContinuousExportResponse>(request, options, cancellationToken);
}
#endregion
#region StopDataCollectionByAgentIds
internal virtual StopDataCollectionByAgentIdsResponse StopDataCollectionByAgentIds(StopDataCollectionByAgentIdsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return Invoke<StopDataCollectionByAgentIdsResponse>(request, options);
}
/// <summary>
/// Instructs the specified agents to stop collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
public virtual Task<StopDataCollectionByAgentIdsResponse> StopDataCollectionByAgentIdsAsync(StopDataCollectionByAgentIdsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopDataCollectionByAgentIdsRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopDataCollectionByAgentIdsResponseUnmarshaller.Instance;
return InvokeAsync<StopDataCollectionByAgentIdsResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateApplication
internal virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;
return Invoke<UpdateApplicationResponse>(request, options);
}
/// <summary>
/// Updates metadata about an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
public virtual Task<UpdateApplicationResponse> UpdateApplicationAsync(UpdateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateApplicationResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,907 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the discovery-2015-11-01.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApplicationDiscoveryService.Model;
namespace Amazon.ApplicationDiscoveryService
{
/// <summary>
/// Interface for accessing ApplicationDiscoveryService
///
/// Amazon Web Services Application Discovery Service
/// <para>
/// Amazon Web Services Application Discovery Service (Application Discovery Service)
/// helps you plan application migration projects. It automatically identifies servers,
/// virtual machines (VMs), and network dependencies in your on-premises data centers.
/// For more information, see the <a href="http://aws.amazon.com/application-discovery/faqs/">Amazon
/// Web Services Application Discovery Service FAQ</a>.
/// </para>
///
/// <para>
/// Application Discovery Service offers three ways of performing discovery and collecting
/// data about your on-premises servers:
/// </para>
/// <ul> <li>
/// <para>
/// <b>Agentless discovery</b> using Amazon Web Services Application Discovery Service
/// Agentless Collector (Agentless Collector), which doesn't require you to install an
/// agent on each host.
/// </para>
/// <ul> <li>
/// <para>
/// Agentless Collector gathers server information regardless of the operating systems,
/// which minimizes the time required for initial on-premises infrastructure assessment.
/// </para>
/// </li> <li>
/// <para>
/// Agentless Collector doesn't collect information about network dependencies, only agent-based
/// discovery collects that information.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Agent-based discovery</b> using the Amazon Web Services Application Discovery
/// Agent (Application Discovery Agent) collects a richer set of data than agentless discovery,
/// which you install on one or more hosts in your data center.
/// </para>
/// <ul> <li>
/// <para>
/// The agent captures infrastructure and application information, including an inventory
/// of running processes, system performance information, resource utilization, and network
/// dependencies.
/// </para>
/// </li> <li>
/// <para>
/// The information collected by agents is secured at rest and in transit to the Application
/// Discovery Service database in the Amazon Web Services cloud. For more information,
/// see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-agent.html">Amazon
/// Web Services Application Discovery Agent</a>.
/// </para>
/// </li> </ul> </li> </ul> <ul> <li>
/// <para>
/// <b>Amazon Web Services Partner Network (APN) solutions</b> integrate with Application
/// Discovery Service, enabling you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub (Migration Hub) without using Agentless
/// Collector or Application Discovery Agent.
/// </para>
/// <ul> <li>
/// <para>
/// Third-party application discovery tools can query Amazon Web Services Application
/// Discovery Service, and they can write to the Application Discovery Service database
/// using the public API.
/// </para>
/// </li> <li>
/// <para>
/// In this way, you can import data into Migration Hub and view it, so that you can associate
/// applications with servers and track migrations.
/// </para>
/// </li> </ul> </li> </ul>
/// <para>
/// <b>Working With This Guide</b>
/// </para>
///
/// <para>
/// This API reference provides descriptions, syntax, and usage examples for each of the
/// actions and data types for Application Discovery Service. The topic for each action
/// shows the API request parameters and the response. Alternatively, you can use one
/// of the Amazon Web Services SDKs to access an API that is tailored to the programming
/// language or platform that you're using. For more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon
/// Web Services SDKs</a>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// Remember that you must set your Migration Hub home Region before you call any of these
/// APIs.
/// </para>
/// </li> <li>
/// <para>
/// You must make API calls for write actions (create, notify, associate, disassociate,
/// import, or put) while in your home Region, or a <code>HomeRegionNotSetException</code>
/// error is returned.
/// </para>
/// </li> <li>
/// <para>
/// API calls for read actions (list, describe, stop, and delete) are permitted outside
/// of your home Region.
/// </para>
/// </li> <li>
/// <para>
/// Although it is unlikely, the Migration Hub home Region could change. If you call APIs
/// outside the home Region, an <code>InvalidInputException</code> is returned.
/// </para>
/// </li> <li>
/// <para>
/// You must call <code>GetHomeRegion</code> to obtain the latest Migration Hub home Region.
/// </para>
/// </li> </ul> </note>
/// <para>
/// This guide is intended for use with the <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/">Amazon
/// Web Services Application Discovery Service User Guide</a>.
/// </para>
/// <important>
/// <para>
/// All data is handled according to the <a href="https://aws.amazon.com/privacy/">Amazon
/// Web Services Privacy Policy</a>. You can operate Application Discovery Service offline
/// to inspect collected data before it is shared with the service.
/// </para>
/// </important>
/// </summary>
public partial interface IAmazonApplicationDiscoveryService : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationDiscoveryServicePaginatorFactory Paginators { get; }
#endif
#region AssociateConfigurationItemsToApplication
/// <summary>
/// Associates one or more configuration items with an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AssociateConfigurationItemsToApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AssociateConfigurationItemsToApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication">REST API Reference for AssociateConfigurationItemsToApplication Operation</seealso>
Task<AssociateConfigurationItemsToApplicationResponse> AssociateConfigurationItemsToApplicationAsync(AssociateConfigurationItemsToApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region BatchDeleteImportData
/// <summary>
/// Deletes one or more import tasks, each identified by their import ID. Each import
/// task has a number of records that can identify servers or applications.
///
///
/// <para>
/// Amazon Web Services Application Discovery Service has built-in matching logic that
/// will identify when discovered servers match existing entries that you've previously
/// discovered, the information for the already-existing discovered server is updated.
/// When you delete an import task that contains records that were used to match, the
/// information in those matched records that comes from the deleted records will also
/// be deleted.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the BatchDeleteImportData service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the BatchDeleteImportData service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData">REST API Reference for BatchDeleteImportData Operation</seealso>
Task<BatchDeleteImportDataResponse> BatchDeleteImportDataAsync(BatchDeleteImportDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateApplication
/// <summary>
/// Creates an application with the given name and description.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
Task<CreateApplicationResponse> CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateTags
/// <summary>
/// Creates one or more tags for configuration items. Tags are metadata that help you
/// categorize IT assets. This API accepts a list of multiple configuration items.
///
/// <important>
/// <para>
/// Do not store sensitive information (like personal data) in tags.
/// </para>
/// </important>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags">REST API Reference for CreateTags Operation</seealso>
Task<CreateTagsResponse> CreateTagsAsync(CreateTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteApplications
/// <summary>
/// Deletes a list of applications and their associations with configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApplications service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications">REST API Reference for DeleteApplications Operation</seealso>
Task<DeleteApplicationsResponse> DeleteApplicationsAsync(DeleteApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteTags
/// <summary>
/// Deletes the association between configuration items and one or more tags. This API
/// accepts a list of multiple configuration items.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso>
Task<DeleteTagsResponse> DeleteTagsAsync(DeleteTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeAgents
/// <summary>
/// Lists agents or collectors as specified by ID or other filters. All agents/collectors
/// associated with your user can be listed if you call <code>DescribeAgents</code> as
/// is without passing any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAgents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeAgents service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents">REST API Reference for DescribeAgents Operation</seealso>
Task<DescribeAgentsResponse> DescribeAgentsAsync(DescribeAgentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeConfigurations
/// <summary>
/// Retrieves attributes for a list of configuration item IDs.
///
/// <note>
/// <para>
/// All of the supplied IDs must be for the same asset type from one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// server
/// </para>
/// </li> <li>
/// <para>
/// application
/// </para>
/// </li> <li>
/// <para>
/// process
/// </para>
/// </li> <li>
/// <para>
/// connection
/// </para>
/// </li> </ul>
/// <para>
/// Output fields are specific to the asset type specified. For example, the output for
/// a <i>server</i> configuration item includes a list of attributes about the server,
/// such as host name, operating system, number of network cards, etc.
/// </para>
///
/// <para>
/// For a complete list of outputs for each asset type, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-api-queries.html#DescribeConfigurations">Using
/// the DescribeConfigurations Action</a> in the <i>Amazon Web Services Application Discovery
/// Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations">REST API Reference for DescribeConfigurations Operation</seealso>
Task<DescribeConfigurationsResponse> DescribeConfigurationsAsync(DescribeConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeContinuousExports
/// <summary>
/// Lists exports as specified by ID. All continuous exports associated with your user
/// can be listed if you call <code>DescribeContinuousExports</code> as is without passing
/// any parameters.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeContinuousExports service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeContinuousExports service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports">REST API Reference for DescribeContinuousExports Operation</seealso>
Task<DescribeContinuousExportsResponse> DescribeContinuousExportsAsync(DescribeContinuousExportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeExportConfigurations
/// <summary>
/// <code>DescribeExportConfigurations</code> is deprecated. Use <a href="https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a>,
/// instead.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations">REST API Reference for DescribeExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of DescribeExportTasks.")]
Task<DescribeExportConfigurationsResponse> DescribeExportConfigurationsAsync(DescribeExportConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeExportTasks
/// <summary>
/// Retrieve status of one or more export tasks. You can retrieve the status of up to
/// 100 export tasks.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeExportTasks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeExportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks">REST API Reference for DescribeExportTasks Operation</seealso>
Task<DescribeExportTasksResponse> DescribeExportTasksAsync(DescribeExportTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeImportTasks
/// <summary>
/// Returns an array of import tasks for your account, including status information, times,
/// IDs, the Amazon S3 Object URL for the import file, and more.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeImportTasks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeImportTasks service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks">REST API Reference for DescribeImportTasks Operation</seealso>
Task<DescribeImportTasksResponse> DescribeImportTasksAsync(DescribeImportTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTags
/// <summary>
/// Retrieves a list of configuration items that have tags as specified by the key-value
/// pairs, name and value, passed to the optional parameter <code>filters</code>.
///
///
/// <para>
/// There are three valid tag filter names:
/// </para>
/// <ul> <li>
/// <para>
/// tagKey
/// </para>
/// </li> <li>
/// <para>
/// tagValue
/// </para>
/// </li> <li>
/// <para>
/// configurationId
/// </para>
/// </li> </ul>
/// <para>
/// Also, all configuration items associated with your user that have tags can be listed
/// if you call <code>DescribeTags</code> as is without passing any parameters.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTags service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso>
Task<DescribeTagsResponse> DescribeTagsAsync(DescribeTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DisassociateConfigurationItemsFromApplication
/// <summary>
/// Disassociates one or more configuration items from an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisassociateConfigurationItemsFromApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisassociateConfigurationItemsFromApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication">REST API Reference for DisassociateConfigurationItemsFromApplication Operation</seealso>
Task<DisassociateConfigurationItemsFromApplicationResponse> DisassociateConfigurationItemsFromApplicationAsync(DisassociateConfigurationItemsFromApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExportConfigurations
/// <summary>
/// Deprecated. Use <code>StartExportTask</code> instead.
///
///
/// <para>
/// Exports all discovered configuration data to an Amazon S3 bucket or an application
/// that enables you to view and evaluate the data. Data includes tags and tag associations,
/// processes, connections, servers, and system performance. This API returns an export
/// ID that you can query using the <i>DescribeExportConfigurations</i> API. The system
/// imposes a limit of two configuration exports in six hours.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations">REST API Reference for ExportConfigurations Operation</seealso>
[Obsolete("Deprecated in favor of StartExportTask.")]
Task<ExportConfigurationsResponse> ExportConfigurationsAsync(ExportConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetDiscoverySummary
/// <summary>
/// Retrieves a short summary of discovered assets.
///
///
/// <para>
/// This API operation takes no request parameters and is called as is at the command
/// prompt as shown in the example.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetDiscoverySummary service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetDiscoverySummary service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary">REST API Reference for GetDiscoverySummary Operation</seealso>
Task<GetDiscoverySummaryResponse> GetDiscoverySummaryAsync(GetDiscoverySummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListConfigurations
/// <summary>
/// Retrieves a list of configuration items as specified by the value passed to the required
/// parameter <code>configurationType</code>. Optional filtering may be applied to refine
/// search results.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConfigurations service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations">REST API Reference for ListConfigurations Operation</seealso>
Task<ListConfigurationsResponse> ListConfigurationsAsync(ListConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListServerNeighbors
/// <summary>
/// Retrieves a list of servers that are one network hop away from a specified server.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListServerNeighbors service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListServerNeighbors service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors">REST API Reference for ListServerNeighbors Operation</seealso>
Task<ListServerNeighborsResponse> ListServerNeighborsAsync(ListServerNeighborsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartContinuousExport
/// <summary>
/// Start the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartContinuousExport service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ConflictErrorException">
///
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport">REST API Reference for StartContinuousExport Operation</seealso>
Task<StartContinuousExportResponse> StartContinuousExportAsync(StartContinuousExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to start collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartDataCollectionByAgentIds service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds">REST API Reference for StartDataCollectionByAgentIds Operation</seealso>
Task<StartDataCollectionByAgentIdsResponse> StartDataCollectionByAgentIdsAsync(StartDataCollectionByAgentIdsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartExportTask
/// <summary>
/// Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon
/// Web Services.
///
/// <note>
/// <para>
/// Exports might provide an estimate of fees and savings based on certain information
/// that you provide. Fee estimates do not include any taxes that might apply. Your actual
/// fees and savings depend on a variety of factors, including your actual usage of Amazon
/// Web Services services, which might vary from the estimates provided in this report.
/// </para>
/// </note>
/// <para>
/// If you do not specify <code>preferences</code> or <code>agentIds</code> in the filter,
/// a summary of all servers, applications, tags, and performance is generated. This data
/// is an aggregation of all server data collected through on-premises tooling, file import,
/// application grouping and applying tags.
/// </para>
///
/// <para>
/// If you specify <code>agentIds</code> in a filter, the task exports up to 72 hours
/// of detailed data collected by the identified Application Discovery Agent, including
/// network, process, and performance details. A time range for exported agent data may
/// be set by using <code>startTime</code> and <code>endTime</code>. Export of detailed
/// agent data is limited to five concurrently running exports. Export of detailed agent
/// data is limited to two exports per day.
/// </para>
///
/// <para>
/// If you enable <code>ec2RecommendationsPreferences</code> in <code>preferences</code>
/// , an Amazon EC2 instance matching the characteristics of each server in Application
/// Discovery Service is generated. Changing the attributes of the <code>ec2RecommendationsPreferences</code>
/// changes the criteria of the recommendation.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartExportTask service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartExportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask">REST API Reference for StartExportTask Operation</seealso>
Task<StartExportTaskResponse> StartExportTaskAsync(StartExportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartImportTask
/// <summary>
/// Starts an import task, which allows you to import details of your on-premises environment
/// directly into Amazon Web Services Migration Hub without having to use the Amazon Web
/// Services Application Discovery Service (Application Discovery Service) tools such
/// as the Amazon Web Services Application Discovery Service Agentless Collector or Application
/// Discovery Agent. This gives you the option to perform migration assessment and planning
/// directly from your imported data, including the ability to group your devices as applications
/// and track their migration status.
///
///
/// <para>
/// To start an import request, do this:
/// </para>
/// <ol> <li>
/// <para>
/// Download the specially formatted comma separated value (CSV) import template, which
/// you can find here: <a href="https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv">https://s3.us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv</a>.
/// </para>
/// </li> <li>
/// <para>
/// Fill out the template with your server and application data.
/// </para>
/// </li> <li>
/// <para>
/// Upload your import file to an Amazon S3 bucket, and make a note of it's Object URL.
/// Your import file must be in the CSV format.
/// </para>
/// </li> <li>
/// <para>
/// Use the console or the <code>StartImportTask</code> command with the Amazon Web Services
/// CLI or one of the Amazon Web Services SDKs to import the records from your file.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, including step-by-step procedures, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html">Migration
/// Hub Import</a> in the <i>Amazon Web Services Application Discovery Service User Guide</i>.
/// </para>
/// <note>
/// <para>
/// There are limits to the number of import tasks you can create (and delete) in an Amazon
/// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html">Amazon
/// Web Services Application Discovery Service Limits</a> in the <i>Amazon Web Services
/// Application Discovery Service User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartImportTask service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartImportTask service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask">REST API Reference for StartImportTask Operation</seealso>
Task<StartImportTaskResponse> StartImportTaskAsync(StartImportTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StopContinuousExport
/// <summary>
/// Stop the continuous flow of agent's discovered data into Amazon Athena.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopContinuousExport service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopContinuousExport service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.OperationNotPermittedException">
/// This operation is not permitted.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceInUseException">
/// This issue occurs when the same <code>clientRequestToken</code> is used with the <code>StartImportTask</code>
/// action, but with different parameters. For example, you use the same request token
/// but have two different import URLs, you can encounter this issue. If the import tasks
/// are meant to be different, use a different <code>clientRequestToken</code>, and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ResourceNotFoundException">
/// The specified configuration ID was not located. Verify the configuration ID and try
/// again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport">REST API Reference for StopContinuousExport Operation</seealso>
Task<StopContinuousExportResponse> StopContinuousExportAsync(StopContinuousExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StopDataCollectionByAgentIds
/// <summary>
/// Instructs the specified agents to stop collecting data.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StopDataCollectionByAgentIds service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StopDataCollectionByAgentIds service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds">REST API Reference for StopDataCollectionByAgentIds Operation</seealso>
Task<StopDataCollectionByAgentIdsResponse> StopDataCollectionByAgentIdsAsync(StopDataCollectionByAgentIdsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateApplication
/// <summary>
/// Updates metadata about an application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateApplication service method, as returned by ApplicationDiscoveryService.</returns>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.AuthorizationErrorException">
/// The user does not have permission to perform the action. Check the IAM policy associated
/// with this user.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.HomeRegionNotSetException">
/// The home Region is not set. Set the home Region to continue.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterException">
/// One or more parameters are not valid. Verify the parameters and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.InvalidParameterValueException">
/// The value of one or more parameters are either invalid or out of range. Verify the
/// parameter values and try again.
/// </exception>
/// <exception cref="Amazon.ApplicationDiscoveryService.Model.ServerInternalErrorException">
/// The server experienced an internal error. Try again.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
Task<UpdateApplicationResponse> UpdateApplicationAsync(UpdateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 1,280 |
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.ApplicationDiscoveryService")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Application Discovery Service. AWS Application Discovery Service helps Systems Integrators quickly and reliably plan application migration projects by automatically identifying applications running in your data center, their associated dependencies, and their performance profile.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Application Discovery Service. AWS Application Discovery Service helps Systems Integrators quickly and reliably plan application migration projects by automatically identifying applications running in your data center, their associated dependencies, and their performance profile.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Application Discovery Service. AWS Application Discovery Service helps Systems Integrators quickly and reliably plan application migration projects by automatically identifying applications running in your data center, their associated dependencies, and their performance profile.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Application Discovery Service. AWS Application Discovery Service helps Systems Integrators quickly and reliably plan application migration projects by automatically identifying applications running in your data center, their associated dependencies, and their performance profile.")]
#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.102.1")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif | 51 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.ApplicationInsights.Internal;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Configuration for accessing Amazon ApplicationInsights service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonApplicationInsightsConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.100.147");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonApplicationInsightsConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonApplicationInsightsDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "applicationinsights";
this.EndpointProvider = new AmazonApplicationInsightsEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "applicationinsights";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2018-11-25";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Configuration for accessing Amazon ApplicationInsights service
/// </summary>
public static class AmazonApplicationInsightsDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// ApplicationInsights
/// </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 application-insights-2018-11-25.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.ApplicationInsights.Endpoints
{
/// <summary>
/// Contains parameters used for resolving ApplicationInsights endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal ApplicationInsightsEndpointProvider and ApplicationInsightsEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class ApplicationInsightsEndpointParameters : EndpointParameters
{
/// <summary>
/// ApplicationInsightsEndpointParameters constructor
/// </summary>
public ApplicationInsightsEndpointParameters()
{
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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.ApplicationInsights
{
///<summary>
/// Common exception for the ApplicationInsights service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonApplicationInsightsException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonApplicationInsightsException
/// </summary>
/// <param name="message"></param>
public AmazonApplicationInsightsException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonApplicationInsightsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonApplicationInsightsException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonApplicationInsightsException
/// </summary>
/// <param name="innerException"></param>
public AmazonApplicationInsightsException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonApplicationInsightsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonApplicationInsightsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonApplicationInsightsException
/// </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 AmazonApplicationInsightsException(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 AmazonApplicationInsightsException 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 AmazonApplicationInsightsException(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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Constants used for properties of type CloudWatchEventSource.
/// </summary>
public class CloudWatchEventSource : ConstantClass
{
/// <summary>
/// Constant CODE_DEPLOY for CloudWatchEventSource
/// </summary>
public static readonly CloudWatchEventSource CODE_DEPLOY = new CloudWatchEventSource("CODE_DEPLOY");
/// <summary>
/// Constant EC2 for CloudWatchEventSource
/// </summary>
public static readonly CloudWatchEventSource EC2 = new CloudWatchEventSource("EC2");
/// <summary>
/// Constant HEALTH for CloudWatchEventSource
/// </summary>
public static readonly CloudWatchEventSource HEALTH = new CloudWatchEventSource("HEALTH");
/// <summary>
/// Constant RDS for CloudWatchEventSource
/// </summary>
public static readonly CloudWatchEventSource RDS = new CloudWatchEventSource("RDS");
/// <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 CloudWatchEventSource(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 CloudWatchEventSource FindValue(string value)
{
return FindValue<CloudWatchEventSource>(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 CloudWatchEventSource(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ConfigurationEventResourceType.
/// </summary>
public class ConfigurationEventResourceType : ConstantClass
{
/// <summary>
/// Constant CLOUDFORMATION for ConfigurationEventResourceType
/// </summary>
public static readonly ConfigurationEventResourceType CLOUDFORMATION = new ConfigurationEventResourceType("CLOUDFORMATION");
/// <summary>
/// Constant CLOUDWATCH_ALARM for ConfigurationEventResourceType
/// </summary>
public static readonly ConfigurationEventResourceType CLOUDWATCH_ALARM = new ConfigurationEventResourceType("CLOUDWATCH_ALARM");
/// <summary>
/// Constant CLOUDWATCH_LOG for ConfigurationEventResourceType
/// </summary>
public static readonly ConfigurationEventResourceType CLOUDWATCH_LOG = new ConfigurationEventResourceType("CLOUDWATCH_LOG");
/// <summary>
/// Constant SSM_ASSOCIATION for ConfigurationEventResourceType
/// </summary>
public static readonly ConfigurationEventResourceType SSM_ASSOCIATION = new ConfigurationEventResourceType("SSM_ASSOCIATION");
/// <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 ConfigurationEventResourceType(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 ConfigurationEventResourceType FindValue(string value)
{
return FindValue<ConfigurationEventResourceType>(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 ConfigurationEventResourceType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ConfigurationEventStatus.
/// </summary>
public class ConfigurationEventStatus : ConstantClass
{
/// <summary>
/// Constant ERROR for ConfigurationEventStatus
/// </summary>
public static readonly ConfigurationEventStatus ERROR = new ConfigurationEventStatus("ERROR");
/// <summary>
/// Constant INFO for ConfigurationEventStatus
/// </summary>
public static readonly ConfigurationEventStatus INFO = new ConfigurationEventStatus("INFO");
/// <summary>
/// Constant WARN for ConfigurationEventStatus
/// </summary>
public static readonly ConfigurationEventStatus WARN = new ConfigurationEventStatus("WARN");
/// <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 ConfigurationEventStatus(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 ConfigurationEventStatus FindValue(string value)
{
return FindValue<ConfigurationEventStatus>(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 ConfigurationEventStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type DiscoveryType.
/// </summary>
public class DiscoveryType : ConstantClass
{
/// <summary>
/// Constant ACCOUNT_BASED for DiscoveryType
/// </summary>
public static readonly DiscoveryType ACCOUNT_BASED = new DiscoveryType("ACCOUNT_BASED");
/// <summary>
/// Constant RESOURCE_GROUP_BASED for DiscoveryType
/// </summary>
public static readonly DiscoveryType RESOURCE_GROUP_BASED = new DiscoveryType("RESOURCE_GROUP_BASED");
/// <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 DiscoveryType(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 DiscoveryType FindValue(string value)
{
return FindValue<DiscoveryType>(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 DiscoveryType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type FeedbackKey.
/// </summary>
public class FeedbackKey : ConstantClass
{
/// <summary>
/// Constant INSIGHTS_FEEDBACK for FeedbackKey
/// </summary>
public static readonly FeedbackKey INSIGHTS_FEEDBACK = new FeedbackKey("INSIGHTS_FEEDBACK");
/// <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 FeedbackKey(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 FeedbackKey FindValue(string value)
{
return FindValue<FeedbackKey>(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 FeedbackKey(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type FeedbackValue.
/// </summary>
public class FeedbackValue : ConstantClass
{
/// <summary>
/// Constant NOT_SPECIFIED for FeedbackValue
/// </summary>
public static readonly FeedbackValue NOT_SPECIFIED = new FeedbackValue("NOT_SPECIFIED");
/// <summary>
/// Constant NOT_USEFUL for FeedbackValue
/// </summary>
public static readonly FeedbackValue NOT_USEFUL = new FeedbackValue("NOT_USEFUL");
/// <summary>
/// Constant USEFUL for FeedbackValue
/// </summary>
public static readonly FeedbackValue USEFUL = new FeedbackValue("USEFUL");
/// <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 FeedbackValue(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 FeedbackValue FindValue(string value)
{
return FindValue<FeedbackValue>(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 FeedbackValue(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type GroupingType.
/// </summary>
public class GroupingType : ConstantClass
{
/// <summary>
/// Constant ACCOUNT_BASED for GroupingType
/// </summary>
public static readonly GroupingType ACCOUNT_BASED = new GroupingType("ACCOUNT_BASED");
/// <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 GroupingType(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 GroupingType FindValue(string value)
{
return FindValue<GroupingType>(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 GroupingType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LogFilter.
/// </summary>
public class LogFilter : ConstantClass
{
/// <summary>
/// Constant ERROR for LogFilter
/// </summary>
public static readonly LogFilter ERROR = new LogFilter("ERROR");
/// <summary>
/// Constant INFO for LogFilter
/// </summary>
public static readonly LogFilter INFO = new LogFilter("INFO");
/// <summary>
/// Constant WARN for LogFilter
/// </summary>
public static readonly LogFilter WARN = new LogFilter("WARN");
/// <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 LogFilter(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 LogFilter FindValue(string value)
{
return FindValue<LogFilter>(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 LogFilter(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type OsType.
/// </summary>
public class OsType : ConstantClass
{
/// <summary>
/// Constant LINUX for OsType
/// </summary>
public static readonly OsType LINUX = new OsType("LINUX");
/// <summary>
/// Constant WINDOWS for OsType
/// </summary>
public static readonly OsType WINDOWS = new OsType("WINDOWS");
/// <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 OsType(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 OsType FindValue(string value)
{
return FindValue<OsType>(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 OsType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type SeverityLevel.
/// </summary>
public class SeverityLevel : ConstantClass
{
/// <summary>
/// Constant High for SeverityLevel
/// </summary>
public static readonly SeverityLevel High = new SeverityLevel("High");
/// <summary>
/// Constant Informative for SeverityLevel
/// </summary>
public static readonly SeverityLevel Informative = new SeverityLevel("Informative");
/// <summary>
/// Constant Low for SeverityLevel
/// </summary>
public static readonly SeverityLevel Low = new SeverityLevel("Low");
/// <summary>
/// Constant Medium for SeverityLevel
/// </summary>
public static readonly SeverityLevel Medium = new SeverityLevel("Medium");
/// <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 SeverityLevel(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 SeverityLevel FindValue(string value)
{
return FindValue<SeverityLevel>(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 SeverityLevel(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type Status.
/// </summary>
public class Status : ConstantClass
{
/// <summary>
/// Constant IGNORE for Status
/// </summary>
public static readonly Status IGNORE = new Status("IGNORE");
/// <summary>
/// Constant PENDING for Status
/// </summary>
public static readonly Status PENDING = new Status("PENDING");
/// <summary>
/// Constant RECURRING for Status
/// </summary>
public static readonly Status RECURRING = new Status("RECURRING");
/// <summary>
/// Constant RESOLVED for Status
/// </summary>
public static readonly Status RESOLVED = new Status("RESOLVED");
/// <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 Status(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 Status FindValue(string value)
{
return FindValue<Status>(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 Status(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type Tier.
/// </summary>
public class Tier : ConstantClass
{
/// <summary>
/// Constant ACTIVE_DIRECTORY for Tier
/// </summary>
public static readonly Tier ACTIVE_DIRECTORY = new Tier("ACTIVE_DIRECTORY");
/// <summary>
/// Constant CUSTOM for Tier
/// </summary>
public static readonly Tier CUSTOM = new Tier("CUSTOM");
/// <summary>
/// Constant DEFAULT for Tier
/// </summary>
public static readonly Tier DEFAULT = new Tier("DEFAULT");
/// <summary>
/// Constant DOT_NET_CORE for Tier
/// </summary>
public static readonly Tier DOT_NET_CORE = new Tier("DOT_NET_CORE");
/// <summary>
/// Constant DOT_NET_WEB for Tier
/// </summary>
public static readonly Tier DOT_NET_WEB = new Tier("DOT_NET_WEB");
/// <summary>
/// Constant DOT_NET_WEB_TIER for Tier
/// </summary>
public static readonly Tier DOT_NET_WEB_TIER = new Tier("DOT_NET_WEB_TIER");
/// <summary>
/// Constant DOT_NET_WORKER for Tier
/// </summary>
public static readonly Tier DOT_NET_WORKER = new Tier("DOT_NET_WORKER");
/// <summary>
/// Constant JAVA_JMX for Tier
/// </summary>
public static readonly Tier JAVA_JMX = new Tier("JAVA_JMX");
/// <summary>
/// Constant MYSQL for Tier
/// </summary>
public static readonly Tier MYSQL = new Tier("MYSQL");
/// <summary>
/// Constant ORACLE for Tier
/// </summary>
public static readonly Tier ORACLE = new Tier("ORACLE");
/// <summary>
/// Constant POSTGRESQL for Tier
/// </summary>
public static readonly Tier POSTGRESQL = new Tier("POSTGRESQL");
/// <summary>
/// Constant SAP_HANA_HIGH_AVAILABILITY for Tier
/// </summary>
public static readonly Tier SAP_HANA_HIGH_AVAILABILITY = new Tier("SAP_HANA_HIGH_AVAILABILITY");
/// <summary>
/// Constant SAP_HANA_MULTI_NODE for Tier
/// </summary>
public static readonly Tier SAP_HANA_MULTI_NODE = new Tier("SAP_HANA_MULTI_NODE");
/// <summary>
/// Constant SAP_HANA_SINGLE_NODE for Tier
/// </summary>
public static readonly Tier SAP_HANA_SINGLE_NODE = new Tier("SAP_HANA_SINGLE_NODE");
/// <summary>
/// Constant SHAREPOINT for Tier
/// </summary>
public static readonly Tier SHAREPOINT = new Tier("SHAREPOINT");
/// <summary>
/// Constant SQL_SERVER for Tier
/// </summary>
public static readonly Tier SQL_SERVER = new Tier("SQL_SERVER");
/// <summary>
/// Constant SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP for Tier
/// </summary>
public static readonly Tier SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP = new Tier("SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP");
/// <summary>
/// Constant SQL_SERVER_FAILOVER_CLUSTER_INSTANCE for Tier
/// </summary>
public static readonly Tier SQL_SERVER_FAILOVER_CLUSTER_INSTANCE = new Tier("SQL_SERVER_FAILOVER_CLUSTER_INSTANCE");
/// <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 Tier(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 Tier FindValue(string value)
{
return FindValue<Tier>(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 Tier(string value)
{
return FindValue(value);
}
}
} | 726 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn;
namespace Amazon.ApplicationInsights.Internal
{
/// <summary>
/// Amazon ApplicationInsights endpoint provider.
/// Resolves endpoint for given set of ApplicationInsightsEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonApplicationInsightsEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for ApplicationInsightsEndpointParameters
/// </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://applicationinsights-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://applicationinsights-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://applicationinsights.{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://applicationinsights.{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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.ApplicationInsights.Endpoints;
#pragma warning disable 1591
namespace Amazon.ApplicationInsights.Internal
{
/// <summary>
/// Amazon ApplicationInsights endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for ApplicationInsights service requests.
/// Collects values for ApplicationInsightsEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses ApplicationInsightsEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonApplicationInsightsEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonApplicationInsightsConfig)requestContext.ClientConfig;
var result = new ApplicationInsightsEndpointParameters();
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 application-insights-2018-11-25.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.ApplicationInsights.Internal
{
/// <summary>
/// Service metadata for Amazon ApplicationInsights service
/// </summary>
public partial class AmazonApplicationInsightsMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Application Insights";
}
}
/// <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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.ApplicationInsights.Model
{
/// <summary>
/// User does not have permissions to perform this action.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AccessDeniedException : AmazonApplicationInsightsException
{
/// <summary>
/// Constructs a new AccessDeniedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public AccessDeniedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AccessDeniedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="innerException"></param>
public AccessDeniedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AccessDeniedException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Base class for ApplicationInsights operation requests.
/// </summary>
public partial class AmazonApplicationInsightsRequest : AmazonWebServiceRequest
{
}
} | 30 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.