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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeProblem operation
/// </summary>
public class DescribeProblemResponseUnmarshaller : 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)
{
DescribeProblemResponse response = new DescribeProblemResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Problem", targetDepth))
{
var unmarshaller = ProblemUnmarshaller.Instance;
response.Problem = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeProblemResponseUnmarshaller _instance = new DescribeProblemResponseUnmarshaller();
internal static DescribeProblemResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeProblemResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 118 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InternalServerException Object
/// </summary>
public class InternalServerExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServerException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServerException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InternalServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServerException unmarshalledObject = new InternalServerException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServerExceptionUnmarshaller _instance = new InternalServerExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServerExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListApplications Request Marshaller
/// </summary>
public class ListApplicationsRequestMarshaller : IMarshaller<IRequest, ListApplicationsRequest> , 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((ListApplicationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListApplicationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.ListApplications";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.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 ListApplicationsRequestMarshaller _instance = new ListApplicationsRequestMarshaller();
internal static ListApplicationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListApplicationsRequestMarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListApplications operation
/// </summary>
public class ListApplicationsResponseUnmarshaller : 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)
{
ListApplicationsResponse response = new ListApplicationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ApplicationInfoList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ApplicationInfo, ApplicationInfoUnmarshaller>(ApplicationInfoUnmarshaller.Instance);
response.ApplicationInfoList = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListApplicationsResponseUnmarshaller _instance = new ListApplicationsResponseUnmarshaller();
internal static ListApplicationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListApplicationsResponseUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListComponents Request Marshaller
/// </summary>
public class ListComponentsRequestMarshaller : IMarshaller<IRequest, ListComponentsRequest> , 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((ListComponentsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListComponentsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.ListComponents";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListComponentsRequestMarshaller _instance = new ListComponentsRequestMarshaller();
internal static ListComponentsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListComponentsRequestMarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListComponents operation
/// </summary>
public class ListComponentsResponseUnmarshaller : 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)
{
ListComponentsResponse response = new ListComponentsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ApplicationComponentList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ApplicationComponent, ApplicationComponentUnmarshaller>(ApplicationComponentUnmarshaller.Instance);
response.ApplicationComponentList = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListComponentsResponseUnmarshaller _instance = new ListComponentsResponseUnmarshaller();
internal static ListComponentsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListComponentsResponseUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListConfigurationHistory Request Marshaller
/// </summary>
public class ListConfigurationHistoryRequestMarshaller : IMarshaller<IRequest, ListConfigurationHistoryRequest> , 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((ListConfigurationHistoryRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListConfigurationHistoryRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.ListConfigurationHistory";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetEventStatus())
{
context.Writer.WritePropertyName("EventStatus");
context.Writer.Write(publicRequest.EventStatus);
}
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.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
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 ListConfigurationHistoryRequestMarshaller _instance = new ListConfigurationHistoryRequestMarshaller();
internal static ListConfigurationHistoryRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConfigurationHistoryRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 133 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListConfigurationHistory operation
/// </summary>
public class ListConfigurationHistoryResponseUnmarshaller : 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)
{
ListConfigurationHistoryResponse response = new ListConfigurationHistoryResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EventList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ConfigurationEvent, ConfigurationEventUnmarshaller>(ConfigurationEventUnmarshaller.Instance);
response.EventList = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListConfigurationHistoryResponseUnmarshaller _instance = new ListConfigurationHistoryResponseUnmarshaller();
internal static ListConfigurationHistoryResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListConfigurationHistoryResponseUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListLogPatternSets Request Marshaller
/// </summary>
public class ListLogPatternSetsRequestMarshaller : IMarshaller<IRequest, ListLogPatternSetsRequest> , 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((ListLogPatternSetsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListLogPatternSetsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.ListLogPatternSets";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListLogPatternSetsRequestMarshaller _instance = new ListLogPatternSetsRequestMarshaller();
internal static ListLogPatternSetsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListLogPatternSetsRequestMarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListLogPatternSets operation
/// </summary>
public class ListLogPatternSetsResponseUnmarshaller : 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)
{
ListLogPatternSetsResponse response = new ListLogPatternSetsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("LogPatternSets", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.LogPatternSets = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ResourceGroupName = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListLogPatternSetsResponseUnmarshaller _instance = new ListLogPatternSetsResponseUnmarshaller();
internal static ListLogPatternSetsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListLogPatternSetsResponseUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListLogPatterns Request Marshaller
/// </summary>
public class ListLogPatternsRequestMarshaller : IMarshaller<IRequest, ListLogPatternsRequest> , 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((ListLogPatternsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListLogPatternsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.ListLogPatterns";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetPatternSetName())
{
context.Writer.WritePropertyName("PatternSetName");
context.Writer.Write(publicRequest.PatternSetName);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListLogPatternsRequestMarshaller _instance = new ListLogPatternsRequestMarshaller();
internal static ListLogPatternsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListLogPatternsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 121 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListLogPatterns operation
/// </summary>
public class ListLogPatternsResponseUnmarshaller : 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)
{
ListLogPatternsResponse response = new ListLogPatternsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("LogPatterns", targetDepth))
{
var unmarshaller = new ListUnmarshaller<LogPattern, LogPatternUnmarshaller>(LogPatternUnmarshaller.Instance);
response.LogPatterns = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ResourceGroupName = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListLogPatternsResponseUnmarshaller _instance = new ListLogPatternsResponseUnmarshaller();
internal static ListLogPatternsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListLogPatternsResponseUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListProblems Request Marshaller
/// </summary>
public class ListProblemsRequestMarshaller : IMarshaller<IRequest, ListProblemsRequest> , 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((ListProblemsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListProblemsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.ListProblems";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetComponentName())
{
context.Writer.WritePropertyName("ComponentName");
context.Writer.Write(publicRequest.ComponentName);
}
if(publicRequest.IsSetEndTime())
{
context.Writer.WritePropertyName("EndTime");
context.Writer.Write(publicRequest.EndTime);
}
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.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
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 ListProblemsRequestMarshaller _instance = new ListProblemsRequestMarshaller();
internal static ListProblemsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListProblemsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 133 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListProblems operation
/// </summary>
public class ListProblemsResponseUnmarshaller : 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)
{
ListProblemsResponse response = new ListProblemsResponse();
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("ProblemList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Problem, ProblemUnmarshaller>(ProblemUnmarshaller.Instance);
response.ProblemList = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ResourceGroupName = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListProblemsResponseUnmarshaller _instance = new ListProblemsResponseUnmarshaller();
internal static ListProblemsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListProblemsResponseUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListTagsForResource Request Marshaller
/// </summary>
public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , 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((ListTagsForResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListTagsForResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.ListTagsForResource";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetResourceARN())
{
context.Writer.WritePropertyName("ResourceARN");
context.Writer.Write(publicRequest.ResourceARN);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller();
internal static ListTagsForResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceRequestMarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListTagsForResource operation
/// </summary>
public class ListTagsForResourceResponseUnmarshaller : 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)
{
ListTagsForResourceResponse response = new ListTagsForResourceResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Tags", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Tag, TagUnmarshaller>(TagUnmarshaller.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("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller();
internal static ListTagsForResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListTagsForResourceResponseUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for LogPattern Object
/// </summary>
public class LogPatternUnmarshaller : IUnmarshaller<LogPattern, XmlUnmarshallerContext>, IUnmarshaller<LogPattern, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
LogPattern IUnmarshaller<LogPattern, 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 LogPattern Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
LogPattern unmarshalledObject = new LogPattern();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Pattern", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Pattern = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PatternName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PatternName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PatternSetName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PatternSetName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Rank", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Rank = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static LogPatternUnmarshaller _instance = new LogPatternUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static LogPatternUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 110 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Observation Object
/// </summary>
public class ObservationUnmarshaller : IUnmarshaller<Observation, XmlUnmarshallerContext>, IUnmarshaller<Observation, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Observation IUnmarshaller<Observation, 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 Observation Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Observation unmarshalledObject = new Observation();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CloudWatchEventDetailType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CloudWatchEventDetailType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CloudWatchEventId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CloudWatchEventId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CloudWatchEventSource", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CloudWatchEventSource = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CodeDeployApplication", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CodeDeployApplication = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CodeDeployDeploymentGroup", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CodeDeployDeploymentGroup = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CodeDeployDeploymentId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CodeDeployDeploymentId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CodeDeployInstanceGroupId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CodeDeployInstanceGroupId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CodeDeployState", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CodeDeployState = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EbsCause", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EbsCause = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EbsEvent", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EbsEvent = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EbsRequestId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EbsRequestId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EbsResult", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EbsResult = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Ec2State", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Ec2State = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.EndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HealthEventArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HealthEventArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HealthEventDescription", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HealthEventDescription = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HealthEventTypeCategory", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HealthEventTypeCategory = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HealthEventTypeCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HealthEventTypeCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HealthService", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HealthService = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LineTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LineTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LogFilter", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LogFilter = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LogGroup", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LogGroup = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LogText", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LogText = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MetricName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.MetricName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MetricNamespace", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.MetricNamespace = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RdsEventCategories", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RdsEventCategories = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RdsEventMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RdsEventMessage = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("S3EventName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.S3EventName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SourceARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SourceARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SourceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SourceType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.StartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatesArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatesArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatesExecutionArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatesExecutionArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatesInput", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatesInput = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatesStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatesStatus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Unit", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Unit = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Value", targetDepth))
{
var unmarshaller = DoubleUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("XRayErrorPercent", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.XRayErrorPercent = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("XRayFaultPercent", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.XRayFaultPercent = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("XRayNodeName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.XRayNodeName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("XRayNodeType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.XRayNodeType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("XRayRequestAverageLatency", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.XRayRequestAverageLatency = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("XRayRequestCount", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.XRayRequestCount = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("XRayThrottlePercent", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.XRayThrottlePercent = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ObservationUnmarshaller _instance = new ObservationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ObservationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 356 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Problem Object
/// </summary>
public class ProblemUnmarshaller : IUnmarshaller<Problem, XmlUnmarshallerContext>, IUnmarshaller<Problem, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Problem IUnmarshaller<Problem, 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 Problem Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Problem unmarshalledObject = new Problem();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AffectedResource", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AffectedResource = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.EndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Feedback", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.Feedback = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Insights", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Insights = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastRecurrenceTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LastRecurrenceTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RecurringCount", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.RecurringCount = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceGroupName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SeverityLevel", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SeverityLevel = 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("Title", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Title = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ProblemUnmarshaller _instance = new ProblemUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ProblemUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 158 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RelatedObservations Object
/// </summary>
public class RelatedObservationsUnmarshaller : IUnmarshaller<RelatedObservations, XmlUnmarshallerContext>, IUnmarshaller<RelatedObservations, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
RelatedObservations IUnmarshaller<RelatedObservations, 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 RelatedObservations Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
RelatedObservations unmarshalledObject = new RelatedObservations();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ObservationList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Observation, ObservationUnmarshaller>(ObservationUnmarshaller.Instance);
unmarshalledObject.ObservationList = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static RelatedObservationsUnmarshaller _instance = new RelatedObservationsUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RelatedObservationsUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 92 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// TagResource Request Marshaller
/// </summary>
public class TagResourceRequestMarshaller : IMarshaller<IRequest, TagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((TagResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(TagResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.TagResource";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetResourceARN())
{
context.Writer.WritePropertyName("ResourceARN");
context.Writer.Write(publicRequest.ResourceARN);
}
if(publicRequest.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 TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller();
internal static TagResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagResourceRequestMarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TagResource operation
/// </summary>
public class TagResourceResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
TagResourceResponse response = new TagResourceResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTagsException"))
{
return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller();
internal static TagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TagsAlreadyExistException Object
/// </summary>
public class TagsAlreadyExistExceptionUnmarshaller : IErrorResponseUnmarshaller<TagsAlreadyExistException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TagsAlreadyExistException 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 TagsAlreadyExistException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
TagsAlreadyExistException unmarshalledObject = new TagsAlreadyExistException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static TagsAlreadyExistExceptionUnmarshaller _instance = new TagsAlreadyExistExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagsAlreadyExistExceptionUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Tag Object
/// </summary>
public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Tag IUnmarshaller<Tag, 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 Tag Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Tag unmarshalledObject = new Tag();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Key", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Key = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Value", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TagUnmarshaller _instance = new TagUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TagUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TooManyTagsException Object
/// </summary>
public class TooManyTagsExceptionUnmarshaller : IErrorResponseUnmarshaller<TooManyTagsException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TooManyTagsException 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 TooManyTagsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
TooManyTagsException unmarshalledObject = new TooManyTagsException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ResourceName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TooManyTagsExceptionUnmarshaller _instance = new TooManyTagsExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TooManyTagsExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// UntagResource Request Marshaller
/// </summary>
public class UntagResourceRequestMarshaller : IMarshaller<IRequest, UntagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((UntagResourceRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UntagResourceRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.UntagResource";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetResourceARN())
{
context.Writer.WritePropertyName("ResourceARN");
context.Writer.Write(publicRequest.ResourceARN);
}
if(publicRequest.IsSetTagKeys())
{
context.Writer.WritePropertyName("TagKeys");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys)
{
context.Writer.Write(publicRequestTagKeysListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller();
internal static UntagResourceRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UntagResourceRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 114 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UntagResource operation
/// </summary>
public class UntagResourceResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UntagResourceResponse response = new UntagResourceResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller();
internal static UntagResourceResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UntagResourceResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.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.ApplicationInsights");
string target = "EC2WindowsBarleyService.UpdateApplication";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetAutoConfigEnabled())
{
context.Writer.WritePropertyName("AutoConfigEnabled");
context.Writer.Write(publicRequest.AutoConfigEnabled);
}
if(publicRequest.IsSetCWEMonitorEnabled())
{
context.Writer.WritePropertyName("CWEMonitorEnabled");
context.Writer.Write(publicRequest.CWEMonitorEnabled);
}
if(publicRequest.IsSetOpsCenterEnabled())
{
context.Writer.WritePropertyName("OpsCenterEnabled");
context.Writer.Write(publicRequest.OpsCenterEnabled);
}
if(publicRequest.IsSetOpsItemSNSTopicArn())
{
context.Writer.WritePropertyName("OpsItemSNSTopicArn");
context.Writer.Write(publicRequest.OpsItemSNSTopicArn);
}
if(publicRequest.IsSetRemoveSNSTopic())
{
context.Writer.WritePropertyName("RemoveSNSTopic");
context.Writer.Write(publicRequest.RemoveSNSTopic);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
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;
}
}
}
} | 133 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.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();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ApplicationInfo", targetDepth))
{
var unmarshaller = ApplicationInfoUnmarshaller.Instance;
response.ApplicationInfo = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(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;
}
}
}
} | 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateComponentConfiguration Request Marshaller
/// </summary>
public class UpdateComponentConfigurationRequestMarshaller : IMarshaller<IRequest, UpdateComponentConfigurationRequest> , 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((UpdateComponentConfigurationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateComponentConfigurationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.UpdateComponentConfiguration";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetAutoConfigEnabled())
{
context.Writer.WritePropertyName("AutoConfigEnabled");
context.Writer.Write(publicRequest.AutoConfigEnabled);
}
if(publicRequest.IsSetComponentConfiguration())
{
context.Writer.WritePropertyName("ComponentConfiguration");
context.Writer.Write(publicRequest.ComponentConfiguration);
}
if(publicRequest.IsSetComponentName())
{
context.Writer.WritePropertyName("ComponentName");
context.Writer.Write(publicRequest.ComponentName);
}
if(publicRequest.IsSetMonitor())
{
context.Writer.WritePropertyName("Monitor");
context.Writer.Write(publicRequest.Monitor);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
if(publicRequest.IsSetTier())
{
context.Writer.WritePropertyName("Tier");
context.Writer.Write(publicRequest.Tier);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateComponentConfigurationRequestMarshaller _instance = new UpdateComponentConfigurationRequestMarshaller();
internal static UpdateComponentConfigurationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateComponentConfigurationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 133 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateComponentConfiguration operation
/// </summary>
public class UpdateComponentConfigurationResponseUnmarshaller : 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)
{
UpdateComponentConfigurationResponse response = new UpdateComponentConfigurationResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateComponentConfigurationResponseUnmarshaller _instance = new UpdateComponentConfigurationResponseUnmarshaller();
internal static UpdateComponentConfigurationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateComponentConfigurationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateComponent Request Marshaller
/// </summary>
public class UpdateComponentRequestMarshaller : IMarshaller<IRequest, UpdateComponentRequest> , 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((UpdateComponentRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateComponentRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.UpdateComponent";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetComponentName())
{
context.Writer.WritePropertyName("ComponentName");
context.Writer.Write(publicRequest.ComponentName);
}
if(publicRequest.IsSetNewComponentName())
{
context.Writer.WritePropertyName("NewComponentName");
context.Writer.Write(publicRequest.NewComponentName);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
if(publicRequest.IsSetResourceList())
{
context.Writer.WritePropertyName("ResourceList");
context.Writer.WriteArrayStart();
foreach(var publicRequestResourceListListValue in publicRequest.ResourceList)
{
context.Writer.Write(publicRequestResourceListListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateComponentRequestMarshaller _instance = new UpdateComponentRequestMarshaller();
internal static UpdateComponentRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateComponentRequestMarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateComponent operation
/// </summary>
public class UpdateComponentResponseUnmarshaller : 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)
{
UpdateComponentResponse response = new UpdateComponentResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("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("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateComponentResponseUnmarshaller _instance = new UpdateComponentResponseUnmarshaller();
internal static UpdateComponentResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateComponentResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateLogPattern Request Marshaller
/// </summary>
public class UpdateLogPatternRequestMarshaller : IMarshaller<IRequest, UpdateLogPatternRequest> , 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((UpdateLogPatternRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateLogPatternRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.UpdateLogPattern";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetPattern())
{
context.Writer.WritePropertyName("Pattern");
context.Writer.Write(publicRequest.Pattern);
}
if(publicRequest.IsSetPatternName())
{
context.Writer.WritePropertyName("PatternName");
context.Writer.Write(publicRequest.PatternName);
}
if(publicRequest.IsSetPatternSetName())
{
context.Writer.WritePropertyName("PatternSetName");
context.Writer.Write(publicRequest.PatternSetName);
}
if(publicRequest.IsSetRank())
{
context.Writer.WritePropertyName("Rank");
context.Writer.Write(publicRequest.Rank);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static UpdateLogPatternRequestMarshaller _instance = new UpdateLogPatternRequestMarshaller();
internal static UpdateLogPatternRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateLogPatternRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 127 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateLogPattern operation
/// </summary>
public class UpdateLogPatternResponseUnmarshaller : 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)
{
UpdateLogPatternResponse response = new UpdateLogPatternResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("LogPattern", targetDepth))
{
var unmarshaller = LogPatternUnmarshaller.Instance;
response.LogPattern = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ResourceGroupName = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.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("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateLogPatternResponseUnmarshaller _instance = new UpdateLogPatternResponseUnmarshaller();
internal static UpdateLogPatternResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateLogPatternResponseUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ValidationException Object
/// </summary>
public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ValidationException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ValidationExceptionUnmarshaller 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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.ApplicationInsights.Model
{
/// <summary>
/// Paginators for the ApplicationInsights service
///</summary>
public class ApplicationInsightsPaginatorFactory : IApplicationInsightsPaginatorFactory
{
private readonly IAmazonApplicationInsights client;
internal ApplicationInsightsPaginatorFactory(IAmazonApplicationInsights client)
{
this.client = client;
}
/// <summary>
/// Paginator for ListApplications operation
///</summary>
public IListApplicationsPaginator ListApplications(ListApplicationsRequest request)
{
return new ListApplicationsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListComponents operation
///</summary>
public IListComponentsPaginator ListComponents(ListComponentsRequest request)
{
return new ListComponentsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListConfigurationHistory operation
///</summary>
public IListConfigurationHistoryPaginator ListConfigurationHistory(ListConfigurationHistoryRequest request)
{
return new ListConfigurationHistoryPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListLogPatterns operation
///</summary>
public IListLogPatternsPaginator ListLogPatterns(ListLogPatternsRequest request)
{
return new ListLogPatternsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListLogPatternSets operation
///</summary>
public IListLogPatternSetsPaginator ListLogPatternSets(ListLogPatternSetsRequest request)
{
return new ListLogPatternSetsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListProblems operation
///</summary>
public IListProblemsPaginator ListProblems(ListProblemsRequest request)
{
return new ListProblemsPaginator(this.client, request);
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.
*/
namespace Amazon.ApplicationInsights.Model
{
/// <summary>
/// Paginators for the ApplicationInsights service
///</summary>
public interface IApplicationInsightsPaginatorFactory
{
/// <summary>
/// Paginator for ListApplications operation
///</summary>
IListApplicationsPaginator ListApplications(ListApplicationsRequest request);
/// <summary>
/// Paginator for ListComponents operation
///</summary>
IListComponentsPaginator ListComponents(ListComponentsRequest request);
/// <summary>
/// Paginator for ListConfigurationHistory operation
///</summary>
IListConfigurationHistoryPaginator ListConfigurationHistory(ListConfigurationHistoryRequest request);
/// <summary>
/// Paginator for ListLogPatterns operation
///</summary>
IListLogPatternsPaginator ListLogPatterns(ListLogPatternsRequest request);
/// <summary>
/// Paginator for ListLogPatternSets operation
///</summary>
IListLogPatternSetsPaginator ListLogPatternSets(ListLogPatternSetsRequest request);
/// <summary>
/// Paginator for ListProblems operation
///</summary>
IListProblemsPaginator ListProblems(ListProblemsRequest request);
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationInsights.Model
{
/// <summary>
/// Paginator for the ListApplications operation
///</summary>
public interface IListApplicationsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListApplicationsResponse> 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 application-insights-2018-11-25.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationInsights.Model
{
/// <summary>
/// Paginator for the ListComponents operation
///</summary>
public interface IListComponentsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListComponentsResponse> 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 application-insights-2018-11-25.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationInsights.Model
{
/// <summary>
/// Paginator for the ListConfigurationHistory operation
///</summary>
public interface IListConfigurationHistoryPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListConfigurationHistoryResponse> 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 application-insights-2018-11-25.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationInsights.Model
{
/// <summary>
/// Paginator for the ListLogPatternSets operation
///</summary>
public interface IListLogPatternSetsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListLogPatternSetsResponse> 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 application-insights-2018-11-25.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationInsights.Model
{
/// <summary>
/// Paginator for the ListLogPatterns operation
///</summary>
public interface IListLogPatternsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListLogPatternsResponse> 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 application-insights-2018-11-25.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.ApplicationInsights.Model
{
/// <summary>
/// Paginator for the ListProblems operation
///</summary>
public interface IListProblemsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListProblemsResponse> 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Base class for ListApplications paginators.
/// </summary>
internal sealed partial class ListApplicationsPaginator : IPaginator<ListApplicationsResponse>, IListApplicationsPaginator
{
private readonly IAmazonApplicationInsights _client;
private readonly ListApplicationsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListApplicationsResponse> Responses => new PaginatedResponse<ListApplicationsResponse>(this);
internal ListApplicationsPaginator(IAmazonApplicationInsights client, ListApplicationsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListApplicationsResponse> IPaginator<ListApplicationsResponse>.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;
ListApplicationsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListApplications(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListApplicationsResponse> IPaginator<ListApplicationsResponse>.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;
ListApplicationsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListApplicationsAsync(_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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Base class for ListComponents paginators.
/// </summary>
internal sealed partial class ListComponentsPaginator : IPaginator<ListComponentsResponse>, IListComponentsPaginator
{
private readonly IAmazonApplicationInsights _client;
private readonly ListComponentsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListComponentsResponse> Responses => new PaginatedResponse<ListComponentsResponse>(this);
internal ListComponentsPaginator(IAmazonApplicationInsights client, ListComponentsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListComponentsResponse> IPaginator<ListComponentsResponse>.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;
ListComponentsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListComponents(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListComponentsResponse> IPaginator<ListComponentsResponse>.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;
ListComponentsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListComponentsAsync(_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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Base class for ListConfigurationHistory paginators.
/// </summary>
internal sealed partial class ListConfigurationHistoryPaginator : IPaginator<ListConfigurationHistoryResponse>, IListConfigurationHistoryPaginator
{
private readonly IAmazonApplicationInsights _client;
private readonly ListConfigurationHistoryRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListConfigurationHistoryResponse> Responses => new PaginatedResponse<ListConfigurationHistoryResponse>(this);
internal ListConfigurationHistoryPaginator(IAmazonApplicationInsights client, ListConfigurationHistoryRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListConfigurationHistoryResponse> IPaginator<ListConfigurationHistoryResponse>.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;
ListConfigurationHistoryResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListConfigurationHistory(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListConfigurationHistoryResponse> IPaginator<ListConfigurationHistoryResponse>.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;
ListConfigurationHistoryResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListConfigurationHistoryAsync(_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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Base class for ListLogPatternSets paginators.
/// </summary>
internal sealed partial class ListLogPatternSetsPaginator : IPaginator<ListLogPatternSetsResponse>, IListLogPatternSetsPaginator
{
private readonly IAmazonApplicationInsights _client;
private readonly ListLogPatternSetsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListLogPatternSetsResponse> Responses => new PaginatedResponse<ListLogPatternSetsResponse>(this);
internal ListLogPatternSetsPaginator(IAmazonApplicationInsights client, ListLogPatternSetsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListLogPatternSetsResponse> IPaginator<ListLogPatternSetsResponse>.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;
ListLogPatternSetsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListLogPatternSets(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListLogPatternSetsResponse> IPaginator<ListLogPatternSetsResponse>.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;
ListLogPatternSetsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListLogPatternSetsAsync(_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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Base class for ListLogPatterns paginators.
/// </summary>
internal sealed partial class ListLogPatternsPaginator : IPaginator<ListLogPatternsResponse>, IListLogPatternsPaginator
{
private readonly IAmazonApplicationInsights _client;
private readonly ListLogPatternsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListLogPatternsResponse> Responses => new PaginatedResponse<ListLogPatternsResponse>(this);
internal ListLogPatternsPaginator(IAmazonApplicationInsights client, ListLogPatternsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListLogPatternsResponse> IPaginator<ListLogPatternsResponse>.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;
ListLogPatternsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListLogPatterns(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListLogPatternsResponse> IPaginator<ListLogPatternsResponse>.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;
ListLogPatternsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListLogPatternsAsync(_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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Base class for ListProblems paginators.
/// </summary>
internal sealed partial class ListProblemsPaginator : IPaginator<ListProblemsResponse>, IListProblemsPaginator
{
private readonly IAmazonApplicationInsights _client;
private readonly ListProblemsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListProblemsResponse> Responses => new PaginatedResponse<ListProblemsResponse>(this);
internal ListProblemsPaginator(IAmazonApplicationInsights client, ListProblemsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListProblemsResponse> IPaginator<ListProblemsResponse>.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;
ListProblemsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListProblems(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListProblemsResponse> IPaginator<ListProblemsResponse>.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;
ListProblemsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListProblemsAsync(_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 application-insights-2018-11-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.ApplicationInsights.Model;
using Amazon.ApplicationInsights.Model.Internal.MarshallTransformations;
using Amazon.ApplicationInsights.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Implementation for accessing ApplicationInsights
///
/// Amazon CloudWatch Application Insights
/// <para>
/// Amazon CloudWatch Application Insights is a service that helps you detect common
/// problems with your applications. It enables you to pinpoint the source of issues in
/// your applications (built with technologies such as Microsoft IIS, .NET, and Microsoft
/// SQL Server), by providing key insights into detected problems.
/// </para>
///
/// <para>
/// After you onboard your application, CloudWatch Application Insights identifies, recommends,
/// and sets up metrics and logs. It continuously analyzes and correlates your metrics
/// and logs for unusual behavior to surface actionable problems with your application.
/// For example, if your application is slow and unresponsive and leading to HTTP 500
/// errors in your Application Load Balancer (ALB), Application Insights informs you that
/// a memory pressure problem with your SQL Server database is occurring. It bases this
/// analysis on impactful metrics and log errors.
/// </para>
/// </summary>
public partial class AmazonApplicationInsightsClient : AmazonServiceClient, IAmazonApplicationInsights
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationInsightsMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IApplicationInsightsPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationInsightsPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationInsightsPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationInsightsConfig()) { }
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationInsightsConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(AmazonApplicationInsightsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationInsightsClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationInsightsConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationInsightsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationInsightsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Credentials and an
/// AmazonApplicationInsightsClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(AWSCredentials credentials, AmazonApplicationInsightsConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationInsightsConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationInsightsConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationInsightsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationInsightsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationInsightsConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationInsightsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationInsightsConfig 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 AmazonApplicationInsightsEndpointResolver());
}
/// <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 CreateApplication
/// <summary>
/// Adds an application that is created from a resource group.
/// </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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.AccessDeniedException">
/// User does not have permissions to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TagsAlreadyExistException">
/// Tags are already registered for the specified application ARN.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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 AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState 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/application-insights-2018-11-25/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 ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
public virtual CreateApplicationResponse EndCreateApplication(IAsyncResult asyncResult)
{
return EndInvoke<CreateApplicationResponse>(asyncResult);
}
#endregion
#region CreateComponent
/// <summary>
/// Creates a custom component by grouping similar standalone instances to monitor.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
///
/// <returns>The response from the CreateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual CreateComponentResponse CreateComponent(CreateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return Invoke<CreateComponentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateComponent operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual IAsyncResult BeginCreateComponent(CreateComponentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateComponent.</param>
///
/// <returns>Returns a CreateComponentResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual CreateComponentResponse EndCreateComponent(IAsyncResult asyncResult)
{
return EndInvoke<CreateComponentResponse>(asyncResult);
}
#endregion
#region CreateLogPattern
/// <summary>
/// Adds an log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern service method.</param>
///
/// <returns>The response from the CreateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
public virtual CreateLogPatternResponse CreateLogPattern(CreateLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLogPatternResponseUnmarshaller.Instance;
return Invoke<CreateLogPatternResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateLogPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateLogPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
public virtual IAsyncResult BeginCreateLogPattern(CreateLogPatternRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLogPatternResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateLogPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateLogPattern.</param>
///
/// <returns>Returns a CreateLogPatternResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
public virtual CreateLogPatternResponse EndCreateLogPattern(IAsyncResult asyncResult)
{
return EndInvoke<CreateLogPatternResponse>(asyncResult);
}
#endregion
#region DeleteApplication
/// <summary>
/// Removes the specified application from monitoring. Does not delete the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication service method.</param>
///
/// <returns>The response from the DeleteApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
public virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;
return Invoke<DeleteApplicationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
public virtual IAsyncResult BeginDeleteApplication(DeleteApplicationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApplication.</param>
///
/// <returns>Returns a DeleteApplicationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
public virtual DeleteApplicationResponse EndDeleteApplication(IAsyncResult asyncResult)
{
return EndInvoke<DeleteApplicationResponse>(asyncResult);
}
#endregion
#region DeleteComponent
/// <summary>
/// Ungroups a custom component. When you ungroup custom components, all applicable monitors
/// that are set up for the component are removed and the instances revert to their standalone
/// status.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
///
/// <returns>The response from the DeleteComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return Invoke<DeleteComponentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual IAsyncResult BeginDeleteComponent(DeleteComponentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteComponent.</param>
///
/// <returns>Returns a DeleteComponentResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual DeleteComponentResponse EndDeleteComponent(IAsyncResult asyncResult)
{
return EndInvoke<DeleteComponentResponse>(asyncResult);
}
#endregion
#region DeleteLogPattern
/// <summary>
/// Removes the specified log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern service method.</param>
///
/// <returns>The response from the DeleteLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
public virtual DeleteLogPatternResponse DeleteLogPattern(DeleteLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLogPatternResponseUnmarshaller.Instance;
return Invoke<DeleteLogPatternResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteLogPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLogPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
public virtual IAsyncResult BeginDeleteLogPattern(DeleteLogPatternRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLogPatternResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteLogPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteLogPattern.</param>
///
/// <returns>Returns a DeleteLogPatternResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
public virtual DeleteLogPatternResponse EndDeleteLogPattern(IAsyncResult asyncResult)
{
return EndInvoke<DeleteLogPatternResponse>(asyncResult);
}
#endregion
#region DescribeApplication
/// <summary>
/// Describes the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication service method.</param>
///
/// <returns>The response from the DescribeApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
public virtual DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance;
return Invoke<DescribeApplicationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
public virtual IAsyncResult BeginDescribeApplication(DescribeApplicationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeApplication.</param>
///
/// <returns>Returns a DescribeApplicationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
public virtual DescribeApplicationResponse EndDescribeApplication(IAsyncResult asyncResult)
{
return EndInvoke<DescribeApplicationResponse>(asyncResult);
}
#endregion
#region DescribeComponent
/// <summary>
/// Describes a component and lists the resources that are grouped together in a component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent service method.</param>
///
/// <returns>The response from the DescribeComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
public virtual DescribeComponentResponse DescribeComponent(DescribeComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentResponseUnmarshaller.Instance;
return Invoke<DescribeComponentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
public virtual IAsyncResult BeginDescribeComponent(DescribeComponentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeComponent.</param>
///
/// <returns>Returns a DescribeComponentResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
public virtual DescribeComponentResponse EndDescribeComponent(IAsyncResult asyncResult)
{
return EndInvoke<DescribeComponentResponse>(asyncResult);
}
#endregion
#region DescribeComponentConfiguration
/// <summary>
/// Describes the monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration service method.</param>
///
/// <returns>The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
public virtual DescribeComponentConfigurationResponse DescribeComponentConfiguration(DescribeComponentConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance;
return Invoke<DescribeComponentConfigurationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeComponentConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeComponentConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
public virtual IAsyncResult BeginDescribeComponentConfiguration(DescribeComponentConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeComponentConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeComponentConfiguration.</param>
///
/// <returns>Returns a DescribeComponentConfigurationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
public virtual DescribeComponentConfigurationResponse EndDescribeComponentConfiguration(IAsyncResult asyncResult)
{
return EndInvoke<DescribeComponentConfigurationResponse>(asyncResult);
}
#endregion
#region DescribeComponentConfigurationRecommendation
/// <summary>
/// Describes the recommended monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method.</param>
///
/// <returns>The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
public virtual DescribeComponentConfigurationRecommendationResponse DescribeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRecommendationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationRecommendationResponseUnmarshaller.Instance;
return Invoke<DescribeComponentConfigurationRecommendationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeComponentConfigurationRecommendation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeComponentConfigurationRecommendation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
public virtual IAsyncResult BeginDescribeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRecommendationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationRecommendationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeComponentConfigurationRecommendation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeComponentConfigurationRecommendation.</param>
///
/// <returns>Returns a DescribeComponentConfigurationRecommendationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
public virtual DescribeComponentConfigurationRecommendationResponse EndDescribeComponentConfigurationRecommendation(IAsyncResult asyncResult)
{
return EndInvoke<DescribeComponentConfigurationRecommendationResponse>(asyncResult);
}
#endregion
#region DescribeLogPattern
/// <summary>
/// Describe a specific log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern service method.</param>
///
/// <returns>The response from the DescribeLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
public virtual DescribeLogPatternResponse DescribeLogPattern(DescribeLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLogPatternResponseUnmarshaller.Instance;
return Invoke<DescribeLogPatternResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeLogPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLogPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
public virtual IAsyncResult BeginDescribeLogPattern(DescribeLogPatternRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLogPatternResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeLogPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLogPattern.</param>
///
/// <returns>Returns a DescribeLogPatternResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
public virtual DescribeLogPatternResponse EndDescribeLogPattern(IAsyncResult asyncResult)
{
return EndInvoke<DescribeLogPatternResponse>(asyncResult);
}
#endregion
#region DescribeObservation
/// <summary>
/// Describes an anomaly or error with the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation service method.</param>
///
/// <returns>The response from the DescribeObservation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
public virtual DescribeObservationResponse DescribeObservation(DescribeObservationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservationResponseUnmarshaller.Instance;
return Invoke<DescribeObservationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeObservation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeObservation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
public virtual IAsyncResult BeginDescribeObservation(DescribeObservationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeObservation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeObservation.</param>
///
/// <returns>Returns a DescribeObservationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
public virtual DescribeObservationResponse EndDescribeObservation(IAsyncResult asyncResult)
{
return EndInvoke<DescribeObservationResponse>(asyncResult);
}
#endregion
#region DescribeProblem
/// <summary>
/// Describes an application problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem service method.</param>
///
/// <returns>The response from the DescribeProblem service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
public virtual DescribeProblemResponse DescribeProblem(DescribeProblemRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance;
return Invoke<DescribeProblemResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeProblem operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeProblem
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
public virtual IAsyncResult BeginDescribeProblem(DescribeProblemRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeProblem operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeProblem.</param>
///
/// <returns>Returns a DescribeProblemResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
public virtual DescribeProblemResponse EndDescribeProblem(IAsyncResult asyncResult)
{
return EndInvoke<DescribeProblemResponse>(asyncResult);
}
#endregion
#region DescribeProblemObservations
/// <summary>
/// Describes the anomalies or errors associated with the problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations service method.</param>
///
/// <returns>The response from the DescribeProblemObservations service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
public virtual DescribeProblemObservationsResponse DescribeProblemObservations(DescribeProblemObservationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemObservationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemObservationsResponseUnmarshaller.Instance;
return Invoke<DescribeProblemObservationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeProblemObservations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeProblemObservations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
public virtual IAsyncResult BeginDescribeProblemObservations(DescribeProblemObservationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemObservationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemObservationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeProblemObservations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeProblemObservations.</param>
///
/// <returns>Returns a DescribeProblemObservationsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
public virtual DescribeProblemObservationsResponse EndDescribeProblemObservations(IAsyncResult asyncResult)
{
return EndInvoke<DescribeProblemObservationsResponse>(asyncResult);
}
#endregion
#region ListApplications
/// <summary>
/// Lists the IDs of the applications that you are monitoring.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApplications service method.</param>
///
/// <returns>The response from the ListApplications service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
public virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return Invoke<ListApplicationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListApplications operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListApplications operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListApplications
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
public virtual IAsyncResult BeginListApplications(ListApplicationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListApplications operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListApplications.</param>
///
/// <returns>Returns a ListApplicationsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
public virtual ListApplicationsResponse EndListApplications(IAsyncResult asyncResult)
{
return EndInvoke<ListApplicationsResponse>(asyncResult);
}
#endregion
#region ListComponents
/// <summary>
/// Lists the auto-grouped, standalone, and custom components of the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
///
/// <returns>The response from the ListComponents service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual ListComponentsResponse ListComponents(ListComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return Invoke<ListComponentsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListComponents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListComponents operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListComponents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual IAsyncResult BeginListComponents(ListComponentsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListComponents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListComponents.</param>
///
/// <returns>Returns a ListComponentsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual ListComponentsResponse EndListComponents(IAsyncResult asyncResult)
{
return EndInvoke<ListComponentsResponse>(asyncResult);
}
#endregion
#region ListConfigurationHistory
/// <summary>
/// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed
/// by Application Insights. Examples of events represented are:
///
/// <ul> <li>
/// <para>
/// INFO: creating a new alarm or updating an alarm threshold.
/// </para>
/// </li> <li>
/// <para>
/// WARN: alarm not created due to insufficient data points used to predict thresholds.
/// </para>
/// </li> <li>
/// <para>
/// ERROR: alarm not created due to permission errors or exceeding quotas.
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory service method.</param>
///
/// <returns>The response from the ListConfigurationHistory service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
public virtual ListConfigurationHistoryResponse ListConfigurationHistory(ListConfigurationHistoryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationHistoryResponseUnmarshaller.Instance;
return Invoke<ListConfigurationHistoryResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListConfigurationHistory operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListConfigurationHistory
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
public virtual IAsyncResult BeginListConfigurationHistory(ListConfigurationHistoryRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationHistoryResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListConfigurationHistory operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConfigurationHistory.</param>
///
/// <returns>Returns a ListConfigurationHistoryResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
public virtual ListConfigurationHistoryResponse EndListConfigurationHistory(IAsyncResult asyncResult)
{
return EndInvoke<ListConfigurationHistoryResponse>(asyncResult);
}
#endregion
#region ListLogPatterns
/// <summary>
/// Lists the log patterns in the specific log <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns service method.</param>
///
/// <returns>The response from the ListLogPatterns service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
public virtual ListLogPatternsResponse ListLogPatterns(ListLogPatternsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternsResponseUnmarshaller.Instance;
return Invoke<ListLogPatternsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListLogPatterns operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListLogPatterns
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
public virtual IAsyncResult BeginListLogPatterns(ListLogPatternsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListLogPatterns operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListLogPatterns.</param>
///
/// <returns>Returns a ListLogPatternsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
public virtual ListLogPatternsResponse EndListLogPatterns(IAsyncResult asyncResult)
{
return EndInvoke<ListLogPatternsResponse>(asyncResult);
}
#endregion
#region ListLogPatternSets
/// <summary>
/// Lists the log pattern sets in the specific application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets service method.</param>
///
/// <returns>The response from the ListLogPatternSets service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
public virtual ListLogPatternSetsResponse ListLogPatternSets(ListLogPatternSetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternSetsResponseUnmarshaller.Instance;
return Invoke<ListLogPatternSetsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListLogPatternSets operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListLogPatternSets
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
public virtual IAsyncResult BeginListLogPatternSets(ListLogPatternSetsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternSetsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListLogPatternSets operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListLogPatternSets.</param>
///
/// <returns>Returns a ListLogPatternSetsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
public virtual ListLogPatternSetsResponse EndListLogPatternSets(IAsyncResult asyncResult)
{
return EndInvoke<ListLogPatternSetsResponse>(asyncResult);
}
#endregion
#region ListProblems
/// <summary>
/// Lists the problems with your application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListProblems service method.</param>
///
/// <returns>The response from the ListProblems service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
public virtual ListProblemsResponse ListProblems(ListProblemsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProblemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProblemsResponseUnmarshaller.Instance;
return Invoke<ListProblemsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListProblems operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListProblems operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListProblems
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
public virtual IAsyncResult BeginListProblems(ListProblemsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProblemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProblemsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListProblems operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListProblems.</param>
///
/// <returns>Returns a ListProblemsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
public virtual ListProblemsResponse EndListProblems(IAsyncResult asyncResult)
{
return EndInvoke<ListProblemsResponse>(asyncResult);
}
#endregion
#region ListTagsForResource
/// <summary>
/// Retrieve a list of the tags (keys and values) that are associated with a specified
/// application. A <i>tag</i> is a label that you optionally define and associate with
/// an application. Each tag consists of a required <i>tag key</i> and an optional associated
/// <i>tag value</i>. A tag key is a general label that acts as a category for more specific
/// tag values. A tag value acts as a descriptor within a tag key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param>
///
/// <returns>Returns a ListTagsForResourceResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke<ListTagsForResourceResponse>(asyncResult);
}
#endregion
#region TagResource
/// <summary>
/// Add one or more tags (keys and values) to a specified application. A <i>tag</i> is
/// a label that you optionally define and associate with an application. Tags can help
/// you categorize and manage application in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// more specific tag values. A tag value acts as a descriptor within a tag key.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TooManyTagsException">
/// The number of the provided tags is beyond the limit, or the number of total tags you
/// are trying to attach to the specified resource exceeds the limit.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param>
///
/// <returns>Returns a TagResourceResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke<TagResourceResponse>(asyncResult);
}
#endregion
#region UntagResource
/// <summary>
/// Remove one or more tags (keys and values) from a specified application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param>
///
/// <returns>Returns a UntagResourceResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke<UntagResourceResponse>(asyncResult);
}
#endregion
#region UpdateApplication
/// <summary>
/// Updates the 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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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 AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState 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/application-insights-2018-11-25/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 ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
public virtual UpdateApplicationResponse EndUpdateApplication(IAsyncResult asyncResult)
{
return EndInvoke<UpdateApplicationResponse>(asyncResult);
}
#endregion
#region UpdateComponent
/// <summary>
/// Updates the custom component name and/or the list of resources that make up the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
///
/// <returns>The response from the UpdateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return Invoke<UpdateComponentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual IAsyncResult BeginUpdateComponent(UpdateComponentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateComponent.</param>
///
/// <returns>Returns a UpdateComponentResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual UpdateComponentResponse EndUpdateComponent(IAsyncResult asyncResult)
{
return EndInvoke<UpdateComponentResponse>(asyncResult);
}
#endregion
#region UpdateComponentConfiguration
/// <summary>
/// Updates the monitoring configurations for the component. The configuration input parameter
/// is an escaped JSON of the configuration and should match the schema of what is returned
/// by <code>DescribeComponentConfigurationRecommendation</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration service method.</param>
///
/// <returns>The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
public virtual UpdateComponentConfigurationResponse UpdateComponentConfiguration(UpdateComponentConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance;
return Invoke<UpdateComponentConfigurationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateComponentConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateComponentConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
public virtual IAsyncResult BeginUpdateComponentConfiguration(UpdateComponentConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateComponentConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateComponentConfiguration.</param>
///
/// <returns>Returns a UpdateComponentConfigurationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
public virtual UpdateComponentConfigurationResponse EndUpdateComponentConfiguration(IAsyncResult asyncResult)
{
return EndInvoke<UpdateComponentConfigurationResponse>(asyncResult);
}
#endregion
#region UpdateLogPattern
/// <summary>
/// Adds a log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern service method.</param>
///
/// <returns>The response from the UpdateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
public virtual UpdateLogPatternResponse UpdateLogPattern(UpdateLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance;
return Invoke<UpdateLogPatternResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateLogPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateLogPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
public virtual IAsyncResult BeginUpdateLogPattern(UpdateLogPatternRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateLogPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateLogPattern.</param>
///
/// <returns>Returns a UpdateLogPatternResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
public virtual UpdateLogPatternResponse EndUpdateLogPattern(IAsyncResult asyncResult)
{
return EndInvoke<UpdateLogPatternResponse>(asyncResult);
}
#endregion
}
} | 2,037 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.ApplicationInsights.Model;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Interface for accessing ApplicationInsights
///
/// Amazon CloudWatch Application Insights
/// <para>
/// Amazon CloudWatch Application Insights is a service that helps you detect common
/// problems with your applications. It enables you to pinpoint the source of issues in
/// your applications (built with technologies such as Microsoft IIS, .NET, and Microsoft
/// SQL Server), by providing key insights into detected problems.
/// </para>
///
/// <para>
/// After you onboard your application, CloudWatch Application Insights identifies, recommends,
/// and sets up metrics and logs. It continuously analyzes and correlates your metrics
/// and logs for unusual behavior to surface actionable problems with your application.
/// For example, if your application is slow and unresponsive and leading to HTTP 500
/// errors in your Application Load Balancer (ALB), Application Insights informs you that
/// a memory pressure problem with your SQL Server database is occurring. It bases this
/// analysis on impactful metrics and log errors.
/// </para>
/// </summary>
public partial interface IAmazonApplicationInsights : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationInsightsPaginatorFactory Paginators { get; }
#endif
#region CreateApplication
/// <summary>
/// Adds an application that is created from a resource group.
/// </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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.AccessDeniedException">
/// User does not have permissions to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TagsAlreadyExistException">
/// Tags are already registered for the specified application ARN.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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 AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState 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/application-insights-2018-11-25/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 ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
CreateApplicationResponse EndCreateApplication(IAsyncResult asyncResult);
#endregion
#region CreateComponent
/// <summary>
/// Creates a custom component by grouping similar standalone instances to monitor.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
///
/// <returns>The response from the CreateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
CreateComponentResponse CreateComponent(CreateComponentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateComponent operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
IAsyncResult BeginCreateComponent(CreateComponentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateComponent.</param>
///
/// <returns>Returns a CreateComponentResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
CreateComponentResponse EndCreateComponent(IAsyncResult asyncResult);
#endregion
#region CreateLogPattern
/// <summary>
/// Adds an log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern service method.</param>
///
/// <returns>The response from the CreateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
CreateLogPatternResponse CreateLogPattern(CreateLogPatternRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateLogPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateLogPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
IAsyncResult BeginCreateLogPattern(CreateLogPatternRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateLogPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateLogPattern.</param>
///
/// <returns>Returns a CreateLogPatternResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
CreateLogPatternResponse EndCreateLogPattern(IAsyncResult asyncResult);
#endregion
#region DeleteApplication
/// <summary>
/// Removes the specified application from monitoring. Does not delete the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication service method.</param>
///
/// <returns>The response from the DeleteApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
IAsyncResult BeginDeleteApplication(DeleteApplicationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteApplication.</param>
///
/// <returns>Returns a DeleteApplicationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
DeleteApplicationResponse EndDeleteApplication(IAsyncResult asyncResult);
#endregion
#region DeleteComponent
/// <summary>
/// Ungroups a custom component. When you ungroup custom components, all applicable monitors
/// that are set up for the component are removed and the instances revert to their standalone
/// status.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
///
/// <returns>The response from the DeleteComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
DeleteComponentResponse DeleteComponent(DeleteComponentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
IAsyncResult BeginDeleteComponent(DeleteComponentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteComponent.</param>
///
/// <returns>Returns a DeleteComponentResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
DeleteComponentResponse EndDeleteComponent(IAsyncResult asyncResult);
#endregion
#region DeleteLogPattern
/// <summary>
/// Removes the specified log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern service method.</param>
///
/// <returns>The response from the DeleteLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
DeleteLogPatternResponse DeleteLogPattern(DeleteLogPatternRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteLogPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLogPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
IAsyncResult BeginDeleteLogPattern(DeleteLogPatternRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteLogPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteLogPattern.</param>
///
/// <returns>Returns a DeleteLogPatternResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
DeleteLogPatternResponse EndDeleteLogPattern(IAsyncResult asyncResult);
#endregion
#region DescribeApplication
/// <summary>
/// Describes the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication service method.</param>
///
/// <returns>The response from the DescribeApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeApplication operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeApplication
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
IAsyncResult BeginDescribeApplication(DescribeApplicationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeApplication operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeApplication.</param>
///
/// <returns>Returns a DescribeApplicationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
DescribeApplicationResponse EndDescribeApplication(IAsyncResult asyncResult);
#endregion
#region DescribeComponent
/// <summary>
/// Describes a component and lists the resources that are grouped together in a component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent service method.</param>
///
/// <returns>The response from the DescribeComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
DescribeComponentResponse DescribeComponent(DescribeComponentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
IAsyncResult BeginDescribeComponent(DescribeComponentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeComponent.</param>
///
/// <returns>Returns a DescribeComponentResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
DescribeComponentResponse EndDescribeComponent(IAsyncResult asyncResult);
#endregion
#region DescribeComponentConfiguration
/// <summary>
/// Describes the monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration service method.</param>
///
/// <returns>The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
DescribeComponentConfigurationResponse DescribeComponentConfiguration(DescribeComponentConfigurationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeComponentConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeComponentConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
IAsyncResult BeginDescribeComponentConfiguration(DescribeComponentConfigurationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeComponentConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeComponentConfiguration.</param>
///
/// <returns>Returns a DescribeComponentConfigurationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
DescribeComponentConfigurationResponse EndDescribeComponentConfiguration(IAsyncResult asyncResult);
#endregion
#region DescribeComponentConfigurationRecommendation
/// <summary>
/// Describes the recommended monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method.</param>
///
/// <returns>The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
DescribeComponentConfigurationRecommendationResponse DescribeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeComponentConfigurationRecommendation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeComponentConfigurationRecommendation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
IAsyncResult BeginDescribeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeComponentConfigurationRecommendation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeComponentConfigurationRecommendation.</param>
///
/// <returns>Returns a DescribeComponentConfigurationRecommendationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
DescribeComponentConfigurationRecommendationResponse EndDescribeComponentConfigurationRecommendation(IAsyncResult asyncResult);
#endregion
#region DescribeLogPattern
/// <summary>
/// Describe a specific log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern service method.</param>
///
/// <returns>The response from the DescribeLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
DescribeLogPatternResponse DescribeLogPattern(DescribeLogPatternRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeLogPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLogPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
IAsyncResult BeginDescribeLogPattern(DescribeLogPatternRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeLogPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLogPattern.</param>
///
/// <returns>Returns a DescribeLogPatternResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
DescribeLogPatternResponse EndDescribeLogPattern(IAsyncResult asyncResult);
#endregion
#region DescribeObservation
/// <summary>
/// Describes an anomaly or error with the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation service method.</param>
///
/// <returns>The response from the DescribeObservation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
DescribeObservationResponse DescribeObservation(DescribeObservationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeObservation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeObservation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
IAsyncResult BeginDescribeObservation(DescribeObservationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeObservation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeObservation.</param>
///
/// <returns>Returns a DescribeObservationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
DescribeObservationResponse EndDescribeObservation(IAsyncResult asyncResult);
#endregion
#region DescribeProblem
/// <summary>
/// Describes an application problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem service method.</param>
///
/// <returns>The response from the DescribeProblem service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
DescribeProblemResponse DescribeProblem(DescribeProblemRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeProblem operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeProblem
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
IAsyncResult BeginDescribeProblem(DescribeProblemRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeProblem operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeProblem.</param>
///
/// <returns>Returns a DescribeProblemResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
DescribeProblemResponse EndDescribeProblem(IAsyncResult asyncResult);
#endregion
#region DescribeProblemObservations
/// <summary>
/// Describes the anomalies or errors associated with the problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations service method.</param>
///
/// <returns>The response from the DescribeProblemObservations service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
DescribeProblemObservationsResponse DescribeProblemObservations(DescribeProblemObservationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeProblemObservations operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeProblemObservations
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
IAsyncResult BeginDescribeProblemObservations(DescribeProblemObservationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeProblemObservations operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeProblemObservations.</param>
///
/// <returns>Returns a DescribeProblemObservationsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
DescribeProblemObservationsResponse EndDescribeProblemObservations(IAsyncResult asyncResult);
#endregion
#region ListApplications
/// <summary>
/// Lists the IDs of the applications that you are monitoring.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApplications service method.</param>
///
/// <returns>The response from the ListApplications service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
ListApplicationsResponse ListApplications(ListApplicationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListApplications operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListApplications operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListApplications
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
IAsyncResult BeginListApplications(ListApplicationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListApplications operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListApplications.</param>
///
/// <returns>Returns a ListApplicationsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
ListApplicationsResponse EndListApplications(IAsyncResult asyncResult);
#endregion
#region ListComponents
/// <summary>
/// Lists the auto-grouped, standalone, and custom components of the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
///
/// <returns>The response from the ListComponents service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
ListComponentsResponse ListComponents(ListComponentsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListComponents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListComponents operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListComponents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
IAsyncResult BeginListComponents(ListComponentsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListComponents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListComponents.</param>
///
/// <returns>Returns a ListComponentsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
ListComponentsResponse EndListComponents(IAsyncResult asyncResult);
#endregion
#region ListConfigurationHistory
/// <summary>
/// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed
/// by Application Insights. Examples of events represented are:
///
/// <ul> <li>
/// <para>
/// INFO: creating a new alarm or updating an alarm threshold.
/// </para>
/// </li> <li>
/// <para>
/// WARN: alarm not created due to insufficient data points used to predict thresholds.
/// </para>
/// </li> <li>
/// <para>
/// ERROR: alarm not created due to permission errors or exceeding quotas.
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory service method.</param>
///
/// <returns>The response from the ListConfigurationHistory service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
ListConfigurationHistoryResponse ListConfigurationHistory(ListConfigurationHistoryRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListConfigurationHistory operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListConfigurationHistory
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
IAsyncResult BeginListConfigurationHistory(ListConfigurationHistoryRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListConfigurationHistory operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListConfigurationHistory.</param>
///
/// <returns>Returns a ListConfigurationHistoryResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
ListConfigurationHistoryResponse EndListConfigurationHistory(IAsyncResult asyncResult);
#endregion
#region ListLogPatterns
/// <summary>
/// Lists the log patterns in the specific log <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns service method.</param>
///
/// <returns>The response from the ListLogPatterns service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
ListLogPatternsResponse ListLogPatterns(ListLogPatternsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListLogPatterns operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListLogPatterns
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
IAsyncResult BeginListLogPatterns(ListLogPatternsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListLogPatterns operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListLogPatterns.</param>
///
/// <returns>Returns a ListLogPatternsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
ListLogPatternsResponse EndListLogPatterns(IAsyncResult asyncResult);
#endregion
#region ListLogPatternSets
/// <summary>
/// Lists the log pattern sets in the specific application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets service method.</param>
///
/// <returns>The response from the ListLogPatternSets service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
ListLogPatternSetsResponse ListLogPatternSets(ListLogPatternSetsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListLogPatternSets operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListLogPatternSets
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
IAsyncResult BeginListLogPatternSets(ListLogPatternSetsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListLogPatternSets operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListLogPatternSets.</param>
///
/// <returns>Returns a ListLogPatternSetsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
ListLogPatternSetsResponse EndListLogPatternSets(IAsyncResult asyncResult);
#endregion
#region ListProblems
/// <summary>
/// Lists the problems with your application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListProblems service method.</param>
///
/// <returns>The response from the ListProblems service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
ListProblemsResponse ListProblems(ListProblemsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListProblems operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListProblems operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListProblems
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
IAsyncResult BeginListProblems(ListProblemsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListProblems operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListProblems.</param>
///
/// <returns>Returns a ListProblemsResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
ListProblemsResponse EndListProblems(IAsyncResult asyncResult);
#endregion
#region ListTagsForResource
/// <summary>
/// Retrieve a list of the tags (keys and values) that are associated with a specified
/// application. A <i>tag</i> is a label that you optionally define and associate with
/// an application. Each tag consists of a required <i>tag key</i> and an optional associated
/// <i>tag value</i>. A tag key is a general label that acts as a category for more specific
/// tag values. A tag value acts as a descriptor within a tag key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListTagsForResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param>
///
/// <returns>Returns a ListTagsForResourceResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult);
#endregion
#region TagResource
/// <summary>
/// Add one or more tags (keys and values) to a specified application. A <i>tag</i> is
/// a label that you optionally define and associate with an application. Tags can help
/// you categorize and manage application in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// more specific tag values. A tag value acts as a descriptor within a tag key.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TooManyTagsException">
/// The number of the provided tags is beyond the limit, or the number of total tags you
/// are trying to attach to the specified resource exceeds the limit.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the TagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param>
///
/// <returns>Returns a TagResourceResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse EndTagResource(IAsyncResult asyncResult);
#endregion
#region UntagResource
/// <summary>
/// Remove one or more tags (keys and values) from a specified application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UntagResource operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param>
///
/// <returns>Returns a UntagResourceResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse EndUntagResource(IAsyncResult asyncResult);
#endregion
#region UpdateApplication
/// <summary>
/// Updates the 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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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 AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState 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/application-insights-2018-11-25/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 ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
UpdateApplicationResponse EndUpdateApplication(IAsyncResult asyncResult);
#endregion
#region UpdateComponent
/// <summary>
/// Updates the custom component name and/or the list of resources that make up the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
///
/// <returns>The response from the UpdateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
UpdateComponentResponse UpdateComponent(UpdateComponentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
IAsyncResult BeginUpdateComponent(UpdateComponentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateComponent.</param>
///
/// <returns>Returns a UpdateComponentResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
UpdateComponentResponse EndUpdateComponent(IAsyncResult asyncResult);
#endregion
#region UpdateComponentConfiguration
/// <summary>
/// Updates the monitoring configurations for the component. The configuration input parameter
/// is an escaped JSON of the configuration and should match the schema of what is returned
/// by <code>DescribeComponentConfigurationRecommendation</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration service method.</param>
///
/// <returns>The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
UpdateComponentConfigurationResponse UpdateComponentConfiguration(UpdateComponentConfigurationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateComponentConfiguration operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateComponentConfiguration
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
IAsyncResult BeginUpdateComponentConfiguration(UpdateComponentConfigurationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateComponentConfiguration operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateComponentConfiguration.</param>
///
/// <returns>Returns a UpdateComponentConfigurationResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
UpdateComponentConfigurationResponse EndUpdateComponentConfiguration(IAsyncResult asyncResult);
#endregion
#region UpdateLogPattern
/// <summary>
/// Adds a log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern service method.</param>
///
/// <returns>The response from the UpdateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
UpdateLogPatternResponse UpdateLogPattern(UpdateLogPatternRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateLogPattern operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern operation on AmazonApplicationInsightsClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateLogPattern
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
IAsyncResult BeginUpdateLogPattern(UpdateLogPatternRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateLogPattern operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateLogPattern.</param>
///
/// <returns>Returns a UpdateLogPatternResult from ApplicationInsights.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
UpdateLogPatternResponse EndUpdateLogPattern(IAsyncResult asyncResult);
#endregion
}
} | 1,439 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.ApplicationInsights.Model;
using Amazon.ApplicationInsights.Model.Internal.MarshallTransformations;
using Amazon.ApplicationInsights.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Implementation for accessing ApplicationInsights
///
/// Amazon CloudWatch Application Insights
/// <para>
/// Amazon CloudWatch Application Insights is a service that helps you detect common
/// problems with your applications. It enables you to pinpoint the source of issues in
/// your applications (built with technologies such as Microsoft IIS, .NET, and Microsoft
/// SQL Server), by providing key insights into detected problems.
/// </para>
///
/// <para>
/// After you onboard your application, CloudWatch Application Insights identifies, recommends,
/// and sets up metrics and logs. It continuously analyzes and correlates your metrics
/// and logs for unusual behavior to surface actionable problems with your application.
/// For example, if your application is slow and unresponsive and leading to HTTP 500
/// errors in your Application Load Balancer (ALB), Application Insights informs you that
/// a memory pressure problem with your SQL Server database is occurring. It bases this
/// analysis on impactful metrics and log errors.
/// </para>
/// </summary>
public partial class AmazonApplicationInsightsClient : AmazonServiceClient, IAmazonApplicationInsights
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationInsightsMetadata();
private IApplicationInsightsPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationInsightsPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationInsightsPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationInsightsConfig()) { }
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationInsightsConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(AmazonApplicationInsightsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationInsightsClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationInsightsConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationInsightsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationInsightsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Credentials and an
/// AmazonApplicationInsightsClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(AWSCredentials credentials, AmazonApplicationInsightsConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationInsightsConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationInsightsConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationInsightsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationInsightsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationInsightsConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationInsightsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationInsightsConfig 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 AmazonApplicationInsightsEndpointResolver());
}
/// <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 CreateApplication
/// <summary>
/// Adds an application that is created from a resource group.
/// </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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.AccessDeniedException">
/// User does not have permissions to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TagsAlreadyExistException">
/// Tags are already registered for the specified application ARN.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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>
/// Adds an application that is created from a resource group.
/// </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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.AccessDeniedException">
/// User does not have permissions to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TagsAlreadyExistException">
/// Tags are already registered for the specified application ARN.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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 CreateComponent
/// <summary>
/// Creates a custom component by grouping similar standalone instances to monitor.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
///
/// <returns>The response from the CreateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual CreateComponentResponse CreateComponent(CreateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return Invoke<CreateComponentResponse>(request, options);
}
/// <summary>
/// Creates a custom component by grouping similar standalone instances to monitor.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual Task<CreateComponentResponse> CreateComponentAsync(CreateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return InvokeAsync<CreateComponentResponse>(request, options, cancellationToken);
}
#endregion
#region CreateLogPattern
/// <summary>
/// Adds an log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern service method.</param>
///
/// <returns>The response from the CreateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
public virtual CreateLogPatternResponse CreateLogPattern(CreateLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLogPatternResponseUnmarshaller.Instance;
return Invoke<CreateLogPatternResponse>(request, options);
}
/// <summary>
/// Adds an log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
public virtual Task<CreateLogPatternResponse> CreateLogPatternAsync(CreateLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLogPatternResponseUnmarshaller.Instance;
return InvokeAsync<CreateLogPatternResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteApplication
/// <summary>
/// Removes the specified application from monitoring. Does not delete the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication service method.</param>
///
/// <returns>The response from the DeleteApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
public virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;
return Invoke<DeleteApplicationResponse>(request, options);
}
/// <summary>
/// Removes the specified application from monitoring. Does not delete the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
public virtual Task<DeleteApplicationResponse> DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteComponent
/// <summary>
/// Ungroups a custom component. When you ungroup custom components, all applicable monitors
/// that are set up for the component are removed and the instances revert to their standalone
/// status.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
///
/// <returns>The response from the DeleteComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return Invoke<DeleteComponentResponse>(request, options);
}
/// <summary>
/// Ungroups a custom component. When you ungroup custom components, all applicable monitors
/// that are set up for the component are removed and the instances revert to their standalone
/// status.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual Task<DeleteComponentResponse> DeleteComponentAsync(DeleteComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return InvokeAsync<DeleteComponentResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteLogPattern
/// <summary>
/// Removes the specified log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern service method.</param>
///
/// <returns>The response from the DeleteLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
public virtual DeleteLogPatternResponse DeleteLogPattern(DeleteLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLogPatternResponseUnmarshaller.Instance;
return Invoke<DeleteLogPatternResponse>(request, options);
}
/// <summary>
/// Removes the specified log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
public virtual Task<DeleteLogPatternResponse> DeleteLogPatternAsync(DeleteLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLogPatternResponseUnmarshaller.Instance;
return InvokeAsync<DeleteLogPatternResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeApplication
/// <summary>
/// Describes the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication service method.</param>
///
/// <returns>The response from the DescribeApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
public virtual DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance;
return Invoke<DescribeApplicationResponse>(request, options);
}
/// <summary>
/// Describes the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
public virtual Task<DescribeApplicationResponse> DescribeApplicationAsync(DescribeApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeComponent
/// <summary>
/// Describes a component and lists the resources that are grouped together in a component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent service method.</param>
///
/// <returns>The response from the DescribeComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
public virtual DescribeComponentResponse DescribeComponent(DescribeComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentResponseUnmarshaller.Instance;
return Invoke<DescribeComponentResponse>(request, options);
}
/// <summary>
/// Describes a component and lists the resources that are grouped together in a component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
public virtual Task<DescribeComponentResponse> DescribeComponentAsync(DescribeComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentResponseUnmarshaller.Instance;
return InvokeAsync<DescribeComponentResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeComponentConfiguration
/// <summary>
/// Describes the monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration service method.</param>
///
/// <returns>The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
public virtual DescribeComponentConfigurationResponse DescribeComponentConfiguration(DescribeComponentConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance;
return Invoke<DescribeComponentConfigurationResponse>(request, options);
}
/// <summary>
/// Describes the monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
public virtual Task<DescribeComponentConfigurationResponse> DescribeComponentConfigurationAsync(DescribeComponentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeComponentConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeComponentConfigurationRecommendation
/// <summary>
/// Describes the recommended monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method.</param>
///
/// <returns>The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
public virtual DescribeComponentConfigurationRecommendationResponse DescribeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRecommendationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationRecommendationResponseUnmarshaller.Instance;
return Invoke<DescribeComponentConfigurationRecommendationResponse>(request, options);
}
/// <summary>
/// Describes the recommended monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
public virtual Task<DescribeComponentConfigurationRecommendationResponse> DescribeComponentConfigurationRecommendationAsync(DescribeComponentConfigurationRecommendationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRecommendationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationRecommendationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeComponentConfigurationRecommendationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeLogPattern
/// <summary>
/// Describe a specific log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern service method.</param>
///
/// <returns>The response from the DescribeLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
public virtual DescribeLogPatternResponse DescribeLogPattern(DescribeLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLogPatternResponseUnmarshaller.Instance;
return Invoke<DescribeLogPatternResponse>(request, options);
}
/// <summary>
/// Describe a specific log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
public virtual Task<DescribeLogPatternResponse> DescribeLogPatternAsync(DescribeLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLogPatternResponseUnmarshaller.Instance;
return InvokeAsync<DescribeLogPatternResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeObservation
/// <summary>
/// Describes an anomaly or error with the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation service method.</param>
///
/// <returns>The response from the DescribeObservation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
public virtual DescribeObservationResponse DescribeObservation(DescribeObservationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservationResponseUnmarshaller.Instance;
return Invoke<DescribeObservationResponse>(request, options);
}
/// <summary>
/// Describes an anomaly or error with the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeObservation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
public virtual Task<DescribeObservationResponse> DescribeObservationAsync(DescribeObservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeObservationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeProblem
/// <summary>
/// Describes an application problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem service method.</param>
///
/// <returns>The response from the DescribeProblem service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
public virtual DescribeProblemResponse DescribeProblem(DescribeProblemRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance;
return Invoke<DescribeProblemResponse>(request, options);
}
/// <summary>
/// Describes an application problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeProblem service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
public virtual Task<DescribeProblemResponse> DescribeProblemAsync(DescribeProblemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance;
return InvokeAsync<DescribeProblemResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeProblemObservations
/// <summary>
/// Describes the anomalies or errors associated with the problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations service method.</param>
///
/// <returns>The response from the DescribeProblemObservations service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
public virtual DescribeProblemObservationsResponse DescribeProblemObservations(DescribeProblemObservationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemObservationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemObservationsResponseUnmarshaller.Instance;
return Invoke<DescribeProblemObservationsResponse>(request, options);
}
/// <summary>
/// Describes the anomalies or errors associated with the problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeProblemObservations service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
public virtual Task<DescribeProblemObservationsResponse> DescribeProblemObservationsAsync(DescribeProblemObservationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemObservationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemObservationsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeProblemObservationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListApplications
/// <summary>
/// Lists the IDs of the applications that you are monitoring.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApplications service method.</param>
///
/// <returns>The response from the ListApplications service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
public virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return Invoke<ListApplicationsResponse>(request, options);
}
/// <summary>
/// Lists the IDs of the applications that you are monitoring.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApplications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListApplications service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
public virtual Task<ListApplicationsResponse> ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return InvokeAsync<ListApplicationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListComponents
/// <summary>
/// Lists the auto-grouped, standalone, and custom components of the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
///
/// <returns>The response from the ListComponents service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual ListComponentsResponse ListComponents(ListComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return Invoke<ListComponentsResponse>(request, options);
}
/// <summary>
/// Lists the auto-grouped, standalone, and custom components of the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListComponents service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual Task<ListComponentsResponse> ListComponentsAsync(ListComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return InvokeAsync<ListComponentsResponse>(request, options, cancellationToken);
}
#endregion
#region ListConfigurationHistory
/// <summary>
/// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed
/// by Application Insights. Examples of events represented are:
///
/// <ul> <li>
/// <para>
/// INFO: creating a new alarm or updating an alarm threshold.
/// </para>
/// </li> <li>
/// <para>
/// WARN: alarm not created due to insufficient data points used to predict thresholds.
/// </para>
/// </li> <li>
/// <para>
/// ERROR: alarm not created due to permission errors or exceeding quotas.
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory service method.</param>
///
/// <returns>The response from the ListConfigurationHistory service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
public virtual ListConfigurationHistoryResponse ListConfigurationHistory(ListConfigurationHistoryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationHistoryResponseUnmarshaller.Instance;
return Invoke<ListConfigurationHistoryResponse>(request, options);
}
/// <summary>
/// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed
/// by Application Insights. Examples of events represented are:
///
/// <ul> <li>
/// <para>
/// INFO: creating a new alarm or updating an alarm threshold.
/// </para>
/// </li> <li>
/// <para>
/// WARN: alarm not created due to insufficient data points used to predict thresholds.
/// </para>
/// </li> <li>
/// <para>
/// ERROR: alarm not created due to permission errors or exceeding quotas.
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConfigurationHistory service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
public virtual Task<ListConfigurationHistoryResponse> ListConfigurationHistoryAsync(ListConfigurationHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationHistoryResponseUnmarshaller.Instance;
return InvokeAsync<ListConfigurationHistoryResponse>(request, options, cancellationToken);
}
#endregion
#region ListLogPatterns
/// <summary>
/// Lists the log patterns in the specific log <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns service method.</param>
///
/// <returns>The response from the ListLogPatterns service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
public virtual ListLogPatternsResponse ListLogPatterns(ListLogPatternsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternsResponseUnmarshaller.Instance;
return Invoke<ListLogPatternsResponse>(request, options);
}
/// <summary>
/// Lists the log patterns in the specific log <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListLogPatterns service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
public virtual Task<ListLogPatternsResponse> ListLogPatternsAsync(ListLogPatternsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternsResponseUnmarshaller.Instance;
return InvokeAsync<ListLogPatternsResponse>(request, options, cancellationToken);
}
#endregion
#region ListLogPatternSets
/// <summary>
/// Lists the log pattern sets in the specific application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets service method.</param>
///
/// <returns>The response from the ListLogPatternSets service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
public virtual ListLogPatternSetsResponse ListLogPatternSets(ListLogPatternSetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternSetsResponseUnmarshaller.Instance;
return Invoke<ListLogPatternSetsResponse>(request, options);
}
/// <summary>
/// Lists the log pattern sets in the specific application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListLogPatternSets service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
public virtual Task<ListLogPatternSetsResponse> ListLogPatternSetsAsync(ListLogPatternSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternSetsResponseUnmarshaller.Instance;
return InvokeAsync<ListLogPatternSetsResponse>(request, options, cancellationToken);
}
#endregion
#region ListProblems
/// <summary>
/// Lists the problems with your application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListProblems service method.</param>
///
/// <returns>The response from the ListProblems service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
public virtual ListProblemsResponse ListProblems(ListProblemsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProblemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProblemsResponseUnmarshaller.Instance;
return Invoke<ListProblemsResponse>(request, options);
}
/// <summary>
/// Lists the problems with your application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListProblems service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListProblems service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
public virtual Task<ListProblemsResponse> ListProblemsAsync(ListProblemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProblemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProblemsResponseUnmarshaller.Instance;
return InvokeAsync<ListProblemsResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
/// <summary>
/// Retrieve a list of the tags (keys and values) that are associated with a specified
/// application. A <i>tag</i> is a label that you optionally define and associate with
/// an application. Each tag consists of a required <i>tag key</i> and an optional associated
/// <i>tag value</i>. A tag key is a general label that acts as a category for more specific
/// tag values. A tag value acts as a descriptor within a tag key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// Retrieve a list of the tags (keys and values) that are associated with a specified
/// application. A <i>tag</i> is a label that you optionally define and associate with
/// an application. Each tag consists of a required <i>tag key</i> and an optional associated
/// <i>tag value</i>. A tag key is a general label that acts as a category for more specific
/// tag values. A tag value acts as a descriptor within a tag key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#endregion
#region TagResource
/// <summary>
/// Add one or more tags (keys and values) to a specified application. A <i>tag</i> is
/// a label that you optionally define and associate with an application. Tags can help
/// you categorize and manage application in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// more specific tag values. A tag value acts as a descriptor within a tag key.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TooManyTagsException">
/// The number of the provided tags is beyond the limit, or the number of total tags you
/// are trying to attach to the specified resource exceeds the limit.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Add one or more tags (keys and values) to a specified application. A <i>tag</i> is
/// a label that you optionally define and associate with an application. Tags can help
/// you categorize and manage application in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// more specific tag values. A tag value acts as a descriptor within a tag key.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TooManyTagsException">
/// The number of the provided tags is beyond the limit, or the number of total tags you
/// are trying to attach to the specified resource exceeds the limit.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
/// <summary>
/// Remove one or more tags (keys and values) from a specified application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Remove one or more tags (keys and values) from a specified application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateApplication
/// <summary>
/// Updates the 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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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 the 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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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
#region UpdateComponent
/// <summary>
/// Updates the custom component name and/or the list of resources that make up the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
///
/// <returns>The response from the UpdateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return Invoke<UpdateComponentResponse>(request, options);
}
/// <summary>
/// Updates the custom component name and/or the list of resources that make up the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual Task<UpdateComponentResponse> UpdateComponentAsync(UpdateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return InvokeAsync<UpdateComponentResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateComponentConfiguration
/// <summary>
/// Updates the monitoring configurations for the component. The configuration input parameter
/// is an escaped JSON of the configuration and should match the schema of what is returned
/// by <code>DescribeComponentConfigurationRecommendation</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration service method.</param>
///
/// <returns>The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
public virtual UpdateComponentConfigurationResponse UpdateComponentConfiguration(UpdateComponentConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance;
return Invoke<UpdateComponentConfigurationResponse>(request, options);
}
/// <summary>
/// Updates the monitoring configurations for the component. The configuration input parameter
/// is an escaped JSON of the configuration and should match the schema of what is returned
/// by <code>DescribeComponentConfigurationRecommendation</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
public virtual Task<UpdateComponentConfigurationResponse> UpdateComponentConfigurationAsync(UpdateComponentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateComponentConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateLogPattern
/// <summary>
/// Adds a log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern service method.</param>
///
/// <returns>The response from the UpdateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
public virtual UpdateLogPatternResponse UpdateLogPattern(UpdateLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance;
return Invoke<UpdateLogPatternResponse>(request, options);
}
/// <summary>
/// Adds a log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
public virtual Task<UpdateLogPatternResponse> UpdateLogPatternAsync(UpdateLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance;
return InvokeAsync<UpdateLogPatternResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,980 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApplicationInsights.Model;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Interface for accessing ApplicationInsights
///
/// Amazon CloudWatch Application Insights
/// <para>
/// Amazon CloudWatch Application Insights is a service that helps you detect common
/// problems with your applications. It enables you to pinpoint the source of issues in
/// your applications (built with technologies such as Microsoft IIS, .NET, and Microsoft
/// SQL Server), by providing key insights into detected problems.
/// </para>
///
/// <para>
/// After you onboard your application, CloudWatch Application Insights identifies, recommends,
/// and sets up metrics and logs. It continuously analyzes and correlates your metrics
/// and logs for unusual behavior to surface actionable problems with your application.
/// For example, if your application is slow and unresponsive and leading to HTTP 500
/// errors in your Application Load Balancer (ALB), Application Insights informs you that
/// a memory pressure problem with your SQL Server database is occurring. It bases this
/// analysis on impactful metrics and log errors.
/// </para>
/// </summary>
public partial interface IAmazonApplicationInsights : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationInsightsPaginatorFactory Paginators { get; }
#region CreateApplication
/// <summary>
/// Adds an application that is created from a resource group.
/// </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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.AccessDeniedException">
/// User does not have permissions to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TagsAlreadyExistException">
/// Tags are already registered for the specified application ARN.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
CreateApplicationResponse CreateApplication(CreateApplicationRequest request);
/// <summary>
/// Adds an application that is created from a resource group.
/// </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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.AccessDeniedException">
/// User does not have permissions to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TagsAlreadyExistException">
/// Tags are already registered for the specified application ARN.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
Task<CreateApplicationResponse> CreateApplicationAsync(CreateApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateComponent
/// <summary>
/// Creates a custom component by grouping similar standalone instances to monitor.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
///
/// <returns>The response from the CreateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
CreateComponentResponse CreateComponent(CreateComponentRequest request);
/// <summary>
/// Creates a custom component by grouping similar standalone instances to monitor.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
Task<CreateComponentResponse> CreateComponentAsync(CreateComponentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateLogPattern
/// <summary>
/// Adds an log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern service method.</param>
///
/// <returns>The response from the CreateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
CreateLogPatternResponse CreateLogPattern(CreateLogPatternRequest request);
/// <summary>
/// Adds an log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
Task<CreateLogPatternResponse> CreateLogPatternAsync(CreateLogPatternRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteApplication
/// <summary>
/// Removes the specified application from monitoring. Does not delete the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication service method.</param>
///
/// <returns>The response from the DeleteApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request);
/// <summary>
/// Removes the specified application from monitoring. Does not delete the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
Task<DeleteApplicationResponse> DeleteApplicationAsync(DeleteApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteComponent
/// <summary>
/// Ungroups a custom component. When you ungroup custom components, all applicable monitors
/// that are set up for the component are removed and the instances revert to their standalone
/// status.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
///
/// <returns>The response from the DeleteComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
DeleteComponentResponse DeleteComponent(DeleteComponentRequest request);
/// <summary>
/// Ungroups a custom component. When you ungroup custom components, all applicable monitors
/// that are set up for the component are removed and the instances revert to their standalone
/// status.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
Task<DeleteComponentResponse> DeleteComponentAsync(DeleteComponentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteLogPattern
/// <summary>
/// Removes the specified log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern service method.</param>
///
/// <returns>The response from the DeleteLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
DeleteLogPatternResponse DeleteLogPattern(DeleteLogPatternRequest request);
/// <summary>
/// Removes the specified log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
Task<DeleteLogPatternResponse> DeleteLogPatternAsync(DeleteLogPatternRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeApplication
/// <summary>
/// Describes the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication service method.</param>
///
/// <returns>The response from the DescribeApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request);
/// <summary>
/// Describes the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
Task<DescribeApplicationResponse> DescribeApplicationAsync(DescribeApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeComponent
/// <summary>
/// Describes a component and lists the resources that are grouped together in a component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent service method.</param>
///
/// <returns>The response from the DescribeComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
DescribeComponentResponse DescribeComponent(DescribeComponentRequest request);
/// <summary>
/// Describes a component and lists the resources that are grouped together in a component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
Task<DescribeComponentResponse> DescribeComponentAsync(DescribeComponentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeComponentConfiguration
/// <summary>
/// Describes the monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration service method.</param>
///
/// <returns>The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
DescribeComponentConfigurationResponse DescribeComponentConfiguration(DescribeComponentConfigurationRequest request);
/// <summary>
/// Describes the monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
Task<DescribeComponentConfigurationResponse> DescribeComponentConfigurationAsync(DescribeComponentConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeComponentConfigurationRecommendation
/// <summary>
/// Describes the recommended monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method.</param>
///
/// <returns>The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
DescribeComponentConfigurationRecommendationResponse DescribeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request);
/// <summary>
/// Describes the recommended monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
Task<DescribeComponentConfigurationRecommendationResponse> DescribeComponentConfigurationRecommendationAsync(DescribeComponentConfigurationRecommendationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeLogPattern
/// <summary>
/// Describe a specific log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern service method.</param>
///
/// <returns>The response from the DescribeLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
DescribeLogPatternResponse DescribeLogPattern(DescribeLogPatternRequest request);
/// <summary>
/// Describe a specific log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
Task<DescribeLogPatternResponse> DescribeLogPatternAsync(DescribeLogPatternRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeObservation
/// <summary>
/// Describes an anomaly or error with the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation service method.</param>
///
/// <returns>The response from the DescribeObservation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
DescribeObservationResponse DescribeObservation(DescribeObservationRequest request);
/// <summary>
/// Describes an anomaly or error with the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeObservation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
Task<DescribeObservationResponse> DescribeObservationAsync(DescribeObservationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeProblem
/// <summary>
/// Describes an application problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem service method.</param>
///
/// <returns>The response from the DescribeProblem service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
DescribeProblemResponse DescribeProblem(DescribeProblemRequest request);
/// <summary>
/// Describes an application problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeProblem service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
Task<DescribeProblemResponse> DescribeProblemAsync(DescribeProblemRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeProblemObservations
/// <summary>
/// Describes the anomalies or errors associated with the problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations service method.</param>
///
/// <returns>The response from the DescribeProblemObservations service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
DescribeProblemObservationsResponse DescribeProblemObservations(DescribeProblemObservationsRequest request);
/// <summary>
/// Describes the anomalies or errors associated with the problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeProblemObservations service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
Task<DescribeProblemObservationsResponse> DescribeProblemObservationsAsync(DescribeProblemObservationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListApplications
/// <summary>
/// Lists the IDs of the applications that you are monitoring.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApplications service method.</param>
///
/// <returns>The response from the ListApplications service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
ListApplicationsResponse ListApplications(ListApplicationsRequest request);
/// <summary>
/// Lists the IDs of the applications that you are monitoring.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApplications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListApplications service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
Task<ListApplicationsResponse> ListApplicationsAsync(ListApplicationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListComponents
/// <summary>
/// Lists the auto-grouped, standalone, and custom components of the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
///
/// <returns>The response from the ListComponents service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
ListComponentsResponse ListComponents(ListComponentsRequest request);
/// <summary>
/// Lists the auto-grouped, standalone, and custom components of the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListComponents service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
Task<ListComponentsResponse> ListComponentsAsync(ListComponentsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListConfigurationHistory
/// <summary>
/// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed
/// by Application Insights. Examples of events represented are:
///
/// <ul> <li>
/// <para>
/// INFO: creating a new alarm or updating an alarm threshold.
/// </para>
/// </li> <li>
/// <para>
/// WARN: alarm not created due to insufficient data points used to predict thresholds.
/// </para>
/// </li> <li>
/// <para>
/// ERROR: alarm not created due to permission errors or exceeding quotas.
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory service method.</param>
///
/// <returns>The response from the ListConfigurationHistory service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
ListConfigurationHistoryResponse ListConfigurationHistory(ListConfigurationHistoryRequest request);
/// <summary>
/// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed
/// by Application Insights. Examples of events represented are:
///
/// <ul> <li>
/// <para>
/// INFO: creating a new alarm or updating an alarm threshold.
/// </para>
/// </li> <li>
/// <para>
/// WARN: alarm not created due to insufficient data points used to predict thresholds.
/// </para>
/// </li> <li>
/// <para>
/// ERROR: alarm not created due to permission errors or exceeding quotas.
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConfigurationHistory service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
Task<ListConfigurationHistoryResponse> ListConfigurationHistoryAsync(ListConfigurationHistoryRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListLogPatterns
/// <summary>
/// Lists the log patterns in the specific log <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns service method.</param>
///
/// <returns>The response from the ListLogPatterns service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
ListLogPatternsResponse ListLogPatterns(ListLogPatternsRequest request);
/// <summary>
/// Lists the log patterns in the specific log <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListLogPatterns service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
Task<ListLogPatternsResponse> ListLogPatternsAsync(ListLogPatternsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListLogPatternSets
/// <summary>
/// Lists the log pattern sets in the specific application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets service method.</param>
///
/// <returns>The response from the ListLogPatternSets service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
ListLogPatternSetsResponse ListLogPatternSets(ListLogPatternSetsRequest request);
/// <summary>
/// Lists the log pattern sets in the specific application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListLogPatternSets service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
Task<ListLogPatternSetsResponse> ListLogPatternSetsAsync(ListLogPatternSetsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListProblems
/// <summary>
/// Lists the problems with your application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListProblems service method.</param>
///
/// <returns>The response from the ListProblems service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
ListProblemsResponse ListProblems(ListProblemsRequest request);
/// <summary>
/// Lists the problems with your application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListProblems service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListProblems service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
Task<ListProblemsResponse> ListProblemsAsync(ListProblemsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
/// <summary>
/// Retrieve a list of the tags (keys and values) that are associated with a specified
/// application. A <i>tag</i> is a label that you optionally define and associate with
/// an application. Each tag consists of a required <i>tag key</i> and an optional associated
/// <i>tag value</i>. A tag key is a general label that acts as a category for more specific
/// tag values. A tag value acts as a descriptor within a tag key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <summary>
/// Retrieve a list of the tags (keys and values) that are associated with a specified
/// application. A <i>tag</i> is a label that you optionally define and associate with
/// an application. Each tag consists of a required <i>tag key</i> and an optional associated
/// <i>tag value</i>. A tag key is a general label that acts as a category for more specific
/// tag values. A tag value acts as a descriptor within a tag key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
/// <summary>
/// Add one or more tags (keys and values) to a specified application. A <i>tag</i> is
/// a label that you optionally define and associate with an application. Tags can help
/// you categorize and manage application in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// more specific tag values. A tag value acts as a descriptor within a tag key.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TooManyTagsException">
/// The number of the provided tags is beyond the limit, or the number of total tags you
/// are trying to attach to the specified resource exceeds the limit.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// Add one or more tags (keys and values) to a specified application. A <i>tag</i> is
/// a label that you optionally define and associate with an application. Tags can help
/// you categorize and manage application in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// more specific tag values. A tag value acts as a descriptor within a tag key.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TooManyTagsException">
/// The number of the provided tags is beyond the limit, or the number of total tags you
/// are trying to attach to the specified resource exceeds the limit.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
/// <summary>
/// Remove one or more tags (keys and values) from a specified application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// Remove one or more tags (keys and values) from a specified application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateApplication
/// <summary>
/// Updates the 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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request);
/// <summary>
/// Updates the 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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
Task<UpdateApplicationResponse> UpdateApplicationAsync(UpdateApplicationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateComponent
/// <summary>
/// Updates the custom component name and/or the list of resources that make up the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
///
/// <returns>The response from the UpdateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
UpdateComponentResponse UpdateComponent(UpdateComponentRequest request);
/// <summary>
/// Updates the custom component name and/or the list of resources that make up the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
Task<UpdateComponentResponse> UpdateComponentAsync(UpdateComponentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateComponentConfiguration
/// <summary>
/// Updates the monitoring configurations for the component. The configuration input parameter
/// is an escaped JSON of the configuration and should match the schema of what is returned
/// by <code>DescribeComponentConfigurationRecommendation</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration service method.</param>
///
/// <returns>The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
UpdateComponentConfigurationResponse UpdateComponentConfiguration(UpdateComponentConfigurationRequest request);
/// <summary>
/// Updates the monitoring configurations for the component. The configuration input parameter
/// is an escaped JSON of the configuration and should match the schema of what is returned
/// by <code>DescribeComponentConfigurationRecommendation</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
Task<UpdateComponentConfigurationResponse> UpdateComponentConfigurationAsync(UpdateComponentConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateLogPattern
/// <summary>
/// Adds a log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern service method.</param>
///
/// <returns>The response from the UpdateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
UpdateLogPatternResponse UpdateLogPattern(UpdateLogPatternRequest request);
/// <summary>
/// Adds a log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
Task<UpdateLogPatternResponse> UpdateLogPatternAsync(UpdateLogPatternRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 1,408 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.ApplicationInsights.Model;
using Amazon.ApplicationInsights.Model.Internal.MarshallTransformations;
using Amazon.ApplicationInsights.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Implementation for accessing ApplicationInsights
///
/// Amazon CloudWatch Application Insights
/// <para>
/// Amazon CloudWatch Application Insights is a service that helps you detect common
/// problems with your applications. It enables you to pinpoint the source of issues in
/// your applications (built with technologies such as Microsoft IIS, .NET, and Microsoft
/// SQL Server), by providing key insights into detected problems.
/// </para>
///
/// <para>
/// After you onboard your application, CloudWatch Application Insights identifies, recommends,
/// and sets up metrics and logs. It continuously analyzes and correlates your metrics
/// and logs for unusual behavior to surface actionable problems with your application.
/// For example, if your application is slow and unresponsive and leading to HTTP 500
/// errors in your Application Load Balancer (ALB), Application Insights informs you that
/// a memory pressure problem with your SQL Server database is occurring. It bases this
/// analysis on impactful metrics and log errors.
/// </para>
/// </summary>
public partial class AmazonApplicationInsightsClient : AmazonServiceClient, IAmazonApplicationInsights
{
private static IServiceMetadata serviceMetadata = new AmazonApplicationInsightsMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationInsightsConfig()) { }
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationInsightsConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(AmazonApplicationInsightsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonApplicationInsightsClient(AWSCredentials credentials)
: this(credentials, new AmazonApplicationInsightsConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonApplicationInsightsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonApplicationInsightsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Credentials and an
/// AmazonApplicationInsightsClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(AWSCredentials credentials, AmazonApplicationInsightsConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationInsightsConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationInsightsConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationInsightsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationInsightsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationInsightsConfig())
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationInsightsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonApplicationInsightsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient Configuration Object</param>
public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationInsightsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IApplicationInsightsPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IApplicationInsightsPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ApplicationInsightsPaginatorFactory(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 AmazonApplicationInsightsEndpointResolver());
}
/// <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 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>
/// Adds an application that is created from a resource group.
/// </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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.AccessDeniedException">
/// User does not have permissions to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TagsAlreadyExistException">
/// Tags are already registered for the specified application ARN.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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 CreateComponent
internal virtual CreateComponentResponse CreateComponent(CreateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return Invoke<CreateComponentResponse>(request, options);
}
/// <summary>
/// Creates a custom component by grouping similar standalone instances to monitor.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual Task<CreateComponentResponse> CreateComponentAsync(CreateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return InvokeAsync<CreateComponentResponse>(request, options, cancellationToken);
}
#endregion
#region CreateLogPattern
internal virtual CreateLogPatternResponse CreateLogPattern(CreateLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLogPatternResponseUnmarshaller.Instance;
return Invoke<CreateLogPatternResponse>(request, options);
}
/// <summary>
/// Adds an log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
public virtual Task<CreateLogPatternResponse> CreateLogPatternAsync(CreateLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateLogPatternResponseUnmarshaller.Instance;
return InvokeAsync<CreateLogPatternResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteApplication
internal virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;
return Invoke<DeleteApplicationResponse>(request, options);
}
/// <summary>
/// Removes the specified application from monitoring. Does not delete the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
public virtual Task<DeleteApplicationResponse> DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;
return InvokeAsync<DeleteApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteComponent
internal virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return Invoke<DeleteComponentResponse>(request, options);
}
/// <summary>
/// Ungroups a custom component. When you ungroup custom components, all applicable monitors
/// that are set up for the component are removed and the instances revert to their standalone
/// status.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual Task<DeleteComponentResponse> DeleteComponentAsync(DeleteComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return InvokeAsync<DeleteComponentResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteLogPattern
internal virtual DeleteLogPatternResponse DeleteLogPattern(DeleteLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLogPatternResponseUnmarshaller.Instance;
return Invoke<DeleteLogPatternResponse>(request, options);
}
/// <summary>
/// Removes the specified log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
public virtual Task<DeleteLogPatternResponse> DeleteLogPatternAsync(DeleteLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLogPatternResponseUnmarshaller.Instance;
return InvokeAsync<DeleteLogPatternResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeApplication
internal virtual DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance;
return Invoke<DescribeApplicationResponse>(request, options);
}
/// <summary>
/// Describes the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
public virtual Task<DescribeApplicationResponse> DescribeApplicationAsync(DescribeApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeApplicationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeComponent
internal virtual DescribeComponentResponse DescribeComponent(DescribeComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentResponseUnmarshaller.Instance;
return Invoke<DescribeComponentResponse>(request, options);
}
/// <summary>
/// Describes a component and lists the resources that are grouped together in a component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
public virtual Task<DescribeComponentResponse> DescribeComponentAsync(DescribeComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentResponseUnmarshaller.Instance;
return InvokeAsync<DescribeComponentResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeComponentConfiguration
internal virtual DescribeComponentConfigurationResponse DescribeComponentConfiguration(DescribeComponentConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance;
return Invoke<DescribeComponentConfigurationResponse>(request, options);
}
/// <summary>
/// Describes the monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
public virtual Task<DescribeComponentConfigurationResponse> DescribeComponentConfigurationAsync(DescribeComponentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeComponentConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeComponentConfigurationRecommendation
internal virtual DescribeComponentConfigurationRecommendationResponse DescribeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRecommendationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationRecommendationResponseUnmarshaller.Instance;
return Invoke<DescribeComponentConfigurationRecommendationResponse>(request, options);
}
/// <summary>
/// Describes the recommended monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
public virtual Task<DescribeComponentConfigurationRecommendationResponse> DescribeComponentConfigurationRecommendationAsync(DescribeComponentConfigurationRecommendationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeComponentConfigurationRecommendationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeComponentConfigurationRecommendationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeComponentConfigurationRecommendationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeLogPattern
internal virtual DescribeLogPatternResponse DescribeLogPattern(DescribeLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLogPatternResponseUnmarshaller.Instance;
return Invoke<DescribeLogPatternResponse>(request, options);
}
/// <summary>
/// Describe a specific log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
public virtual Task<DescribeLogPatternResponse> DescribeLogPatternAsync(DescribeLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeLogPatternResponseUnmarshaller.Instance;
return InvokeAsync<DescribeLogPatternResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeObservation
internal virtual DescribeObservationResponse DescribeObservation(DescribeObservationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservationResponseUnmarshaller.Instance;
return Invoke<DescribeObservationResponse>(request, options);
}
/// <summary>
/// Describes an anomaly or error with the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeObservation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
public virtual Task<DescribeObservationResponse> DescribeObservationAsync(DescribeObservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeObservationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeObservationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeObservationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeProblem
internal virtual DescribeProblemResponse DescribeProblem(DescribeProblemRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance;
return Invoke<DescribeProblemResponse>(request, options);
}
/// <summary>
/// Describes an application problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeProblem service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
public virtual Task<DescribeProblemResponse> DescribeProblemAsync(DescribeProblemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance;
return InvokeAsync<DescribeProblemResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeProblemObservations
internal virtual DescribeProblemObservationsResponse DescribeProblemObservations(DescribeProblemObservationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemObservationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemObservationsResponseUnmarshaller.Instance;
return Invoke<DescribeProblemObservationsResponse>(request, options);
}
/// <summary>
/// Describes the anomalies or errors associated with the problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeProblemObservations service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
public virtual Task<DescribeProblemObservationsResponse> DescribeProblemObservationsAsync(DescribeProblemObservationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProblemObservationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProblemObservationsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeProblemObservationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListApplications
internal virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return Invoke<ListApplicationsResponse>(request, options);
}
/// <summary>
/// Lists the IDs of the applications that you are monitoring.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApplications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListApplications service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
public virtual Task<ListApplicationsResponse> ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return InvokeAsync<ListApplicationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListComponents
internal virtual ListComponentsResponse ListComponents(ListComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return Invoke<ListComponentsResponse>(request, options);
}
/// <summary>
/// Lists the auto-grouped, standalone, and custom components of the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListComponents service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual Task<ListComponentsResponse> ListComponentsAsync(ListComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return InvokeAsync<ListComponentsResponse>(request, options, cancellationToken);
}
#endregion
#region ListConfigurationHistory
internal virtual ListConfigurationHistoryResponse ListConfigurationHistory(ListConfigurationHistoryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationHistoryResponseUnmarshaller.Instance;
return Invoke<ListConfigurationHistoryResponse>(request, options);
}
/// <summary>
/// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed
/// by Application Insights. Examples of events represented are:
///
/// <ul> <li>
/// <para>
/// INFO: creating a new alarm or updating an alarm threshold.
/// </para>
/// </li> <li>
/// <para>
/// WARN: alarm not created due to insufficient data points used to predict thresholds.
/// </para>
/// </li> <li>
/// <para>
/// ERROR: alarm not created due to permission errors or exceeding quotas.
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConfigurationHistory service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
public virtual Task<ListConfigurationHistoryResponse> ListConfigurationHistoryAsync(ListConfigurationHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListConfigurationHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListConfigurationHistoryResponseUnmarshaller.Instance;
return InvokeAsync<ListConfigurationHistoryResponse>(request, options, cancellationToken);
}
#endregion
#region ListLogPatterns
internal virtual ListLogPatternsResponse ListLogPatterns(ListLogPatternsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternsResponseUnmarshaller.Instance;
return Invoke<ListLogPatternsResponse>(request, options);
}
/// <summary>
/// Lists the log patterns in the specific log <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListLogPatterns service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
public virtual Task<ListLogPatternsResponse> ListLogPatternsAsync(ListLogPatternsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternsResponseUnmarshaller.Instance;
return InvokeAsync<ListLogPatternsResponse>(request, options, cancellationToken);
}
#endregion
#region ListLogPatternSets
internal virtual ListLogPatternSetsResponse ListLogPatternSets(ListLogPatternSetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternSetsResponseUnmarshaller.Instance;
return Invoke<ListLogPatternSetsResponse>(request, options);
}
/// <summary>
/// Lists the log pattern sets in the specific application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListLogPatternSets service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
public virtual Task<ListLogPatternSetsResponse> ListLogPatternSetsAsync(ListLogPatternSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLogPatternSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLogPatternSetsResponseUnmarshaller.Instance;
return InvokeAsync<ListLogPatternSetsResponse>(request, options, cancellationToken);
}
#endregion
#region ListProblems
internal virtual ListProblemsResponse ListProblems(ListProblemsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProblemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProblemsResponseUnmarshaller.Instance;
return Invoke<ListProblemsResponse>(request, options);
}
/// <summary>
/// Lists the problems with your application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListProblems service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListProblems service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
public virtual Task<ListProblemsResponse> ListProblemsAsync(ListProblemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProblemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProblemsResponseUnmarshaller.Instance;
return InvokeAsync<ListProblemsResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <summary>
/// Retrieve a list of the tags (keys and values) that are associated with a specified
/// application. A <i>tag</i> is a label that you optionally define and associate with
/// an application. Each tag consists of a required <i>tag key</i> and an optional associated
/// <i>tag value</i>. A tag key is a general label that acts as a category for more specific
/// tag values. A tag value acts as a descriptor within a tag key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Add one or more tags (keys and values) to a specified application. A <i>tag</i> is
/// a label that you optionally define and associate with an application. Tags can help
/// you categorize and manage application in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// more specific tag values. A tag value acts as a descriptor within a tag key.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TooManyTagsException">
/// The number of the provided tags is beyond the limit, or the number of total tags you
/// are trying to attach to the specified resource exceeds the limit.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Remove one or more tags (keys and values) from a specified application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region 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 the 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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/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
#region UpdateComponent
internal virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return Invoke<UpdateComponentResponse>(request, options);
}
/// <summary>
/// Updates the custom component name and/or the list of resources that make up the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual Task<UpdateComponentResponse> UpdateComponentAsync(UpdateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return InvokeAsync<UpdateComponentResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateComponentConfiguration
internal virtual UpdateComponentConfigurationResponse UpdateComponentConfiguration(UpdateComponentConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance;
return Invoke<UpdateComponentConfigurationResponse>(request, options);
}
/// <summary>
/// Updates the monitoring configurations for the component. The configuration input parameter
/// is an escaped JSON of the configuration and should match the schema of what is returned
/// by <code>DescribeComponentConfigurationRecommendation</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
public virtual Task<UpdateComponentConfigurationResponse> UpdateComponentConfigurationAsync(UpdateComponentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance;
return InvokeAsync<UpdateComponentConfigurationResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateLogPattern
internal virtual UpdateLogPatternResponse UpdateLogPattern(UpdateLogPatternRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance;
return Invoke<UpdateLogPatternResponse>(request, options);
}
/// <summary>
/// Adds a log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
public virtual Task<UpdateLogPatternResponse> UpdateLogPatternAsync(UpdateLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance;
return InvokeAsync<UpdateLogPatternResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,500 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ApplicationInsights.Model;
namespace Amazon.ApplicationInsights
{
/// <summary>
/// Interface for accessing ApplicationInsights
///
/// Amazon CloudWatch Application Insights
/// <para>
/// Amazon CloudWatch Application Insights is a service that helps you detect common
/// problems with your applications. It enables you to pinpoint the source of issues in
/// your applications (built with technologies such as Microsoft IIS, .NET, and Microsoft
/// SQL Server), by providing key insights into detected problems.
/// </para>
///
/// <para>
/// After you onboard your application, CloudWatch Application Insights identifies, recommends,
/// and sets up metrics and logs. It continuously analyzes and correlates your metrics
/// and logs for unusual behavior to surface actionable problems with your application.
/// For example, if your application is slow and unresponsive and leading to HTTP 500
/// errors in your Application Load Balancer (ALB), Application Insights informs you that
/// a memory pressure problem with your SQL Server database is occurring. It bases this
/// analysis on impactful metrics and log errors.
/// </para>
/// </summary>
public partial interface IAmazonApplicationInsights : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IApplicationInsightsPaginatorFactory Paginators { get; }
#endif
#region CreateApplication
/// <summary>
/// Adds an application that is created from a resource group.
/// </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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.AccessDeniedException">
/// User does not have permissions to perform this action.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TagsAlreadyExistException">
/// Tags are already registered for the specified application ARN.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateApplication">REST API Reference for CreateApplication Operation</seealso>
Task<CreateApplicationResponse> CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateComponent
/// <summary>
/// Creates a custom component by grouping similar standalone instances to monitor.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
Task<CreateComponentResponse> CreateComponentAsync(CreateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateLogPattern
/// <summary>
/// Adds an log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern">REST API Reference for CreateLogPattern Operation</seealso>
Task<CreateLogPatternResponse> CreateLogPatternAsync(CreateLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteApplication
/// <summary>
/// Removes the specified application from monitoring. Does not delete the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso>
Task<DeleteApplicationResponse> DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteComponent
/// <summary>
/// Ungroups a custom component. When you ungroup custom components, all applicable monitors
/// that are set up for the component are removed and the instances revert to their standalone
/// status.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
Task<DeleteComponentResponse> DeleteComponentAsync(DeleteComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteLogPattern
/// <summary>
/// Removes the specified log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.BadRequestException">
/// The request is not understood by the server.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern">REST API Reference for DeleteLogPattern Operation</seealso>
Task<DeleteLogPatternResponse> DeleteLogPatternAsync(DeleteLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeApplication
/// <summary>
/// Describes the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeApplication service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeApplication service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication">REST API Reference for DescribeApplication Operation</seealso>
Task<DescribeApplicationResponse> DescribeApplicationAsync(DescribeApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeComponent
/// <summary>
/// Describes a component and lists the resources that are grouped together in a component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent">REST API Reference for DescribeComponent Operation</seealso>
Task<DescribeComponentResponse> DescribeComponentAsync(DescribeComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeComponentConfiguration
/// <summary>
/// Describes the monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration">REST API Reference for DescribeComponentConfiguration Operation</seealso>
Task<DescribeComponentConfigurationResponse> DescribeComponentConfigurationAsync(DescribeComponentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeComponentConfigurationRecommendation
/// <summary>
/// Describes the recommended monitoring configuration of the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation">REST API Reference for DescribeComponentConfigurationRecommendation Operation</seealso>
Task<DescribeComponentConfigurationRecommendationResponse> DescribeComponentConfigurationRecommendationAsync(DescribeComponentConfigurationRecommendationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeLogPattern
/// <summary>
/// Describe a specific log pattern from a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern">REST API Reference for DescribeLogPattern Operation</seealso>
Task<DescribeLogPatternResponse> DescribeLogPatternAsync(DescribeLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeObservation
/// <summary>
/// Describes an anomaly or error with the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeObservation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeObservation service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation">REST API Reference for DescribeObservation Operation</seealso>
Task<DescribeObservationResponse> DescribeObservationAsync(DescribeObservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeProblem
/// <summary>
/// Describes an application problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblem service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeProblem service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem">REST API Reference for DescribeProblem Operation</seealso>
Task<DescribeProblemResponse> DescribeProblemAsync(DescribeProblemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeProblemObservations
/// <summary>
/// Describes the anomalies or errors associated with the problem.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeProblemObservations service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeProblemObservations service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations">REST API Reference for DescribeProblemObservations Operation</seealso>
Task<DescribeProblemObservationsResponse> DescribeProblemObservationsAsync(DescribeProblemObservationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListApplications
/// <summary>
/// Lists the IDs of the applications that you are monitoring.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListApplications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListApplications service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications">REST API Reference for ListApplications Operation</seealso>
Task<ListApplicationsResponse> ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListComponents
/// <summary>
/// Lists the auto-grouped, standalone, and custom components of the application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListComponents service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents">REST API Reference for ListComponents Operation</seealso>
Task<ListComponentsResponse> ListComponentsAsync(ListComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListConfigurationHistory
/// <summary>
/// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed
/// by Application Insights. Examples of events represented are:
///
/// <ul> <li>
/// <para>
/// INFO: creating a new alarm or updating an alarm threshold.
/// </para>
/// </li> <li>
/// <para>
/// WARN: alarm not created due to insufficient data points used to predict thresholds.
/// </para>
/// </li> <li>
/// <para>
/// ERROR: alarm not created due to permission errors or exceeding quotas.
/// </para>
/// </li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListConfigurationHistory service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListConfigurationHistory service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListConfigurationHistory">REST API Reference for ListConfigurationHistory Operation</seealso>
Task<ListConfigurationHistoryResponse> ListConfigurationHistoryAsync(ListConfigurationHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListLogPatterns
/// <summary>
/// Lists the log patterns in the specific log <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatterns service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListLogPatterns service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns">REST API Reference for ListLogPatterns Operation</seealso>
Task<ListLogPatternsResponse> ListLogPatternsAsync(ListLogPatternsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListLogPatternSets
/// <summary>
/// Lists the log pattern sets in the specific application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListLogPatternSets service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListLogPatternSets service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets">REST API Reference for ListLogPatternSets Operation</seealso>
Task<ListLogPatternSetsResponse> ListLogPatternSetsAsync(ListLogPatternSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListProblems
/// <summary>
/// Lists the problems with your application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListProblems service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListProblems service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems">REST API Reference for ListProblems Operation</seealso>
Task<ListProblemsResponse> ListProblemsAsync(ListProblemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTagsForResource
/// <summary>
/// Retrieve a list of the tags (keys and values) that are associated with a specified
/// application. A <i>tag</i> is a label that you optionally define and associate with
/// an application. Each tag consists of a required <i>tag key</i> and an optional associated
/// <i>tag value</i>. A tag key is a general label that acts as a category for more specific
/// tag values. A tag value acts as a descriptor within a tag key.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListTagsForResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region TagResource
/// <summary>
/// Add one or more tags (keys and values) to a specified application. A <i>tag</i> is
/// a label that you optionally define and associate with an application. Tags can help
/// you categorize and manage application in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// more specific tag values. A tag value acts as a descriptor within a tag key.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the TagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.TooManyTagsException">
/// The number of the provided tags is beyond the limit, or the number of total tags you
/// are trying to attach to the specified resource exceeds the limit.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource">REST API Reference for TagResource Operation</seealso>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UntagResource
/// <summary>
/// Remove one or more tags (keys and values) from a specified application.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UntagResource service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource">REST API Reference for UntagResource Operation</seealso>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateApplication
/// <summary>
/// Updates the 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 ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateApplication">REST API Reference for UpdateApplication Operation</seealso>
Task<UpdateApplicationResponse> UpdateApplicationAsync(UpdateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateComponent
/// <summary>
/// Updates the custom component name and/or the list of resources that make up the component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponent service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
Task<UpdateComponentResponse> UpdateComponentAsync(UpdateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateComponentConfiguration
/// <summary>
/// Updates the monitoring configurations for the component. The configuration input parameter
/// is an escaped JSON of the configuration and should match the schema of what is returned
/// by <code>DescribeComponentConfigurationRecommendation</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponentConfiguration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration">REST API Reference for UpdateComponentConfiguration Operation</seealso>
Task<UpdateComponentConfigurationResponse> UpdateComponentConfigurationAsync(UpdateComponentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateLogPattern
/// <summary>
/// Adds a log pattern to a <code>LogPatternSet</code>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateLogPattern service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateLogPattern service method, as returned by ApplicationInsights.</returns>
/// <exception cref="Amazon.ApplicationInsights.Model.InternalServerException">
/// The server encountered an internal error and is unable to complete the request.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceInUseException">
/// The resource is already created or in use.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ResourceNotFoundException">
/// The resource does not exist in the customer account.
/// </exception>
/// <exception cref="Amazon.ApplicationInsights.Model.ValidationException">
/// The parameter is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern">REST API Reference for UpdateLogPattern Operation</seealso>
Task<UpdateLogPatternResponse> UpdateLogPatternAsync(UpdateLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 843 |
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.ApplicationInsights")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon CloudWatch Application Insights. CloudWatch Application Insights detects errors and exceptions from logs, including .NET custom application logs, SQL Server logs, IIS logs, and more, and uses a combination of built-in rules and machine learning, such as dynamic baselining, to identify common problems. You can then easily drill into specific issues with CloudWatch Automatic Dashboards that are dynamically generated. These dashboards contain the most recent alarms, a summary of relevant metrics, and log snippets to help you identify root cause.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon CloudWatch Application Insights. CloudWatch Application Insights detects errors and exceptions from logs, including .NET custom application logs, SQL Server logs, IIS logs, and more, and uses a combination of built-in rules and machine learning, such as dynamic baselining, to identify common problems. You can then easily drill into specific issues with CloudWatch Automatic Dashboards that are dynamically generated. These dashboards contain the most recent alarms, a summary of relevant metrics, and log snippets to help you identify root cause.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon CloudWatch Application Insights. CloudWatch Application Insights detects errors and exceptions from logs, including .NET custom application logs, SQL Server logs, IIS logs, and more, and uses a combination of built-in rules and machine learning, such as dynamic baselining, to identify common problems. You can then easily drill into specific issues with CloudWatch Automatic Dashboards that are dynamically generated. These dashboards contain the most recent alarms, a summary of relevant metrics, and log snippets to help you identify root cause.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon CloudWatch Application Insights. CloudWatch Application Insights detects errors and exceptions from logs, including .NET custom application logs, SQL Server logs, IIS logs, and more, and uses a combination of built-in rules and machine learning, such as dynamic baselining, to identify common problems. You can then easily drill into specific issues with CloudWatch Automatic Dashboards that are dynamically generated. These dashboards contain the most recent alarms, a summary of relevant metrics, and log snippets to help you identify root cause.")]
#else
#error Unknown platform constant - unable to set correct AssemblyDescription
#endif
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3")]
[assembly: AssemblyFileVersion("3.7.100.147")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif | 51 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.AppMesh.Internal;
namespace Amazon.AppMesh
{
/// <summary>
/// Configuration for accessing Amazon AppMesh service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonAppMeshConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.100.147");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonAppMeshConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAppMeshDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "appmesh";
this.EndpointProvider = new AmazonAppMeshEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "appmesh";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2019-01-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 appmesh-2019-01-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.AppMesh
{
/// <summary>
/// Configuration for accessing Amazon AppMesh service
/// </summary>
public static class AmazonAppMeshDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// AppMesh
/// </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 appmesh-2019-01-25.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.AppMesh.Endpoints
{
/// <summary>
/// Contains parameters used for resolving AppMesh endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal AppMeshEndpointProvider and AppMeshEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class AppMeshEndpointParameters : EndpointParameters
{
/// <summary>
/// AppMeshEndpointParameters constructor
/// </summary>
public AppMeshEndpointParameters()
{
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 appmesh-2019-01-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.AppMesh
{
///<summary>
/// Common exception for the AppMesh service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonAppMeshException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonAppMeshException
/// </summary>
/// <param name="message"></param>
public AmazonAppMeshException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonAppMeshException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonAppMeshException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAppMeshException
/// </summary>
/// <param name="innerException"></param>
public AmazonAppMeshException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAppMeshException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonAppMeshException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonAppMeshException
/// </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 AmazonAppMeshException(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 AmazonAppMeshException 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 AmazonAppMeshException(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 appmesh-2019-01-25.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.AppMesh
{
/// <summary>
/// Constants used for properties of type DefaultGatewayRouteRewrite.
/// </summary>
public class DefaultGatewayRouteRewrite : ConstantClass
{
/// <summary>
/// Constant DISABLED for DefaultGatewayRouteRewrite
/// </summary>
public static readonly DefaultGatewayRouteRewrite DISABLED = new DefaultGatewayRouteRewrite("DISABLED");
/// <summary>
/// Constant ENABLED for DefaultGatewayRouteRewrite
/// </summary>
public static readonly DefaultGatewayRouteRewrite ENABLED = new DefaultGatewayRouteRewrite("ENABLED");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public DefaultGatewayRouteRewrite(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 DefaultGatewayRouteRewrite FindValue(string value)
{
return FindValue<DefaultGatewayRouteRewrite>(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 DefaultGatewayRouteRewrite(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type DnsResponseType.
/// </summary>
public class DnsResponseType : ConstantClass
{
/// <summary>
/// Constant ENDPOINTS for DnsResponseType
/// </summary>
public static readonly DnsResponseType ENDPOINTS = new DnsResponseType("ENDPOINTS");
/// <summary>
/// Constant LOADBALANCER for DnsResponseType
/// </summary>
public static readonly DnsResponseType LOADBALANCER = new DnsResponseType("LOADBALANCER");
/// <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 DnsResponseType(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 DnsResponseType FindValue(string value)
{
return FindValue<DnsResponseType>(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 DnsResponseType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type DurationUnit.
/// </summary>
public class DurationUnit : ConstantClass
{
/// <summary>
/// Constant Ms for DurationUnit
/// </summary>
public static readonly DurationUnit Ms = new DurationUnit("ms");
/// <summary>
/// Constant S for DurationUnit
/// </summary>
public static readonly DurationUnit S = new DurationUnit("s");
/// <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 DurationUnit(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 DurationUnit FindValue(string value)
{
return FindValue<DurationUnit>(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 DurationUnit(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type EgressFilterType.
/// </summary>
public class EgressFilterType : ConstantClass
{
/// <summary>
/// Constant ALLOW_ALL for EgressFilterType
/// </summary>
public static readonly EgressFilterType ALLOW_ALL = new EgressFilterType("ALLOW_ALL");
/// <summary>
/// Constant DROP_ALL for EgressFilterType
/// </summary>
public static readonly EgressFilterType DROP_ALL = new EgressFilterType("DROP_ALL");
/// <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 EgressFilterType(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 EgressFilterType FindValue(string value)
{
return FindValue<EgressFilterType>(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 EgressFilterType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type GatewayRouteStatusCode.
/// </summary>
public class GatewayRouteStatusCode : ConstantClass
{
/// <summary>
/// Constant ACTIVE for GatewayRouteStatusCode
/// </summary>
public static readonly GatewayRouteStatusCode ACTIVE = new GatewayRouteStatusCode("ACTIVE");
/// <summary>
/// Constant DELETED for GatewayRouteStatusCode
/// </summary>
public static readonly GatewayRouteStatusCode DELETED = new GatewayRouteStatusCode("DELETED");
/// <summary>
/// Constant INACTIVE for GatewayRouteStatusCode
/// </summary>
public static readonly GatewayRouteStatusCode INACTIVE = new GatewayRouteStatusCode("INACTIVE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public GatewayRouteStatusCode(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 GatewayRouteStatusCode FindValue(string value)
{
return FindValue<GatewayRouteStatusCode>(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 GatewayRouteStatusCode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type GrpcRetryPolicyEvent.
/// </summary>
public class GrpcRetryPolicyEvent : ConstantClass
{
/// <summary>
/// Constant Cancelled for GrpcRetryPolicyEvent
/// </summary>
public static readonly GrpcRetryPolicyEvent Cancelled = new GrpcRetryPolicyEvent("cancelled");
/// <summary>
/// Constant DeadlineExceeded for GrpcRetryPolicyEvent
/// </summary>
public static readonly GrpcRetryPolicyEvent DeadlineExceeded = new GrpcRetryPolicyEvent("deadline-exceeded");
/// <summary>
/// Constant Internal for GrpcRetryPolicyEvent
/// </summary>
public static readonly GrpcRetryPolicyEvent Internal = new GrpcRetryPolicyEvent("internal");
/// <summary>
/// Constant ResourceExhausted for GrpcRetryPolicyEvent
/// </summary>
public static readonly GrpcRetryPolicyEvent ResourceExhausted = new GrpcRetryPolicyEvent("resource-exhausted");
/// <summary>
/// Constant Unavailable for GrpcRetryPolicyEvent
/// </summary>
public static readonly GrpcRetryPolicyEvent Unavailable = new GrpcRetryPolicyEvent("unavailable");
/// <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 GrpcRetryPolicyEvent(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 GrpcRetryPolicyEvent FindValue(string value)
{
return FindValue<GrpcRetryPolicyEvent>(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 GrpcRetryPolicyEvent(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type HttpMethod.
/// </summary>
public class HttpMethod : ConstantClass
{
/// <summary>
/// Constant CONNECT for HttpMethod
/// </summary>
public static readonly HttpMethod CONNECT = new HttpMethod("CONNECT");
/// <summary>
/// Constant DELETE for HttpMethod
/// </summary>
public static readonly HttpMethod DELETE = new HttpMethod("DELETE");
/// <summary>
/// Constant GET for HttpMethod
/// </summary>
public static readonly HttpMethod GET = new HttpMethod("GET");
/// <summary>
/// Constant HEAD for HttpMethod
/// </summary>
public static readonly HttpMethod HEAD = new HttpMethod("HEAD");
/// <summary>
/// Constant OPTIONS for HttpMethod
/// </summary>
public static readonly HttpMethod OPTIONS = new HttpMethod("OPTIONS");
/// <summary>
/// Constant PATCH for HttpMethod
/// </summary>
public static readonly HttpMethod PATCH = new HttpMethod("PATCH");
/// <summary>
/// Constant POST for HttpMethod
/// </summary>
public static readonly HttpMethod POST = new HttpMethod("POST");
/// <summary>
/// Constant PUT for HttpMethod
/// </summary>
public static readonly HttpMethod PUT = new HttpMethod("PUT");
/// <summary>
/// Constant TRACE for HttpMethod
/// </summary>
public static readonly HttpMethod TRACE = new HttpMethod("TRACE");
/// <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 HttpMethod(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 HttpMethod FindValue(string value)
{
return FindValue<HttpMethod>(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 HttpMethod(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type HttpScheme.
/// </summary>
public class HttpScheme : ConstantClass
{
/// <summary>
/// Constant Http for HttpScheme
/// </summary>
public static readonly HttpScheme Http = new HttpScheme("http");
/// <summary>
/// Constant Https for HttpScheme
/// </summary>
public static readonly HttpScheme Https = new HttpScheme("https");
/// <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 HttpScheme(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 HttpScheme FindValue(string value)
{
return FindValue<HttpScheme>(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 HttpScheme(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type IpPreference.
/// </summary>
public class IpPreference : ConstantClass
{
/// <summary>
/// Constant IPv4_ONLY for IpPreference
/// </summary>
public static readonly IpPreference IPv4_ONLY = new IpPreference("IPv4_ONLY");
/// <summary>
/// Constant IPv4_PREFERRED for IpPreference
/// </summary>
public static readonly IpPreference IPv4_PREFERRED = new IpPreference("IPv4_PREFERRED");
/// <summary>
/// Constant IPv6_ONLY for IpPreference
/// </summary>
public static readonly IpPreference IPv6_ONLY = new IpPreference("IPv6_ONLY");
/// <summary>
/// Constant IPv6_PREFERRED for IpPreference
/// </summary>
public static readonly IpPreference IPv6_PREFERRED = new IpPreference("IPv6_PREFERRED");
/// <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 IpPreference(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 IpPreference FindValue(string value)
{
return FindValue<IpPreference>(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 IpPreference(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ListenerTlsMode.
/// </summary>
public class ListenerTlsMode : ConstantClass
{
/// <summary>
/// Constant DISABLED for ListenerTlsMode
/// </summary>
public static readonly ListenerTlsMode DISABLED = new ListenerTlsMode("DISABLED");
/// <summary>
/// Constant PERMISSIVE for ListenerTlsMode
/// </summary>
public static readonly ListenerTlsMode PERMISSIVE = new ListenerTlsMode("PERMISSIVE");
/// <summary>
/// Constant STRICT for ListenerTlsMode
/// </summary>
public static readonly ListenerTlsMode STRICT = new ListenerTlsMode("STRICT");
/// <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 ListenerTlsMode(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 ListenerTlsMode FindValue(string value)
{
return FindValue<ListenerTlsMode>(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 ListenerTlsMode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type MeshStatusCode.
/// </summary>
public class MeshStatusCode : ConstantClass
{
/// <summary>
/// Constant ACTIVE for MeshStatusCode
/// </summary>
public static readonly MeshStatusCode ACTIVE = new MeshStatusCode("ACTIVE");
/// <summary>
/// Constant DELETED for MeshStatusCode
/// </summary>
public static readonly MeshStatusCode DELETED = new MeshStatusCode("DELETED");
/// <summary>
/// Constant INACTIVE for MeshStatusCode
/// </summary>
public static readonly MeshStatusCode INACTIVE = new MeshStatusCode("INACTIVE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public MeshStatusCode(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 MeshStatusCode FindValue(string value)
{
return FindValue<MeshStatusCode>(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 MeshStatusCode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PortProtocol.
/// </summary>
public class PortProtocol : ConstantClass
{
/// <summary>
/// Constant Grpc for PortProtocol
/// </summary>
public static readonly PortProtocol Grpc = new PortProtocol("grpc");
/// <summary>
/// Constant Http for PortProtocol
/// </summary>
public static readonly PortProtocol Http = new PortProtocol("http");
/// <summary>
/// Constant Http2 for PortProtocol
/// </summary>
public static readonly PortProtocol Http2 = new PortProtocol("http2");
/// <summary>
/// Constant Tcp for PortProtocol
/// </summary>
public static readonly PortProtocol Tcp = new PortProtocol("tcp");
/// <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 PortProtocol(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 PortProtocol FindValue(string value)
{
return FindValue<PortProtocol>(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 PortProtocol(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type RouteStatusCode.
/// </summary>
public class RouteStatusCode : ConstantClass
{
/// <summary>
/// Constant ACTIVE for RouteStatusCode
/// </summary>
public static readonly RouteStatusCode ACTIVE = new RouteStatusCode("ACTIVE");
/// <summary>
/// Constant DELETED for RouteStatusCode
/// </summary>
public static readonly RouteStatusCode DELETED = new RouteStatusCode("DELETED");
/// <summary>
/// Constant INACTIVE for RouteStatusCode
/// </summary>
public static readonly RouteStatusCode INACTIVE = new RouteStatusCode("INACTIVE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public RouteStatusCode(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 RouteStatusCode FindValue(string value)
{
return FindValue<RouteStatusCode>(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 RouteStatusCode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type TcpRetryPolicyEvent.
/// </summary>
public class TcpRetryPolicyEvent : ConstantClass
{
/// <summary>
/// Constant ConnectionError for TcpRetryPolicyEvent
/// </summary>
public static readonly TcpRetryPolicyEvent ConnectionError = new TcpRetryPolicyEvent("connection-error");
/// <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 TcpRetryPolicyEvent(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 TcpRetryPolicyEvent FindValue(string value)
{
return FindValue<TcpRetryPolicyEvent>(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 TcpRetryPolicyEvent(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type VirtualGatewayListenerTlsMode.
/// </summary>
public class VirtualGatewayListenerTlsMode : ConstantClass
{
/// <summary>
/// Constant DISABLED for VirtualGatewayListenerTlsMode
/// </summary>
public static readonly VirtualGatewayListenerTlsMode DISABLED = new VirtualGatewayListenerTlsMode("DISABLED");
/// <summary>
/// Constant PERMISSIVE for VirtualGatewayListenerTlsMode
/// </summary>
public static readonly VirtualGatewayListenerTlsMode PERMISSIVE = new VirtualGatewayListenerTlsMode("PERMISSIVE");
/// <summary>
/// Constant STRICT for VirtualGatewayListenerTlsMode
/// </summary>
public static readonly VirtualGatewayListenerTlsMode STRICT = new VirtualGatewayListenerTlsMode("STRICT");
/// <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 VirtualGatewayListenerTlsMode(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 VirtualGatewayListenerTlsMode FindValue(string value)
{
return FindValue<VirtualGatewayListenerTlsMode>(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 VirtualGatewayListenerTlsMode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type VirtualGatewayPortProtocol.
/// </summary>
public class VirtualGatewayPortProtocol : ConstantClass
{
/// <summary>
/// Constant Grpc for VirtualGatewayPortProtocol
/// </summary>
public static readonly VirtualGatewayPortProtocol Grpc = new VirtualGatewayPortProtocol("grpc");
/// <summary>
/// Constant Http for VirtualGatewayPortProtocol
/// </summary>
public static readonly VirtualGatewayPortProtocol Http = new VirtualGatewayPortProtocol("http");
/// <summary>
/// Constant Http2 for VirtualGatewayPortProtocol
/// </summary>
public static readonly VirtualGatewayPortProtocol Http2 = new VirtualGatewayPortProtocol("http2");
/// <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 VirtualGatewayPortProtocol(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 VirtualGatewayPortProtocol FindValue(string value)
{
return FindValue<VirtualGatewayPortProtocol>(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 VirtualGatewayPortProtocol(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type VirtualGatewayStatusCode.
/// </summary>
public class VirtualGatewayStatusCode : ConstantClass
{
/// <summary>
/// Constant ACTIVE for VirtualGatewayStatusCode
/// </summary>
public static readonly VirtualGatewayStatusCode ACTIVE = new VirtualGatewayStatusCode("ACTIVE");
/// <summary>
/// Constant DELETED for VirtualGatewayStatusCode
/// </summary>
public static readonly VirtualGatewayStatusCode DELETED = new VirtualGatewayStatusCode("DELETED");
/// <summary>
/// Constant INACTIVE for VirtualGatewayStatusCode
/// </summary>
public static readonly VirtualGatewayStatusCode INACTIVE = new VirtualGatewayStatusCode("INACTIVE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public VirtualGatewayStatusCode(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 VirtualGatewayStatusCode FindValue(string value)
{
return FindValue<VirtualGatewayStatusCode>(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 VirtualGatewayStatusCode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type VirtualNodeStatusCode.
/// </summary>
public class VirtualNodeStatusCode : ConstantClass
{
/// <summary>
/// Constant ACTIVE for VirtualNodeStatusCode
/// </summary>
public static readonly VirtualNodeStatusCode ACTIVE = new VirtualNodeStatusCode("ACTIVE");
/// <summary>
/// Constant DELETED for VirtualNodeStatusCode
/// </summary>
public static readonly VirtualNodeStatusCode DELETED = new VirtualNodeStatusCode("DELETED");
/// <summary>
/// Constant INACTIVE for VirtualNodeStatusCode
/// </summary>
public static readonly VirtualNodeStatusCode INACTIVE = new VirtualNodeStatusCode("INACTIVE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public VirtualNodeStatusCode(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 VirtualNodeStatusCode FindValue(string value)
{
return FindValue<VirtualNodeStatusCode>(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 VirtualNodeStatusCode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type VirtualRouterStatusCode.
/// </summary>
public class VirtualRouterStatusCode : ConstantClass
{
/// <summary>
/// Constant ACTIVE for VirtualRouterStatusCode
/// </summary>
public static readonly VirtualRouterStatusCode ACTIVE = new VirtualRouterStatusCode("ACTIVE");
/// <summary>
/// Constant DELETED for VirtualRouterStatusCode
/// </summary>
public static readonly VirtualRouterStatusCode DELETED = new VirtualRouterStatusCode("DELETED");
/// <summary>
/// Constant INACTIVE for VirtualRouterStatusCode
/// </summary>
public static readonly VirtualRouterStatusCode INACTIVE = new VirtualRouterStatusCode("INACTIVE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public VirtualRouterStatusCode(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 VirtualRouterStatusCode FindValue(string value)
{
return FindValue<VirtualRouterStatusCode>(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 VirtualRouterStatusCode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type VirtualServiceStatusCode.
/// </summary>
public class VirtualServiceStatusCode : ConstantClass
{
/// <summary>
/// Constant ACTIVE for VirtualServiceStatusCode
/// </summary>
public static readonly VirtualServiceStatusCode ACTIVE = new VirtualServiceStatusCode("ACTIVE");
/// <summary>
/// Constant DELETED for VirtualServiceStatusCode
/// </summary>
public static readonly VirtualServiceStatusCode DELETED = new VirtualServiceStatusCode("DELETED");
/// <summary>
/// Constant INACTIVE for VirtualServiceStatusCode
/// </summary>
public static readonly VirtualServiceStatusCode INACTIVE = new VirtualServiceStatusCode("INACTIVE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public VirtualServiceStatusCode(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 VirtualServiceStatusCode FindValue(string value)
{
return FindValue<VirtualServiceStatusCode>(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 VirtualServiceStatusCode(string value)
{
return FindValue(value);
}
}
} | 1,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 appmesh-2019-01-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.AppMesh.Internal
{
/// <summary>
/// Amazon AppMesh endpoint provider.
/// Resolves endpoint for given set of AppMeshEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonAppMeshEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for AppMeshEndpointParameters
/// </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://appmesh-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://appmesh-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://appmesh.{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://appmesh.{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 appmesh-2019-01-25.normal.json service model.
*/
using System;
using Amazon.AppMesh.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.AppMesh.Endpoints;
#pragma warning disable 1591
namespace Amazon.AppMesh.Internal
{
/// <summary>
/// Amazon AppMesh endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for AppMesh service requests.
/// Collects values for AppMeshEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AppMeshEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonAppMeshEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonAppMeshConfig)requestContext.ClientConfig;
var result = new AppMeshEndpointParameters();
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 appmesh-2019-01-25.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.AppMesh.Internal
{
/// <summary>
/// Service metadata for Amazon AppMesh service
/// </summary>
public partial class AmazonAppMeshMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "App Mesh";
}
}
/// <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 appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// An object that represents the access logging information for a virtual node.
/// </summary>
public partial class AccessLog
{
private FileAccessLog _file;
/// <summary>
/// Gets and sets the property File.
/// <para>
/// The file object to send virtual node access logs to.
/// </para>
/// </summary>
public FileAccessLog File
{
get { return this._file; }
set { this._file = value; }
}
// Check to see if File property is set
internal bool IsSetFile()
{
return this._file != null;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-25.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AppMesh
{
/// <summary>
/// Base class for AppMesh operation requests.
/// </summary>
public partial class AmazonAppMeshRequest : AmazonWebServiceRequest
{
}
} | 30 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// An object that represents the Cloud Map attribute information for your virtual node.
///
/// <note>
/// <para>
/// Cloud Map is not available in the eu-south-1 Region.
/// </para>
/// </note>
/// </summary>
public partial class AwsCloudMapInstanceAttribute
{
private string _key;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// The name of an Cloud Map service instance attribute key. Any Cloud Map service instance
/// that contains the specified key and value is returned.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value of an Cloud Map service instance attribute key. Any Cloud Map service instance
/// that contains the specified key and value is returned.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 86 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// An object that represents the Cloud Map service discovery information for your virtual
/// node.
///
/// <note>
/// <para>
/// Cloud Map is not available in the eu-south-1 Region.
/// </para>
/// </note>
/// </summary>
public partial class AwsCloudMapServiceDiscovery
{
private List<AwsCloudMapInstanceAttribute> _attributes = new List<AwsCloudMapInstanceAttribute>();
private IpPreference _ipPreference;
private string _namespaceName;
private string _serviceName;
/// <summary>
/// Gets and sets the property Attributes.
/// <para>
/// A string map that contains attributes with values that you can use to filter instances
/// by any custom attribute that you specified when you registered the instance. Only
/// instances that match all of the specified key/value pairs will be returned.
/// </para>
/// </summary>
public List<AwsCloudMapInstanceAttribute> Attributes
{
get { return this._attributes; }
set { this._attributes = value; }
}
// Check to see if Attributes property is set
internal bool IsSetAttributes()
{
return this._attributes != null && this._attributes.Count > 0;
}
/// <summary>
/// Gets and sets the property IpPreference.
/// <para>
/// The preferred IP version that this virtual node uses. Setting the IP preference on
/// the virtual node only overrides the IP preference set for the mesh on this specific
/// node.
/// </para>
/// </summary>
public IpPreference IpPreference
{
get { return this._ipPreference; }
set { this._ipPreference = value; }
}
// Check to see if IpPreference property is set
internal bool IsSetIpPreference()
{
return this._ipPreference != null;
}
/// <summary>
/// Gets and sets the property NamespaceName.
/// <para>
/// The name of the Cloud Map namespace to use.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string NamespaceName
{
get { return this._namespaceName; }
set { this._namespaceName = value; }
}
// Check to see if NamespaceName property is set
internal bool IsSetNamespaceName()
{
return this._namespaceName != null;
}
/// <summary>
/// Gets and sets the property ServiceName.
/// <para>
/// The name of the Cloud Map service to use.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string ServiceName
{
get { return this._serviceName; }
set { this._serviceName = value; }
}
// Check to see if ServiceName property is set
internal bool IsSetServiceName()
{
return this._serviceName != null;
}
}
} | 127 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// An object that represents the backends that a virtual node is expected to send outbound
/// traffic to.
/// </summary>
public partial class Backend
{
private VirtualServiceBackend _virtualService;
/// <summary>
/// Gets and sets the property VirtualService.
/// <para>
/// Specifies a virtual service to use as a backend.
/// </para>
/// </summary>
public VirtualServiceBackend VirtualService
{
get { return this._virtualService; }
set { this._virtualService = value; }
}
// Check to see if VirtualService property is set
internal bool IsSetVirtualService()
{
return this._virtualService != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// An object that represents the default properties for a backend.
/// </summary>
public partial class BackendDefaults
{
private ClientPolicy _clientPolicy;
/// <summary>
/// Gets and sets the property ClientPolicy.
/// <para>
/// A reference to an object that represents a client policy.
/// </para>
/// </summary>
public ClientPolicy ClientPolicy
{
get { return this._clientPolicy; }
set { this._clientPolicy = value; }
}
// Check to see if ClientPolicy property is set
internal bool IsSetClientPolicy()
{
return this._clientPolicy != null;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// The request syntax was malformed. Check your request syntax and try again.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class BadRequestException : AmazonAppMeshException
{
/// <summary>
/// Constructs a new BadRequestException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public BadRequestException(string message)
: base(message) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public BadRequestException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="innerException"></param>
public BadRequestException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of BadRequestException
/// </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 BadRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public BadRequestException(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 BadRequestException 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 BadRequestException(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 appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// An object that represents a client policy.
/// </summary>
public partial class ClientPolicy
{
private ClientPolicyTls _tls;
/// <summary>
/// Gets and sets the property Tls.
/// <para>
/// A reference to an object that represents a Transport Layer Security (TLS) client policy.
/// </para>
/// </summary>
public ClientPolicyTls Tls
{
get { return this._tls; }
set { this._tls = value; }
}
// Check to see if Tls property is set
internal bool IsSetTls()
{
return this._tls != null;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// A reference to an object that represents a Transport Layer Security (TLS) client policy.
/// </summary>
public partial class ClientPolicyTls
{
private ClientTlsCertificate _certificate;
private bool? _enforce;
private List<int> _ports = new List<int>();
private TlsValidationContext _validation;
/// <summary>
/// Gets and sets the property Certificate.
/// <para>
/// A reference to an object that represents a client's TLS certificate.
/// </para>
/// </summary>
public ClientTlsCertificate Certificate
{
get { return this._certificate; }
set { this._certificate = value; }
}
// Check to see if Certificate property is set
internal bool IsSetCertificate()
{
return this._certificate != null;
}
/// <summary>
/// Gets and sets the property Enforce.
/// <para>
/// Whether the policy is enforced. The default is <code>True</code>, if a value isn't
/// specified.
/// </para>
/// </summary>
public bool Enforce
{
get { return this._enforce.GetValueOrDefault(); }
set { this._enforce = value; }
}
// Check to see if Enforce property is set
internal bool IsSetEnforce()
{
return this._enforce.HasValue;
}
/// <summary>
/// Gets and sets the property Ports.
/// <para>
/// One or more ports that the policy is enforced for.
/// </para>
/// </summary>
public List<int> Ports
{
get { return this._ports; }
set { this._ports = value; }
}
// Check to see if Ports property is set
internal bool IsSetPorts()
{
return this._ports != null && this._ports.Count > 0;
}
/// <summary>
/// Gets and sets the property Validation.
/// <para>
/// A reference to an object that represents a TLS validation context.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public TlsValidationContext Validation
{
get { return this._validation; }
set { this._validation = value; }
}
// Check to see if Validation property is set
internal bool IsSetValidation()
{
return this._validation != null;
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// An object that represents the client's certificate.
/// </summary>
public partial class ClientTlsCertificate
{
private ListenerTlsFileCertificate _file;
private ListenerTlsSdsCertificate _sds;
/// <summary>
/// Gets and sets the property File.
/// <para>
/// An object that represents a local file certificate. The certificate must meet specific
/// requirements and you must have proxy authorization enabled. For more information,
/// see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/tls.html">Transport
/// Layer Security (TLS)</a>.
/// </para>
/// </summary>
public ListenerTlsFileCertificate File
{
get { return this._file; }
set { this._file = value; }
}
// Check to see if File property is set
internal bool IsSetFile()
{
return this._file != null;
}
/// <summary>
/// Gets and sets the property Sds.
/// <para>
/// A reference to an object that represents a client's TLS Secret Discovery Service certificate.
/// </para>
/// </summary>
public ListenerTlsSdsCertificate Sds
{
get { return this._sds; }
set { this._sds = value; }
}
// Check to see if Sds property is set
internal bool IsSetSds()
{
return this._sds != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// The request contains a client token that was used for a previous update resource call
/// with different specifications. Try the request again with a new client token.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ConflictException : AmazonAppMeshException
{
/// <summary>
/// Constructs a new ConflictException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ConflictException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ConflictException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="innerException"></param>
public ConflictException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ConflictException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 125 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the CreateGatewayRoute operation.
/// Creates a gateway route.
///
///
/// <para>
/// A gateway route is attached to a virtual gateway and routes traffic to an existing
/// virtual service. If a route matches a request, it can distribute traffic to a target
/// virtual service.
/// </para>
///
/// <para>
/// For more information about gateway routes, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/gateway-routes.html">Gateway
/// routes</a>.
/// </para>
/// </summary>
public partial class CreateGatewayRouteRequest : AmazonAppMeshRequest
{
private string _clientToken;
private string _gatewayRouteName;
private string _meshName;
private string _meshOwner;
private GatewayRouteSpec _spec;
private List<TagRef> _tags = new List<TagRef>();
private string _virtualGatewayName;
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
/// </para>
/// </summary>
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property GatewayRouteName.
/// <para>
/// The name to use for the gateway route.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string GatewayRouteName
{
get { return this._gatewayRouteName; }
set { this._gatewayRouteName = value; }
}
// Check to see if GatewayRouteName property is set
internal bool IsSetGatewayRouteName()
{
return this._gatewayRouteName != null;
}
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to create the gateway route in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property MeshOwner.
/// <para>
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then the account that you specify must share the mesh with your account
/// before you can create the resource in the service mesh. For more information about
/// mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
/// with shared meshes</a>.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
/// <summary>
/// Gets and sets the property Spec.
/// <para>
/// The gateway route specification to apply.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public GatewayRouteSpec Spec
{
get { return this._spec; }
set { this._spec = value; }
}
// Check to see if Spec property is set
internal bool IsSetSpec()
{
return this._spec != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Optional metadata that you can apply to the gateway route to assist with categorization
/// and organization. Each tag consists of a key and an optional value, both of which
/// you define. Tag keys can have a maximum character length of 128 characters, and tag
/// values can have a maximum length of 256 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=50)]
public List<TagRef> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property VirtualGatewayName.
/// <para>
/// The name of the virtual gateway to associate the gateway route with. If the virtual
/// gateway is in a shared mesh, then you must be the owner of the virtual gateway resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string VirtualGatewayName
{
get { return this._virtualGatewayName; }
set { this._virtualGatewayName = value; }
}
// Check to see if VirtualGatewayName property is set
internal bool IsSetVirtualGatewayName()
{
return this._virtualGatewayName != null;
}
}
} | 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 appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// This is the response object from the CreateGatewayRoute operation.
/// </summary>
public partial class CreateGatewayRouteResponse : AmazonWebServiceResponse
{
private GatewayRouteData _gatewayRoute;
/// <summary>
/// Gets and sets the property GatewayRoute.
/// <para>
/// The full description of your gateway route following the create call.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public GatewayRouteData GatewayRoute
{
get { return this._gatewayRoute; }
set { this._gatewayRoute = value; }
}
// Check to see if GatewayRoute property is set
internal bool IsSetGatewayRoute()
{
return this._gatewayRoute != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the CreateMesh operation.
/// Creates a service mesh.
///
///
/// <para>
/// A service mesh is a logical boundary for network traffic between services that are
/// represented by resources within the mesh. After you create your service mesh, you
/// can create virtual services, virtual nodes, virtual routers, and routes to distribute
/// traffic between the applications in your mesh.
/// </para>
///
/// <para>
/// For more information about service meshes, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/meshes.html">Service
/// meshes</a>.
/// </para>
/// </summary>
public partial class CreateMeshRequest : AmazonAppMeshRequest
{
private string _clientToken;
private string _meshName;
private MeshSpec _spec;
private List<TagRef> _tags = new List<TagRef>();
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
/// </para>
/// </summary>
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name to use for the service mesh.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property Spec.
/// <para>
/// The service mesh specification to apply.
/// </para>
/// </summary>
public MeshSpec Spec
{
get { return this._spec; }
set { this._spec = value; }
}
// Check to see if Spec property is set
internal bool IsSetSpec()
{
return this._spec != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Optional metadata that you can apply to the service mesh to assist with categorization
/// and organization. Each tag consists of a key and an optional value, both of which
/// you define. Tag keys can have a maximum character length of 128 characters, and tag
/// values can have a maximum length of 256 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=50)]
public List<TagRef> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 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 appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// <zonbook></zonbook><xhtml></xhtml>
/// </summary>
public partial class CreateMeshResponse : AmazonWebServiceResponse
{
private MeshData _mesh;
/// <summary>
/// Gets and sets the property Mesh.
/// <para>
/// The full description of your service mesh following the create call.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public MeshData Mesh
{
get { return this._mesh; }
set { this._mesh = value; }
}
// Check to see if Mesh property is set
internal bool IsSetMesh()
{
return this._mesh != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the CreateRoute operation.
/// Creates a route that is associated with a virtual router.
///
///
/// <para>
/// You can route several different protocols and define a retry policy for a route.
/// Traffic can be routed to one or more virtual nodes.
/// </para>
///
/// <para>
/// For more information about routes, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html">Routes</a>.
/// </para>
/// </summary>
public partial class CreateRouteRequest : AmazonAppMeshRequest
{
private string _clientToken;
private string _meshName;
private string _meshOwner;
private string _routeName;
private RouteSpec _spec;
private List<TagRef> _tags = new List<TagRef>();
private string _virtualRouterName;
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
/// </para>
/// </summary>
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to create the route in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property MeshOwner.
/// <para>
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then the account that you specify must share the mesh with your account
/// before you can create the resource in the service mesh. For more information about
/// mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
/// with shared meshes</a>.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
/// <summary>
/// Gets and sets the property RouteName.
/// <para>
/// The name to use for the route.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string RouteName
{
get { return this._routeName; }
set { this._routeName = value; }
}
// Check to see if RouteName property is set
internal bool IsSetRouteName()
{
return this._routeName != null;
}
/// <summary>
/// Gets and sets the property Spec.
/// <para>
/// The route specification to apply.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public RouteSpec Spec
{
get { return this._spec; }
set { this._spec = value; }
}
// Check to see if Spec property is set
internal bool IsSetSpec()
{
return this._spec != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Optional metadata that you can apply to the route to assist with categorization and
/// organization. Each tag consists of a key and an optional value, both of which you
/// define. Tag keys can have a maximum character length of 128 characters, and tag values
/// can have a maximum length of 256 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=50)]
public List<TagRef> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property VirtualRouterName.
/// <para>
/// The name of the virtual router in which to create the route. If the virtual router
/// is in a shared mesh, then you must be the owner of the virtual router resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string VirtualRouterName
{
get { return this._virtualRouterName; }
set { this._virtualRouterName = value; }
}
// Check to see if VirtualRouterName property is set
internal bool IsSetVirtualRouterName()
{
return this._virtualRouterName != null;
}
}
} | 197 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// <zonbook></zonbook><xhtml></xhtml>
/// </summary>
public partial class CreateRouteResponse : AmazonWebServiceResponse
{
private RouteData _route;
/// <summary>
/// Gets and sets the property Route.
/// <para>
/// The full description of your mesh following the create call.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public RouteData Route
{
get { return this._route; }
set { this._route = value; }
}
// Check to see if Route property is set
internal bool IsSetRoute()
{
return this._route != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the CreateVirtualGateway operation.
/// Creates a virtual gateway.
///
///
/// <para>
/// A virtual gateway allows resources outside your mesh to communicate to resources that
/// are inside your mesh. The virtual gateway represents an Envoy proxy running in an
/// Amazon ECS task, in a Kubernetes service, or on an Amazon EC2 instance. Unlike a virtual
/// node, which represents an Envoy running with an application, a virtual gateway represents
/// Envoy deployed by itself.
/// </para>
///
/// <para>
/// For more information about virtual gateways, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_gateways.html">Virtual
/// gateways</a>.
/// </para>
/// </summary>
public partial class CreateVirtualGatewayRequest : AmazonAppMeshRequest
{
private string _clientToken;
private string _meshName;
private string _meshOwner;
private VirtualGatewaySpec _spec;
private List<TagRef> _tags = new List<TagRef>();
private string _virtualGatewayName;
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
/// </para>
/// </summary>
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to create the virtual gateway in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property MeshOwner.
/// <para>
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then the account that you specify must share the mesh with your account
/// before you can create the resource in the service mesh. For more information about
/// mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
/// with shared meshes</a>.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
/// <summary>
/// Gets and sets the property Spec.
/// <para>
/// The virtual gateway specification to apply.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VirtualGatewaySpec Spec
{
get { return this._spec; }
set { this._spec = value; }
}
// Check to see if Spec property is set
internal bool IsSetSpec()
{
return this._spec != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Optional metadata that you can apply to the virtual gateway to assist with categorization
/// and organization. Each tag consists of a key and an optional value, both of which
/// you define. Tag keys can have a maximum character length of 128 characters, and tag
/// values can have a maximum length of 256 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=50)]
public List<TagRef> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property VirtualGatewayName.
/// <para>
/// The name to use for the virtual gateway.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string VirtualGatewayName
{
get { return this._virtualGatewayName; }
set { this._virtualGatewayName = value; }
}
// Check to see if VirtualGatewayName property is set
internal bool IsSetVirtualGatewayName()
{
return this._virtualGatewayName != null;
}
}
} | 180 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// This is the response object from the CreateVirtualGateway operation.
/// </summary>
public partial class CreateVirtualGatewayResponse : AmazonWebServiceResponse
{
private VirtualGatewayData _virtualGateway;
/// <summary>
/// Gets and sets the property VirtualGateway.
/// <para>
/// The full description of your virtual gateway following the create call.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VirtualGatewayData VirtualGateway
{
get { return this._virtualGateway; }
set { this._virtualGateway = value; }
}
// Check to see if VirtualGateway property is set
internal bool IsSetVirtualGateway()
{
return this._virtualGateway != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the CreateVirtualNode operation.
/// Creates a virtual node within a service mesh.
///
///
/// <para>
/// A virtual node acts as a logical pointer to a particular task group, such as an Amazon
/// ECS service or a Kubernetes deployment. When you create a virtual node, you can specify
/// the service discovery information for your task group, and whether the proxy running
/// in a task group will communicate with other proxies using Transport Layer Security
/// (TLS).
/// </para>
///
/// <para>
/// You define a <code>listener</code> for any inbound traffic that your virtual node
/// expects. Any virtual service that your virtual node expects to communicate to is specified
/// as a <code>backend</code>.
/// </para>
///
/// <para>
/// The response metadata for your new virtual node contains the <code>arn</code> that
/// is associated with the virtual node. Set this value to the full ARN; for example,
/// <code>arn:aws:appmesh:us-west-2:123456789012:myMesh/default/virtualNode/myApp</code>)
/// as the <code>APPMESH_RESOURCE_ARN</code> environment variable for your task group's
/// Envoy proxy container in your task definition or pod spec. This is then mapped to
/// the <code>node.id</code> and <code>node.cluster</code> Envoy parameters.
/// </para>
/// <note>
/// <para>
/// By default, App Mesh uses the name of the resource you specified in <code>APPMESH_RESOURCE_ARN</code>
/// when Envoy is referring to itself in metrics and traces. You can override this behavior
/// by setting the <code>APPMESH_RESOURCE_CLUSTER</code> environment variable with your
/// own name.
/// </para>
/// </note>
/// <para>
/// For more information about virtual nodes, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_nodes.html">Virtual
/// nodes</a>. You must be using <code>1.15.0</code> or later of the Envoy image when
/// setting these variables. For more information aboutApp Mesh Envoy variables, see <a
/// href="https://docs.aws.amazon.com/app-mesh/latest/userguide/envoy.html">Envoy image</a>
/// in the App Mesh User Guide.
/// </para>
/// </summary>
public partial class CreateVirtualNodeRequest : AmazonAppMeshRequest
{
private string _clientToken;
private string _meshName;
private string _meshOwner;
private VirtualNodeSpec _spec;
private List<TagRef> _tags = new List<TagRef>();
private string _virtualNodeName;
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
/// </para>
/// </summary>
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to create the virtual node in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property MeshOwner.
/// <para>
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then the account that you specify must share the mesh with your account
/// before you can create the resource in the service mesh. For more information about
/// mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
/// with shared meshes</a>.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
/// <summary>
/// Gets and sets the property Spec.
/// <para>
/// The virtual node specification to apply.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VirtualNodeSpec Spec
{
get { return this._spec; }
set { this._spec = value; }
}
// Check to see if Spec property is set
internal bool IsSetSpec()
{
return this._spec != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Optional metadata that you can apply to the virtual node to assist with categorization
/// and organization. Each tag consists of a key and an optional value, both of which
/// you define. Tag keys can have a maximum character length of 128 characters, and tag
/// values can have a maximum length of 256 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=50)]
public List<TagRef> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property VirtualNodeName.
/// <para>
/// The name to use for the virtual node.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string VirtualNodeName
{
get { return this._virtualNodeName; }
set { this._virtualNodeName = value; }
}
// Check to see if VirtualNodeName property is set
internal bool IsSetVirtualNodeName()
{
return this._virtualNodeName != null;
}
}
} | 205 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// <zonbook></zonbook><xhtml></xhtml>
/// </summary>
public partial class CreateVirtualNodeResponse : AmazonWebServiceResponse
{
private VirtualNodeData _virtualNode;
/// <summary>
/// Gets and sets the property VirtualNode.
/// <para>
/// The full description of your virtual node following the create call.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VirtualNodeData VirtualNode
{
get { return this._virtualNode; }
set { this._virtualNode = value; }
}
// Check to see if VirtualNode property is set
internal bool IsSetVirtualNode()
{
return this._virtualNode != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the CreateVirtualRouter operation.
/// Creates a virtual router within a service mesh.
///
///
/// <para>
/// Specify a <code>listener</code> for any inbound traffic that your virtual router receives.
/// Create a virtual router for each protocol and port that you need to route. Virtual
/// routers handle traffic for one or more virtual services within your mesh. After you
/// create your virtual router, create and associate routes for your virtual router that
/// direct incoming requests to different virtual nodes.
/// </para>
///
/// <para>
/// For more information about virtual routers, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_routers.html">Virtual
/// routers</a>.
/// </para>
/// </summary>
public partial class CreateVirtualRouterRequest : AmazonAppMeshRequest
{
private string _clientToken;
private string _meshName;
private string _meshOwner;
private VirtualRouterSpec _spec;
private List<TagRef> _tags = new List<TagRef>();
private string _virtualRouterName;
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
/// </para>
/// </summary>
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to create the virtual router in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property MeshOwner.
/// <para>
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then the account that you specify must share the mesh with your account
/// before you can create the resource in the service mesh. For more information about
/// mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
/// with shared meshes</a>.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
/// <summary>
/// Gets and sets the property Spec.
/// <para>
/// The virtual router specification to apply.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VirtualRouterSpec Spec
{
get { return this._spec; }
set { this._spec = value; }
}
// Check to see if Spec property is set
internal bool IsSetSpec()
{
return this._spec != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Optional metadata that you can apply to the virtual router to assist with categorization
/// and organization. Each tag consists of a key and an optional value, both of which
/// you define. Tag keys can have a maximum character length of 128 characters, and tag
/// values can have a maximum length of 256 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=50)]
public List<TagRef> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property VirtualRouterName.
/// <para>
/// The name to use for the virtual router.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string VirtualRouterName
{
get { return this._virtualRouterName; }
set { this._virtualRouterName = value; }
}
// Check to see if VirtualRouterName property is set
internal bool IsSetVirtualRouterName()
{
return this._virtualRouterName != null;
}
}
} | 180 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// <zonbook></zonbook><xhtml></xhtml>
/// </summary>
public partial class CreateVirtualRouterResponse : AmazonWebServiceResponse
{
private VirtualRouterData _virtualRouter;
/// <summary>
/// Gets and sets the property VirtualRouter.
/// <para>
/// The full description of your virtual router following the create call.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VirtualRouterData VirtualRouter
{
get { return this._virtualRouter; }
set { this._virtualRouter = value; }
}
// Check to see if VirtualRouter property is set
internal bool IsSetVirtualRouter()
{
return this._virtualRouter != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the CreateVirtualService operation.
/// Creates a virtual service within a service mesh.
///
///
/// <para>
/// A virtual service is an abstraction of a real service that is provided by a virtual
/// node directly or indirectly by means of a virtual router. Dependent services call
/// your virtual service by its <code>virtualServiceName</code>, and those requests are
/// routed to the virtual node or virtual router that is specified as the provider for
/// the virtual service.
/// </para>
///
/// <para>
/// For more information about virtual services, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/virtual_services.html">Virtual
/// services</a>.
/// </para>
/// </summary>
public partial class CreateVirtualServiceRequest : AmazonAppMeshRequest
{
private string _clientToken;
private string _meshName;
private string _meshOwner;
private VirtualServiceSpec _spec;
private List<TagRef> _tags = new List<TagRef>();
private string _virtualServiceName;
/// <summary>
/// Gets and sets the property ClientToken.
/// <para>
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
/// </para>
/// </summary>
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to create the virtual service in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property MeshOwner.
/// <para>
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then the account that you specify must share the mesh with your account
/// before you can create the resource in the service mesh. For more information about
/// mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
/// with shared meshes</a>.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
/// <summary>
/// Gets and sets the property Spec.
/// <para>
/// The virtual service specification to apply.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VirtualServiceSpec Spec
{
get { return this._spec; }
set { this._spec = value; }
}
// Check to see if Spec property is set
internal bool IsSetSpec()
{
return this._spec != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Optional metadata that you can apply to the virtual service to assist with categorization
/// and organization. Each tag consists of a key and an optional value, both of which
/// you define. Tag keys can have a maximum character length of 128 characters, and tag
/// values can have a maximum length of 256 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=50)]
public List<TagRef> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property VirtualServiceName.
/// <para>
/// The name to use for the virtual service.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string VirtualServiceName
{
get { return this._virtualServiceName; }
set { this._virtualServiceName = value; }
}
// Check to see if VirtualServiceName property is set
internal bool IsSetVirtualServiceName()
{
return this._virtualServiceName != null;
}
}
} | 180 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// <zonbook></zonbook><xhtml></xhtml>
/// </summary>
public partial class CreateVirtualServiceResponse : AmazonWebServiceResponse
{
private VirtualServiceData _virtualService;
/// <summary>
/// Gets and sets the property VirtualService.
/// <para>
/// The full description of your virtual service following the create call.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public VirtualServiceData VirtualService
{
get { return this._virtualService; }
set { this._virtualService = value; }
}
// Check to see if VirtualService property is set
internal bool IsSetVirtualService()
{
return this._virtualService != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the DeleteGatewayRoute operation.
/// Deletes an existing gateway route.
/// </summary>
public partial class DeleteGatewayRouteRequest : AmazonAppMeshRequest
{
private string _gatewayRouteName;
private string _meshName;
private string _meshOwner;
private string _virtualGatewayName;
/// <summary>
/// Gets and sets the property GatewayRouteName.
/// <para>
/// The name of the gateway route to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string GatewayRouteName
{
get { return this._gatewayRouteName; }
set { this._gatewayRouteName = value; }
}
// Check to see if GatewayRouteName property is set
internal bool IsSetGatewayRouteName()
{
return this._gatewayRouteName != null;
}
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to delete the gateway route from.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property MeshOwner.
/// <para>
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then it's the ID of the account that shared the mesh with your account.
/// For more information about mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
/// with shared meshes</a>.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
/// <summary>
/// Gets and sets the property VirtualGatewayName.
/// <para>
/// The name of the virtual gateway to delete the route from.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string VirtualGatewayName
{
get { return this._virtualGatewayName; }
set { this._virtualGatewayName = value; }
}
// Check to see if VirtualGatewayName property is set
internal bool IsSetVirtualGatewayName()
{
return this._virtualGatewayName != null;
}
}
} | 122 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// This is the response object from the DeleteGatewayRoute operation.
/// </summary>
public partial class DeleteGatewayRouteResponse : AmazonWebServiceResponse
{
private GatewayRouteData _gatewayRoute;
/// <summary>
/// Gets and sets the property GatewayRoute.
/// <para>
/// The gateway route that was deleted.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public GatewayRouteData GatewayRoute
{
get { return this._gatewayRoute; }
set { this._gatewayRoute = value; }
}
// Check to see if GatewayRoute property is set
internal bool IsSetGatewayRoute()
{
return this._gatewayRoute != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the DeleteMesh operation.
/// Deletes an existing service mesh.
///
///
/// <para>
/// You must delete all resources (virtual services, routes, virtual routers, and virtual
/// nodes) in the service mesh before you can delete the mesh itself.
/// </para>
/// </summary>
public partial class DeleteMeshRequest : AmazonAppMeshRequest
{
private string _meshName;
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
}
} | 65 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// <zonbook></zonbook><xhtml></xhtml>
/// </summary>
public partial class DeleteMeshResponse : AmazonWebServiceResponse
{
private MeshData _mesh;
/// <summary>
/// Gets and sets the property Mesh.
/// <para>
/// The service mesh that was deleted.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public MeshData Mesh
{
get { return this._mesh; }
set { this._mesh = value; }
}
// Check to see if Mesh property is set
internal bool IsSetMesh()
{
return this._mesh != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the DeleteRoute operation.
/// Deletes an existing route.
/// </summary>
public partial class DeleteRouteRequest : AmazonAppMeshRequest
{
private string _meshName;
private string _meshOwner;
private string _routeName;
private string _virtualRouterName;
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to delete the route in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property MeshOwner.
/// <para>
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then it's the ID of the account that shared the mesh with your account.
/// For more information about mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
/// with shared meshes</a>.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
/// <summary>
/// Gets and sets the property RouteName.
/// <para>
/// The name of the route to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string RouteName
{
get { return this._routeName; }
set { this._routeName = value; }
}
// Check to see if RouteName property is set
internal bool IsSetRouteName()
{
return this._routeName != null;
}
/// <summary>
/// Gets and sets the property VirtualRouterName.
/// <para>
/// The name of the virtual router to delete the route in.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string VirtualRouterName
{
get { return this._virtualRouterName; }
set { this._virtualRouterName = value; }
}
// Check to see if VirtualRouterName property is set
internal bool IsSetVirtualRouterName()
{
return this._virtualRouterName != null;
}
}
} | 122 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// <zonbook></zonbook><xhtml></xhtml>
/// </summary>
public partial class DeleteRouteResponse : AmazonWebServiceResponse
{
private RouteData _route;
/// <summary>
/// Gets and sets the property Route.
/// <para>
/// The route that was deleted.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public RouteData Route
{
get { return this._route; }
set { this._route = value; }
}
// Check to see if Route property is set
internal bool IsSetRoute()
{
return this._route != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appmesh-2019-01-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.AppMesh.Model
{
/// <summary>
/// Container for the parameters to the DeleteVirtualGateway operation.
/// Deletes an existing virtual gateway. You cannot delete a virtual gateway if any gateway
/// routes are associated to it.
/// </summary>
public partial class DeleteVirtualGatewayRequest : AmazonAppMeshRequest
{
private string _meshName;
private string _meshOwner;
private string _virtualGatewayName;
/// <summary>
/// Gets and sets the property MeshName.
/// <para>
/// The name of the service mesh to delete the virtual gateway from.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string MeshName
{
get { return this._meshName; }
set { this._meshName = value; }
}
// Check to see if MeshName property is set
internal bool IsSetMeshName()
{
return this._meshName != null;
}
/// <summary>
/// Gets and sets the property MeshOwner.
/// <para>
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then it's the ID of the account that shared the mesh with your account.
/// For more information about mesh sharing, see <a href="https://docs.aws.amazon.com/app-mesh/latest/userguide/sharing.html">Working
/// with shared meshes</a>.
/// </para>
/// </summary>
[AWSProperty(Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
/// <summary>
/// Gets and sets the property VirtualGatewayName.
/// <para>
/// The name of the virtual gateway to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string VirtualGatewayName
{
get { return this._virtualGatewayName; }
set { this._virtualGatewayName = value; }
}
// Check to see if VirtualGatewayName property is set
internal bool IsSetVirtualGatewayName()
{
return this._virtualGatewayName != null;
}
}
} | 103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.