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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// PutMetricData Request Marshaller /// </summary> public class PutMetricDataRequestMarshaller : IMarshaller<IRequest, PutMetricDataRequest> , 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((PutMetricDataRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(PutMetricDataRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatch"); request.Parameters.Add("Action", "PutMetricData"); request.Parameters.Add("Version", "2010-08-01"); if(publicRequest != null) { if(publicRequest.IsSetMetricData()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.MetricData) { if(publicRequestlistValue.IsSetCounts()) { int publicRequestlistValuelistValueIndex = 1; foreach(var publicRequestlistValuelistValue in publicRequestlistValue.Counts) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Counts" + "." + "member" + "." + publicRequestlistValuelistValueIndex, StringUtils.FromDouble(publicRequestlistValuelistValue)); publicRequestlistValuelistValueIndex++; } } if(publicRequestlistValue.IsSetDimensions()) { int publicRequestlistValuelistValueIndex = 1; foreach(var publicRequestlistValuelistValue in publicRequestlistValue.Dimensions) { if(publicRequestlistValuelistValue.IsSetName()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Dimensions" + "." + "member" + "." + publicRequestlistValuelistValueIndex + "." + "Name", StringUtils.FromString(publicRequestlistValuelistValue.Name)); } if(publicRequestlistValuelistValue.IsSetValue()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Dimensions" + "." + "member" + "." + publicRequestlistValuelistValueIndex + "." + "Value", StringUtils.FromString(publicRequestlistValuelistValue.Value)); } publicRequestlistValuelistValueIndex++; } } if(publicRequestlistValue.IsSetMetricName()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "MetricName", StringUtils.FromString(publicRequestlistValue.MetricName)); } if(publicRequestlistValue.IsSetStatisticValues()) { if(publicRequestlistValue.StatisticValues.IsSetMaximum()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "StatisticValues" + "." + "Maximum", StringUtils.FromDouble(publicRequestlistValue.StatisticValues.Maximum)); } if(publicRequestlistValue.StatisticValues.IsSetMinimum()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "StatisticValues" + "." + "Minimum", StringUtils.FromDouble(publicRequestlistValue.StatisticValues.Minimum)); } if(publicRequestlistValue.StatisticValues.IsSetSampleCount()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "StatisticValues" + "." + "SampleCount", StringUtils.FromDouble(publicRequestlistValue.StatisticValues.SampleCount)); } if(publicRequestlistValue.StatisticValues.IsSetSum()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "StatisticValues" + "." + "Sum", StringUtils.FromDouble(publicRequestlistValue.StatisticValues.Sum)); } } if(publicRequestlistValue.IsSetStorageResolution()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "StorageResolution", StringUtils.FromInt(publicRequestlistValue.StorageResolution)); } if(publicRequestlistValue.IsSetTimestampUtc()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Timestamp", StringUtils.FromDateTimeToISO8601(publicRequestlistValue.TimestampUtc)); } if(publicRequestlistValue.IsSetUnit()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Unit", StringUtils.FromString(publicRequestlistValue.Unit)); } if(publicRequestlistValue.IsSetValue()) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Value", StringUtils.FromDouble(publicRequestlistValue.Value)); } if(publicRequestlistValue.IsSetValues()) { int publicRequestlistValuelistValueIndex = 1; foreach(var publicRequestlistValuelistValue in publicRequestlistValue.Values) { request.Parameters.Add("MetricData" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Values" + "." + "member" + "." + publicRequestlistValuelistValueIndex, StringUtils.FromDouble(publicRequestlistValuelistValue)); publicRequestlistValuelistValueIndex++; } } publicRequestlistValueIndex++; } } if(publicRequest.IsSetNamespace()) { request.Parameters.Add("Namespace", StringUtils.FromString(publicRequest.Namespace)); } } return request; } private static PutMetricDataRequestMarshaller _instance = new PutMetricDataRequestMarshaller(); internal static PutMetricDataRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutMetricDataRequestMarshaller Instance { get { return _instance; } } } }
168
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PutMetricData operation /// </summary> public class PutMetricDataResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { PutMetricDataResponse response = new PutMetricDataResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("PutMetricDataResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, PutMetricDataResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterCombination")) { return InvalidParameterCombinationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValue")) { return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameter")) { return MissingRequiredParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static PutMetricDataResponseUnmarshaller _instance = new PutMetricDataResponseUnmarshaller(); internal static PutMetricDataResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutMetricDataResponseUnmarshaller Instance { get { return _instance; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// PutMetricStream Request Marshaller /// </summary> public class PutMetricStreamRequestMarshaller : IMarshaller<IRequest, PutMetricStreamRequest> , 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((PutMetricStreamRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(PutMetricStreamRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatch"); request.Parameters.Add("Action", "PutMetricStream"); request.Parameters.Add("Version", "2010-08-01"); if(publicRequest != null) { if(publicRequest.IsSetExcludeFilters()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.ExcludeFilters) { if(publicRequestlistValue.IsSetMetricNames()) { int publicRequestlistValuelistValueIndex = 1; foreach(var publicRequestlistValuelistValue in publicRequestlistValue.MetricNames) { request.Parameters.Add("ExcludeFilters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "MetricNames" + "." + "member" + "." + publicRequestlistValuelistValueIndex, StringUtils.FromString(publicRequestlistValuelistValue)); publicRequestlistValuelistValueIndex++; } } if(publicRequestlistValue.IsSetNamespace()) { request.Parameters.Add("ExcludeFilters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Namespace", StringUtils.FromString(publicRequestlistValue.Namespace)); } publicRequestlistValueIndex++; } } if(publicRequest.IsSetFirehoseArn()) { request.Parameters.Add("FirehoseArn", StringUtils.FromString(publicRequest.FirehoseArn)); } if(publicRequest.IsSetIncludeFilters()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.IncludeFilters) { if(publicRequestlistValue.IsSetMetricNames()) { int publicRequestlistValuelistValueIndex = 1; foreach(var publicRequestlistValuelistValue in publicRequestlistValue.MetricNames) { request.Parameters.Add("IncludeFilters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "MetricNames" + "." + "member" + "." + publicRequestlistValuelistValueIndex, StringUtils.FromString(publicRequestlistValuelistValue)); publicRequestlistValuelistValueIndex++; } } if(publicRequestlistValue.IsSetNamespace()) { request.Parameters.Add("IncludeFilters" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Namespace", StringUtils.FromString(publicRequestlistValue.Namespace)); } publicRequestlistValueIndex++; } } if(publicRequest.IsSetIncludeLinkedAccountsMetrics()) { request.Parameters.Add("IncludeLinkedAccountsMetrics", StringUtils.FromBool(publicRequest.IncludeLinkedAccountsMetrics)); } if(publicRequest.IsSetName()) { request.Parameters.Add("Name", StringUtils.FromString(publicRequest.Name)); } if(publicRequest.IsSetOutputFormat()) { request.Parameters.Add("OutputFormat", StringUtils.FromString(publicRequest.OutputFormat)); } if(publicRequest.IsSetRoleArn()) { request.Parameters.Add("RoleArn", StringUtils.FromString(publicRequest.RoleArn)); } if(publicRequest.IsSetStatisticsConfigurations()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.StatisticsConfigurations) { if(publicRequestlistValue.IsSetAdditionalStatistics()) { int publicRequestlistValuelistValueIndex = 1; foreach(var publicRequestlistValuelistValue in publicRequestlistValue.AdditionalStatistics) { request.Parameters.Add("StatisticsConfigurations" + "." + "member" + "." + publicRequestlistValueIndex + "." + "AdditionalStatistics" + "." + "member" + "." + publicRequestlistValuelistValueIndex, StringUtils.FromString(publicRequestlistValuelistValue)); publicRequestlistValuelistValueIndex++; } } if(publicRequestlistValue.IsSetIncludeMetrics()) { int publicRequestlistValuelistValueIndex = 1; foreach(var publicRequestlistValuelistValue in publicRequestlistValue.IncludeMetrics) { if(publicRequestlistValuelistValue.IsSetMetricName()) { request.Parameters.Add("StatisticsConfigurations" + "." + "member" + "." + publicRequestlistValueIndex + "." + "IncludeMetrics" + "." + "member" + "." + publicRequestlistValuelistValueIndex + "." + "MetricName", StringUtils.FromString(publicRequestlistValuelistValue.MetricName)); } if(publicRequestlistValuelistValue.IsSetNamespace()) { request.Parameters.Add("StatisticsConfigurations" + "." + "member" + "." + publicRequestlistValueIndex + "." + "IncludeMetrics" + "." + "member" + "." + publicRequestlistValuelistValueIndex + "." + "Namespace", StringUtils.FromString(publicRequestlistValuelistValue.Namespace)); } publicRequestlistValuelistValueIndex++; } } publicRequestlistValueIndex++; } } if(publicRequest.IsSetTags()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Tags) { if(publicRequestlistValue.IsSetKey()) { request.Parameters.Add("Tags" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Key", StringUtils.FromString(publicRequestlistValue.Key)); } if(publicRequestlistValue.IsSetValue()) { request.Parameters.Add("Tags" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Value", StringUtils.FromString(publicRequestlistValue.Value)); } publicRequestlistValueIndex++; } } } return request; } private static PutMetricStreamRequestMarshaller _instance = new PutMetricStreamRequestMarshaller(); internal static PutMetricStreamRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutMetricStreamRequestMarshaller Instance { get { return _instance; } } } }
194
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PutMetricStream operation /// </summary> public class PutMetricStreamResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { PutMetricStreamResponse response = new PutMetricStreamResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("PutMetricStreamResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } private static void UnmarshallResult(XmlUnmarshallerContext context, PutMetricStreamResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterCombination")) { return InvalidParameterCombinationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValue")) { return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameter")) { return MissingRequiredParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static PutMetricStreamResponseUnmarshaller _instance = new PutMetricStreamResponseUnmarshaller(); internal static PutMetricStreamResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutMetricStreamResponseUnmarshaller Instance { get { return _instance; } } } }
157
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Range Object /// </summary> public class RangeUnmarshaller : IUnmarshaller<Range, XmlUnmarshallerContext>, IUnmarshaller<Range, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Range Unmarshall(XmlUnmarshallerContext context) { Range unmarshalledObject = new Range(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("EndTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StartTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartTime = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public Range Unmarshall(JsonUnmarshallerContext context) { return null; } private static RangeUnmarshaller _instance = new RangeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RangeUnmarshaller 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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceNotFoundException operation /// </summary> public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, XmlUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(XmlUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { ResourceNotFoundException response = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return response; } private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// SetAlarmState Request Marshaller /// </summary> public class SetAlarmStateRequestMarshaller : IMarshaller<IRequest, SetAlarmStateRequest> , 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((SetAlarmStateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SetAlarmStateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatch"); request.Parameters.Add("Action", "SetAlarmState"); request.Parameters.Add("Version", "2010-08-01"); if(publicRequest != null) { if(publicRequest.IsSetAlarmName()) { request.Parameters.Add("AlarmName", StringUtils.FromString(publicRequest.AlarmName)); } if(publicRequest.IsSetStateReason()) { request.Parameters.Add("StateReason", StringUtils.FromString(publicRequest.StateReason)); } if(publicRequest.IsSetStateReasonData()) { request.Parameters.Add("StateReasonData", StringUtils.FromString(publicRequest.StateReasonData)); } if(publicRequest.IsSetStateValue()) { request.Parameters.Add("StateValue", StringUtils.FromString(publicRequest.StateValue)); } } return request; } private static SetAlarmStateRequestMarshaller _instance = new SetAlarmStateRequestMarshaller(); internal static SetAlarmStateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SetAlarmStateRequestMarshaller Instance { get { return _instance; } } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SetAlarmState operation /// </summary> public class SetAlarmStateResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { SetAlarmStateResponse response = new SetAlarmStateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("SetAlarmStateResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, SetAlarmStateResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidFormat")) { return InvalidFormatExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFound")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static SetAlarmStateResponseUnmarshaller _instance = new SetAlarmStateResponseUnmarshaller(); internal static SetAlarmStateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SetAlarmStateResponseUnmarshaller Instance { get { return _instance; } } } }
140
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SingleMetricAnomalyDetector Object /// </summary> public class SingleMetricAnomalyDetectorUnmarshaller : IUnmarshaller<SingleMetricAnomalyDetector, XmlUnmarshallerContext>, IUnmarshaller<SingleMetricAnomalyDetector, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public SingleMetricAnomalyDetector Unmarshall(XmlUnmarshallerContext context) { SingleMetricAnomalyDetector unmarshalledObject = new SingleMetricAnomalyDetector(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Dimensions/member", targetDepth)) { var unmarshaller = DimensionUnmarshaller.Instance; var item = unmarshaller.Unmarshall(context); unmarshalledObject.Dimensions.Add(item); continue; } if (context.TestExpression("MetricName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MetricName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Namespace", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Namespace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Stat", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Stat = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public SingleMetricAnomalyDetector Unmarshall(JsonUnmarshallerContext context) { return null; } private static SingleMetricAnomalyDetectorUnmarshaller _instance = new SingleMetricAnomalyDetectorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SingleMetricAnomalyDetectorUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// StartMetricStreams Request Marshaller /// </summary> public class StartMetricStreamsRequestMarshaller : IMarshaller<IRequest, StartMetricStreamsRequest> , 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((StartMetricStreamsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StartMetricStreamsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatch"); request.Parameters.Add("Action", "StartMetricStreams"); request.Parameters.Add("Version", "2010-08-01"); if(publicRequest != null) { if(publicRequest.IsSetNames()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Names) { request.Parameters.Add("Names" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } } return request; } private static StartMetricStreamsRequestMarshaller _instance = new StartMetricStreamsRequestMarshaller(); internal static StartMetricStreamsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartMetricStreamsRequestMarshaller 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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StartMetricStreams operation /// </summary> public class StartMetricStreamsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { StartMetricStreamsResponse response = new StartMetricStreamsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("StartMetricStreamsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, StartMetricStreamsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValue")) { return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameter")) { return MissingRequiredParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static StartMetricStreamsResponseUnmarshaller _instance = new StartMetricStreamsResponseUnmarshaller(); internal static StartMetricStreamsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartMetricStreamsResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// StopMetricStreams Request Marshaller /// </summary> public class StopMetricStreamsRequestMarshaller : IMarshaller<IRequest, StopMetricStreamsRequest> , 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((StopMetricStreamsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StopMetricStreamsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatch"); request.Parameters.Add("Action", "StopMetricStreams"); request.Parameters.Add("Version", "2010-08-01"); if(publicRequest != null) { if(publicRequest.IsSetNames()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Names) { request.Parameters.Add("Names" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } } return request; } private static StopMetricStreamsRequestMarshaller _instance = new StopMetricStreamsRequestMarshaller(); internal static StopMetricStreamsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StopMetricStreamsRequestMarshaller 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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StopMetricStreams operation /// </summary> public class StopMetricStreamsResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { StopMetricStreamsResponse response = new StopMetricStreamsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("StopMetricStreamsResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, StopMetricStreamsResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValue")) { return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameter")) { return MissingRequiredParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode); } private static StopMetricStreamsResponseUnmarshaller _instance = new StopMetricStreamsResponseUnmarshaller(); internal static StopMetricStreamsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StopMetricStreamsResponseUnmarshaller Instance { get { return _instance; } } } }
144
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.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.CloudWatch"); request.Parameters.Add("Action", "TagResource"); request.Parameters.Add("Version", "2010-08-01"); if(publicRequest != null) { if(publicRequest.IsSetResourceARN()) { request.Parameters.Add("ResourceARN", StringUtils.FromString(publicRequest.ResourceARN)); } if(publicRequest.IsSetTags()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Tags) { if(publicRequestlistValue.IsSetKey()) { request.Parameters.Add("Tags" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Key", StringUtils.FromString(publicRequestlistValue.Key)); } if(publicRequestlistValue.IsSetValue()) { request.Parameters.Add("Tags" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Value", StringUtils.FromString(publicRequestlistValue.Value)); } publicRequestlistValueIndex++; } } } 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; } } } }
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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TagResource operation /// </summary> public class TagResourceResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { TagResourceResponse response = new TagResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("TagResourceResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, TagResourceResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValue")) { return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, 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; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.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> public Tag Unmarshall(XmlUnmarshallerContext context) { Tag unmarshalledObject = new Tag(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("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; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return unmarshalledObject; } } return unmarshalledObject; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <returns></returns> public Tag Unmarshall(JsonUnmarshallerContext context) { return null; } private static TagUnmarshaller _instance = new TagUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagUnmarshaller 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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.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.CloudWatch"); request.Parameters.Add("Action", "UntagResource"); request.Parameters.Add("Version", "2010-08-01"); if(publicRequest != null) { if(publicRequest.IsSetResourceARN()) { request.Parameters.Add("ResourceARN", StringUtils.FromString(publicRequest.ResourceARN)); } if(publicRequest.IsSetTagKeys()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.TagKeys) { request.Parameters.Add("TagKeys" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } } 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; } } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatch.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudWatch.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UntagResource operation /// </summary> public class UntagResourceResponseUnmarshaller : XmlResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { UntagResourceResponse response = new UntagResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("UntagResourceResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")] private static void UnmarshallResult(XmlUnmarshallerContext context, UntagResourceResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceError")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValue")) { return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, 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; } } } }
148
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginators for the CloudWatch service ///</summary> public class CloudWatchPaginatorFactory : ICloudWatchPaginatorFactory { private readonly IAmazonCloudWatch client; internal CloudWatchPaginatorFactory(IAmazonCloudWatch client) { this.client = client; } /// <summary> /// Paginator for DescribeAlarmHistory operation ///</summary> public IDescribeAlarmHistoryPaginator DescribeAlarmHistory(DescribeAlarmHistoryRequest request) { return new DescribeAlarmHistoryPaginator(this.client, request); } /// <summary> /// Paginator for DescribeAlarms operation ///</summary> public IDescribeAlarmsPaginator DescribeAlarms(DescribeAlarmsRequest request) { return new DescribeAlarmsPaginator(this.client, request); } /// <summary> /// Paginator for DescribeAnomalyDetectors operation ///</summary> public IDescribeAnomalyDetectorsPaginator DescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request) { return new DescribeAnomalyDetectorsPaginator(this.client, request); } /// <summary> /// Paginator for DescribeInsightRules operation ///</summary> public IDescribeInsightRulesPaginator DescribeInsightRules(DescribeInsightRulesRequest request) { return new DescribeInsightRulesPaginator(this.client, request); } /// <summary> /// Paginator for GetMetricData operation ///</summary> public IGetMetricDataPaginator GetMetricData(GetMetricDataRequest request) { return new GetMetricDataPaginator(this.client, request); } /// <summary> /// Paginator for ListDashboards operation ///</summary> public IListDashboardsPaginator ListDashboards(ListDashboardsRequest request) { return new ListDashboardsPaginator(this.client, request); } /// <summary> /// Paginator for ListManagedInsightRules operation ///</summary> public IListManagedInsightRulesPaginator ListManagedInsightRules(ListManagedInsightRulesRequest request) { return new ListManagedInsightRulesPaginator(this.client, request); } /// <summary> /// Paginator for ListMetrics operation ///</summary> public IListMetricsPaginator ListMetrics(ListMetricsRequest request) { return new ListMetricsPaginator(this.client, request); } /// <summary> /// Paginator for ListMetricStreams operation ///</summary> public IListMetricStreamsPaginator ListMetricStreams(ListMetricStreamsRequest request) { return new ListMetricStreamsPaginator(this.client, request); } } }
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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Base class for DescribeAlarmHistory paginators. /// </summary> internal sealed partial class DescribeAlarmHistoryPaginator : IPaginator<DescribeAlarmHistoryResponse>, IDescribeAlarmHistoryPaginator { private readonly IAmazonCloudWatch _client; private readonly DescribeAlarmHistoryRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeAlarmHistoryResponse> Responses => new PaginatedResponse<DescribeAlarmHistoryResponse>(this); /// <summary> /// Enumerable containing all of the AlarmHistoryItems /// </summary> public IPaginatedEnumerable<AlarmHistoryItem> AlarmHistoryItems => new PaginatedResultKeyResponse<DescribeAlarmHistoryResponse, AlarmHistoryItem>(this, (i) => i.AlarmHistoryItems); internal DescribeAlarmHistoryPaginator(IAmazonCloudWatch client, DescribeAlarmHistoryRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeAlarmHistoryResponse> IPaginator<DescribeAlarmHistoryResponse>.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; DescribeAlarmHistoryResponse response; do { _request.NextToken = nextToken; response = _client.DescribeAlarmHistory(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeAlarmHistoryResponse> IPaginator<DescribeAlarmHistoryResponse>.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; DescribeAlarmHistoryResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeAlarmHistoryAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Base class for DescribeAlarms paginators. /// </summary> internal sealed partial class DescribeAlarmsPaginator : IPaginator<DescribeAlarmsResponse>, IDescribeAlarmsPaginator { private readonly IAmazonCloudWatch _client; private readonly DescribeAlarmsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeAlarmsResponse> Responses => new PaginatedResponse<DescribeAlarmsResponse>(this); /// <summary> /// Enumerable containing all of the MetricAlarms /// </summary> public IPaginatedEnumerable<MetricAlarm> MetricAlarms => new PaginatedResultKeyResponse<DescribeAlarmsResponse, MetricAlarm>(this, (i) => i.MetricAlarms); /// <summary> /// Enumerable containing all of the CompositeAlarms /// </summary> public IPaginatedEnumerable<CompositeAlarm> CompositeAlarms => new PaginatedResultKeyResponse<DescribeAlarmsResponse, CompositeAlarm>(this, (i) => i.CompositeAlarms); internal DescribeAlarmsPaginator(IAmazonCloudWatch client, DescribeAlarmsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeAlarmsResponse> IPaginator<DescribeAlarmsResponse>.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; DescribeAlarmsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeAlarms(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeAlarmsResponse> IPaginator<DescribeAlarmsResponse>.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; DescribeAlarmsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeAlarmsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Base class for DescribeAnomalyDetectors paginators. /// </summary> internal sealed partial class DescribeAnomalyDetectorsPaginator : IPaginator<DescribeAnomalyDetectorsResponse>, IDescribeAnomalyDetectorsPaginator { private readonly IAmazonCloudWatch _client; private readonly DescribeAnomalyDetectorsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeAnomalyDetectorsResponse> Responses => new PaginatedResponse<DescribeAnomalyDetectorsResponse>(this); /// <summary> /// Enumerable containing all of the AnomalyDetectors /// </summary> public IPaginatedEnumerable<AnomalyDetector> AnomalyDetectors => new PaginatedResultKeyResponse<DescribeAnomalyDetectorsResponse, AnomalyDetector>(this, (i) => i.AnomalyDetectors); internal DescribeAnomalyDetectorsPaginator(IAmazonCloudWatch client, DescribeAnomalyDetectorsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeAnomalyDetectorsResponse> IPaginator<DescribeAnomalyDetectorsResponse>.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; DescribeAnomalyDetectorsResponse response; do { _request.NextToken = nextToken; response = _client.DescribeAnomalyDetectors(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeAnomalyDetectorsResponse> IPaginator<DescribeAnomalyDetectorsResponse>.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; DescribeAnomalyDetectorsResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeAnomalyDetectorsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Base class for DescribeInsightRules paginators. /// </summary> internal sealed partial class DescribeInsightRulesPaginator : IPaginator<DescribeInsightRulesResponse>, IDescribeInsightRulesPaginator { private readonly IAmazonCloudWatch _client; private readonly DescribeInsightRulesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<DescribeInsightRulesResponse> Responses => new PaginatedResponse<DescribeInsightRulesResponse>(this); internal DescribeInsightRulesPaginator(IAmazonCloudWatch client, DescribeInsightRulesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<DescribeInsightRulesResponse> IPaginator<DescribeInsightRulesResponse>.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; DescribeInsightRulesResponse response; do { _request.NextToken = nextToken; response = _client.DescribeInsightRules(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<DescribeInsightRulesResponse> IPaginator<DescribeInsightRulesResponse>.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; DescribeInsightRulesResponse response; do { _request.NextToken = nextToken; response = await _client.DescribeInsightRulesAsync(_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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Base class for GetMetricData paginators. /// </summary> internal sealed partial class GetMetricDataPaginator : IPaginator<GetMetricDataResponse>, IGetMetricDataPaginator { private readonly IAmazonCloudWatch _client; private readonly GetMetricDataRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<GetMetricDataResponse> Responses => new PaginatedResponse<GetMetricDataResponse>(this); /// <summary> /// Enumerable containing all of the MetricDataResults /// </summary> public IPaginatedEnumerable<MetricDataResult> MetricDataResults => new PaginatedResultKeyResponse<GetMetricDataResponse, MetricDataResult>(this, (i) => i.MetricDataResults); /// <summary> /// Enumerable containing all of the Messages /// </summary> public IPaginatedEnumerable<MessageData> Messages => new PaginatedResultKeyResponse<GetMetricDataResponse, MessageData>(this, (i) => i.Messages); internal GetMetricDataPaginator(IAmazonCloudWatch client, GetMetricDataRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<GetMetricDataResponse> IPaginator<GetMetricDataResponse>.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; GetMetricDataResponse response; do { _request.NextToken = nextToken; response = _client.GetMetricData(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<GetMetricDataResponse> IPaginator<GetMetricDataResponse>.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; GetMetricDataResponse response; do { _request.NextToken = nextToken; response = await _client.GetMetricDataAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 monitoring-2010-08-01.normal.json service model. */ namespace Amazon.CloudWatch.Model { /// <summary> /// Paginators for the CloudWatch service ///</summary> public interface ICloudWatchPaginatorFactory { /// <summary> /// Paginator for DescribeAlarmHistory operation ///</summary> IDescribeAlarmHistoryPaginator DescribeAlarmHistory(DescribeAlarmHistoryRequest request); /// <summary> /// Paginator for DescribeAlarms operation ///</summary> IDescribeAlarmsPaginator DescribeAlarms(DescribeAlarmsRequest request); /// <summary> /// Paginator for DescribeAnomalyDetectors operation ///</summary> IDescribeAnomalyDetectorsPaginator DescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request); /// <summary> /// Paginator for DescribeInsightRules operation ///</summary> IDescribeInsightRulesPaginator DescribeInsightRules(DescribeInsightRulesRequest request); /// <summary> /// Paginator for GetMetricData operation ///</summary> IGetMetricDataPaginator GetMetricData(GetMetricDataRequest request); /// <summary> /// Paginator for ListDashboards operation ///</summary> IListDashboardsPaginator ListDashboards(ListDashboardsRequest request); /// <summary> /// Paginator for ListManagedInsightRules operation ///</summary> IListManagedInsightRulesPaginator ListManagedInsightRules(ListManagedInsightRulesRequest request); /// <summary> /// Paginator for ListMetrics operation ///</summary> IListMetricsPaginator ListMetrics(ListMetricsRequest request); /// <summary> /// Paginator for ListMetricStreams operation ///</summary> IListMetricStreamsPaginator ListMetricStreams(ListMetricStreamsRequest request); } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginator for the DescribeAlarmHistory operation ///</summary> public interface IDescribeAlarmHistoryPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeAlarmHistoryResponse> Responses { get; } /// <summary> /// Enumerable containing all of the AlarmHistoryItems /// </summary> IPaginatedEnumerable<AlarmHistoryItem> AlarmHistoryItems { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginator for the DescribeAlarms operation ///</summary> public interface IDescribeAlarmsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeAlarmsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the MetricAlarms /// </summary> IPaginatedEnumerable<MetricAlarm> MetricAlarms { get; } /// <summary> /// Enumerable containing all of the CompositeAlarms /// </summary> IPaginatedEnumerable<CompositeAlarm> CompositeAlarms { get; } } }
43
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginator for the DescribeAnomalyDetectors operation ///</summary> public interface IDescribeAnomalyDetectorsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeAnomalyDetectorsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the AnomalyDetectors /// </summary> IPaginatedEnumerable<AnomalyDetector> AnomalyDetectors { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginator for the DescribeInsightRules operation ///</summary> public interface IDescribeInsightRulesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeInsightRulesResponse> 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 monitoring-2010-08-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginator for the GetMetricData operation ///</summary> public interface IGetMetricDataPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<GetMetricDataResponse> Responses { get; } /// <summary> /// Enumerable containing all of the MetricDataResults /// </summary> IPaginatedEnumerable<MetricDataResult> MetricDataResults { get; } /// <summary> /// Enumerable containing all of the Messages /// </summary> IPaginatedEnumerable<MessageData> Messages { get; } } }
43
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginator for the ListDashboards operation ///</summary> public interface IListDashboardsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListDashboardsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the DashboardEntries /// </summary> IPaginatedEnumerable<DashboardEntry> DashboardEntries { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginator for the ListManagedInsightRules operation ///</summary> public interface IListManagedInsightRulesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListManagedInsightRulesResponse> 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 monitoring-2010-08-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginator for the ListMetrics operation ///</summary> public interface IListMetricsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListMetricsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Metrics /// </summary> IPaginatedEnumerable<Metric> Metrics { get; } /// <summary> /// Enumerable containing all of the OwningAccounts /// </summary> IPaginatedEnumerable<string> OwningAccounts { get; } } }
43
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Paginator for the ListMetricStreams operation ///</summary> public interface IListMetricStreamsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListMetricStreamsResponse> 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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Base class for ListDashboards paginators. /// </summary> internal sealed partial class ListDashboardsPaginator : IPaginator<ListDashboardsResponse>, IListDashboardsPaginator { private readonly IAmazonCloudWatch _client; private readonly ListDashboardsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListDashboardsResponse> Responses => new PaginatedResponse<ListDashboardsResponse>(this); /// <summary> /// Enumerable containing all of the DashboardEntries /// </summary> public IPaginatedEnumerable<DashboardEntry> DashboardEntries => new PaginatedResultKeyResponse<ListDashboardsResponse, DashboardEntry>(this, (i) => i.DashboardEntries); internal ListDashboardsPaginator(IAmazonCloudWatch client, ListDashboardsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListDashboardsResponse> IPaginator<ListDashboardsResponse>.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; ListDashboardsResponse response; do { _request.NextToken = nextToken; response = _client.ListDashboards(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListDashboardsResponse> IPaginator<ListDashboardsResponse>.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; ListDashboardsResponse response; do { _request.NextToken = nextToken; response = await _client.ListDashboardsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Base class for ListManagedInsightRules paginators. /// </summary> internal sealed partial class ListManagedInsightRulesPaginator : IPaginator<ListManagedInsightRulesResponse>, IListManagedInsightRulesPaginator { private readonly IAmazonCloudWatch _client; private readonly ListManagedInsightRulesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListManagedInsightRulesResponse> Responses => new PaginatedResponse<ListManagedInsightRulesResponse>(this); internal ListManagedInsightRulesPaginator(IAmazonCloudWatch client, ListManagedInsightRulesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListManagedInsightRulesResponse> IPaginator<ListManagedInsightRulesResponse>.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; ListManagedInsightRulesResponse response; do { _request.NextToken = nextToken; response = _client.ListManagedInsightRules(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListManagedInsightRulesResponse> IPaginator<ListManagedInsightRulesResponse>.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; ListManagedInsightRulesResponse response; do { _request.NextToken = nextToken; response = await _client.ListManagedInsightRulesAsync(_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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Base class for ListMetrics paginators. /// </summary> internal sealed partial class ListMetricsPaginator : IPaginator<ListMetricsResponse>, IListMetricsPaginator { private readonly IAmazonCloudWatch _client; private readonly ListMetricsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListMetricsResponse> Responses => new PaginatedResponse<ListMetricsResponse>(this); /// <summary> /// Enumerable containing all of the Metrics /// </summary> public IPaginatedEnumerable<Metric> Metrics => new PaginatedResultKeyResponse<ListMetricsResponse, Metric>(this, (i) => i.Metrics); /// <summary> /// Enumerable containing all of the OwningAccounts /// </summary> public IPaginatedEnumerable<string> OwningAccounts => new PaginatedResultKeyResponse<ListMetricsResponse, string>(this, (i) => i.OwningAccounts); internal ListMetricsPaginator(IAmazonCloudWatch client, ListMetricsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListMetricsResponse> IPaginator<ListMetricsResponse>.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; ListMetricsResponse response; do { _request.NextToken = nextToken; response = _client.ListMetrics(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListMetricsResponse> IPaginator<ListMetricsResponse>.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; ListMetricsResponse response; do { _request.NextToken = nextToken; response = await _client.ListMetricsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CloudWatch.Model { /// <summary> /// Base class for ListMetricStreams paginators. /// </summary> internal sealed partial class ListMetricStreamsPaginator : IPaginator<ListMetricStreamsResponse>, IListMetricStreamsPaginator { private readonly IAmazonCloudWatch _client; private readonly ListMetricStreamsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListMetricStreamsResponse> Responses => new PaginatedResponse<ListMetricStreamsResponse>(this); internal ListMetricStreamsPaginator(IAmazonCloudWatch client, ListMetricStreamsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListMetricStreamsResponse> IPaginator<ListMetricStreamsResponse>.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; ListMetricStreamsResponse response; do { _request.NextToken = nextToken; response = _client.ListMetricStreams(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListMetricStreamsResponse> IPaginator<ListMetricStreamsResponse>.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; ListMetricStreamsResponse response; do { _request.NextToken = nextToken; response = await _client.ListMetricStreamsAsync(_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 monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.CloudWatch.Model; using Amazon.CloudWatch.Model.Internal.MarshallTransformations; using Amazon.CloudWatch.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudWatch { /// <summary> /// Implementation for accessing CloudWatch /// /// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources /// and the applications you run on Amazon Web Services in real time. You can use CloudWatch /// to collect and track metrics, which are the variables you want to measure for your /// resources and applications. /// /// /// <para> /// CloudWatch alarms send notifications or automatically change the resources you are /// monitoring based on rules that you define. For example, you can monitor the CPU usage /// and disk reads and writes of your Amazon EC2 instances. Then, use this data to determine /// whether you should launch additional instances to handle increased load. You can also /// use this data to stop under-used instances to save money. /// </para> /// /// <para> /// In addition to monitoring the built-in metrics that come with Amazon Web Services, /// you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility /// into resource utilization, application performance, and operational health. /// </para> /// </summary> public partial class AmazonCloudWatchClient : AmazonServiceClient, IAmazonCloudWatch { private static IServiceMetadata serviceMetadata = new AmazonCloudWatchMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private ICloudWatchPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICloudWatchPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudWatchPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonCloudWatchClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCloudWatchClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCloudWatchClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(AmazonCloudWatchConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudWatchClient(AWSCredentials credentials) : this(credentials, new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudWatchClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudWatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Credentials and an /// AmazonCloudWatchClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(AWSCredentials credentials, AmazonCloudWatchConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudWatchClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudWatchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudWatchClient 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 AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudWatchConfig 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 AmazonCloudWatchEndpointResolver()); } /// <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 DeleteAlarms /// <summary> /// Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, /// this total can include no more than one composite alarm. For example, you could delete /// 99 metric alarms and one composite alarms with one operation, but you can't delete /// two composite alarms with one operation. /// /// /// <para> /// If you specify an incorrect alarm name or make any other error in the operation, /// no alarms are deleted. To confirm that alarms were deleted successfully, you can use /// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> /// operation after using <code>DeleteAlarms</code>. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms service method.</param> /// /// <returns>The response from the DeleteAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> public virtual DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlarmsResponseUnmarshaller.Instance; return Invoke<DeleteAlarmsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteAlarms operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAlarms /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> public virtual IAsyncResult BeginDeleteAlarms(DeleteAlarmsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlarmsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteAlarms operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAlarms.</param> /// /// <returns>Returns a DeleteAlarmsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> public virtual DeleteAlarmsResponse EndDeleteAlarms(IAsyncResult asyncResult) { return EndInvoke<DeleteAlarmsResponse>(asyncResult); } #endregion #region DeleteAnomalyDetector /// <summary> /// Deletes the specified anomaly detection model from your account. For more information /// about how to delete an anomaly detection model, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting /// an anomaly detection model</a> in the <i>CloudWatch User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector service method.</param> /// /// <returns>The response from the DeleteAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> public virtual DeleteAnomalyDetectorResponse DeleteAnomalyDetector(DeleteAnomalyDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance; return Invoke<DeleteAnomalyDetectorResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteAnomalyDetector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAnomalyDetector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> public virtual IAsyncResult BeginDeleteAnomalyDetector(DeleteAnomalyDetectorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteAnomalyDetector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAnomalyDetector.</param> /// /// <returns>Returns a DeleteAnomalyDetectorResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> public virtual DeleteAnomalyDetectorResponse EndDeleteAnomalyDetector(IAsyncResult asyncResult) { return EndInvoke<DeleteAnomalyDetectorResponse>(asyncResult); } #endregion #region DeleteDashboards /// <summary> /// Deletes all dashboards that you specify. You can specify up to 100 dashboards to delete. /// If there is an error during this call, no dashboards are deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards service method.</param> /// /// <returns>The response from the DeleteDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> public virtual DeleteDashboardsResponse DeleteDashboards(DeleteDashboardsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDashboardsResponseUnmarshaller.Instance; return Invoke<DeleteDashboardsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteDashboards operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDashboards /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> public virtual IAsyncResult BeginDeleteDashboards(DeleteDashboardsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDashboardsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteDashboards operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDashboards.</param> /// /// <returns>Returns a DeleteDashboardsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> public virtual DeleteDashboardsResponse EndDeleteDashboards(IAsyncResult asyncResult) { return EndInvoke<DeleteDashboardsResponse>(asyncResult); } #endregion #region DeleteInsightRules /// <summary> /// Permanently deletes the specified Contributor Insights rules. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules service method.</param> /// /// <returns>The response from the DeleteInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> public virtual DeleteInsightRulesResponse DeleteInsightRules(DeleteInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInsightRulesResponseUnmarshaller.Instance; return Invoke<DeleteInsightRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> public virtual IAsyncResult BeginDeleteInsightRules(DeleteInsightRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInsightRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteInsightRules.</param> /// /// <returns>Returns a DeleteInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> public virtual DeleteInsightRulesResponse EndDeleteInsightRules(IAsyncResult asyncResult) { return EndInvoke<DeleteInsightRulesResponse>(asyncResult); } #endregion #region DeleteMetricStream /// <summary> /// Permanently deletes the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream service method.</param> /// /// <returns>The response from the DeleteMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> public virtual DeleteMetricStreamResponse DeleteMetricStream(DeleteMetricStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMetricStreamResponseUnmarshaller.Instance; return Invoke<DeleteMetricStreamResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteMetricStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteMetricStream /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> public virtual IAsyncResult BeginDeleteMetricStream(DeleteMetricStreamRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMetricStreamResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteMetricStream operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteMetricStream.</param> /// /// <returns>Returns a DeleteMetricStreamResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> public virtual DeleteMetricStreamResponse EndDeleteMetricStream(IAsyncResult asyncResult) { return EndInvoke<DeleteMetricStreamResponse>(asyncResult); } #endregion #region DescribeAlarmHistory /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual DescribeAlarmHistoryResponse DescribeAlarmHistory() { return DescribeAlarmHistory(new DescribeAlarmHistoryRequest()); } /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory service method.</param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual DescribeAlarmHistoryResponse DescribeAlarmHistory(DescribeAlarmHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmHistoryResponseUnmarshaller.Instance; return Invoke<DescribeAlarmHistoryResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAlarmHistory operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAlarmHistory /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual IAsyncResult BeginDescribeAlarmHistory(DescribeAlarmHistoryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmHistoryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAlarmHistory operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAlarmHistory.</param> /// /// <returns>Returns a DescribeAlarmHistoryResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual DescribeAlarmHistoryResponse EndDescribeAlarmHistory(IAsyncResult asyncResult) { return EndInvoke<DescribeAlarmHistoryResponse>(asyncResult); } #endregion #region DescribeAlarms /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual DescribeAlarmsResponse DescribeAlarms() { return DescribeAlarms(new DescribeAlarmsRequest()); } /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms service method.</param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsResponseUnmarshaller.Instance; return Invoke<DescribeAlarmsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAlarms operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAlarms /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual IAsyncResult BeginDescribeAlarms(DescribeAlarmsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAlarms operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAlarms.</param> /// /// <returns>Returns a DescribeAlarmsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual DescribeAlarmsResponse EndDescribeAlarms(IAsyncResult asyncResult) { return EndInvoke<DescribeAlarmsResponse>(asyncResult); } #endregion #region DescribeAlarmsForMetric /// <summary> /// Retrieves the alarms for the specified metric. To filter the results, specify a statistic, /// period, or unit. /// /// /// <para> /// This operation retrieves only standard alarms that are based on the specified metric. /// It does not return alarms based on math expressions that use the specified metric, /// or composite alarms that use the specified metric. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric service method.</param> /// /// <returns>The response from the DescribeAlarmsForMetric service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> public virtual DescribeAlarmsForMetricResponse DescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsForMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance; return Invoke<DescribeAlarmsForMetricResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAlarmsForMetric operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAlarmsForMetric /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> public virtual IAsyncResult BeginDescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsForMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAlarmsForMetric operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAlarmsForMetric.</param> /// /// <returns>Returns a DescribeAlarmsForMetricResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> public virtual DescribeAlarmsForMetricResponse EndDescribeAlarmsForMetric(IAsyncResult asyncResult) { return EndInvoke<DescribeAlarmsForMetricResponse>(asyncResult); } #endregion #region DescribeAnomalyDetectors /// <summary> /// Lists the anomaly detection models that you have created in your account. For single /// metric anomaly detectors, you can list all of the models in your account or filter /// the results to only the models that are related to a certain namespace, metric name, /// or metric dimension. For metric math anomaly detectors, you can list them by adding /// <code>METRIC_MATH</code> to the <code>AnomalyDetectorTypes</code> array. This will /// return all metric math anomaly detectors in your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors service method.</param> /// /// <returns>The response from the DescribeAnomalyDetectors service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> public virtual DescribeAnomalyDetectorsResponse DescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnomalyDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnomalyDetectorsResponseUnmarshaller.Instance; return Invoke<DescribeAnomalyDetectorsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAnomalyDetectors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAnomalyDetectors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> public virtual IAsyncResult BeginDescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnomalyDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnomalyDetectorsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAnomalyDetectors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAnomalyDetectors.</param> /// /// <returns>Returns a DescribeAnomalyDetectorsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> public virtual DescribeAnomalyDetectorsResponse EndDescribeAnomalyDetectors(IAsyncResult asyncResult) { return EndInvoke<DescribeAnomalyDetectorsResponse>(asyncResult); } #endregion #region DescribeInsightRules /// <summary> /// Returns a list of all the Contributor Insights rules in your account. /// /// /// <para> /// For more information about Contributor Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules service method.</param> /// /// <returns>The response from the DescribeInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> public virtual DescribeInsightRulesResponse DescribeInsightRules(DescribeInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInsightRulesResponseUnmarshaller.Instance; return Invoke<DescribeInsightRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> public virtual IAsyncResult BeginDescribeInsightRules(DescribeInsightRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInsightRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeInsightRules.</param> /// /// <returns>Returns a DescribeInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> public virtual DescribeInsightRulesResponse EndDescribeInsightRules(IAsyncResult asyncResult) { return EndInvoke<DescribeInsightRulesResponse>(asyncResult); } #endregion #region DisableAlarmActions /// <summary> /// Disables the actions for the specified alarms. When an alarm's actions are disabled, /// the alarm actions do not execute when the alarm state changes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions service method.</param> /// /// <returns>The response from the DisableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> public virtual DisableAlarmActionsResponse DisableAlarmActions(DisableAlarmActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableAlarmActionsResponseUnmarshaller.Instance; return Invoke<DisableAlarmActionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DisableAlarmActions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableAlarmActions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> public virtual IAsyncResult BeginDisableAlarmActions(DisableAlarmActionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableAlarmActionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DisableAlarmActions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableAlarmActions.</param> /// /// <returns>Returns a DisableAlarmActionsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> public virtual DisableAlarmActionsResponse EndDisableAlarmActions(IAsyncResult asyncResult) { return EndInvoke<DisableAlarmActionsResponse>(asyncResult); } #endregion #region DisableInsightRules /// <summary> /// Disables the specified Contributor Insights rules. When rules are disabled, they do /// not analyze log groups and do not incur costs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules service method.</param> /// /// <returns>The response from the DisableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> public virtual DisableInsightRulesResponse DisableInsightRules(DisableInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableInsightRulesResponseUnmarshaller.Instance; return Invoke<DisableInsightRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DisableInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> public virtual IAsyncResult BeginDisableInsightRules(DisableInsightRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableInsightRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DisableInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableInsightRules.</param> /// /// <returns>Returns a DisableInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> public virtual DisableInsightRulesResponse EndDisableInsightRules(IAsyncResult asyncResult) { return EndInvoke<DisableInsightRulesResponse>(asyncResult); } #endregion #region EnableAlarmActions /// <summary> /// Enables the actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> public virtual EnableAlarmActionsResponse EnableAlarmActions(EnableAlarmActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return Invoke<EnableAlarmActionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the EnableAlarmActions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableAlarmActions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> public virtual IAsyncResult BeginEnableAlarmActions(EnableAlarmActionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = EnableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the EnableAlarmActions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableAlarmActions.</param> /// /// <returns>Returns a EnableAlarmActionsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> public virtual EnableAlarmActionsResponse EndEnableAlarmActions(IAsyncResult asyncResult) { return EndInvoke<EnableAlarmActionsResponse>(asyncResult); } #endregion #region EnableInsightRules /// <summary> /// Enables the specified Contributor Insights rules. When rules are enabled, they immediately /// begin analyzing log data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules service method.</param> /// /// <returns>The response from the EnableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> public virtual EnableInsightRulesResponse EnableInsightRules(EnableInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableInsightRulesResponseUnmarshaller.Instance; return Invoke<EnableInsightRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the EnableInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> public virtual IAsyncResult BeginEnableInsightRules(EnableInsightRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = EnableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableInsightRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the EnableInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableInsightRules.</param> /// /// <returns>Returns a EnableInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> public virtual EnableInsightRulesResponse EndEnableInsightRules(IAsyncResult asyncResult) { return EndInvoke<EnableInsightRulesResponse>(asyncResult); } #endregion #region GetDashboard /// <summary> /// Displays the details of the dashboard that you specify. /// /// /// <para> /// To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data /// returned within <code>DashboardBody</code> as the template for the new dashboard when /// you call <code>PutDashboard</code> to create the copy. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDashboard service method.</param> /// /// <returns>The response from the GetDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> public virtual GetDashboardResponse GetDashboard(GetDashboardRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDashboardResponseUnmarshaller.Instance; return Invoke<GetDashboardResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetDashboard operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDashboard operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDashboard /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> public virtual IAsyncResult BeginGetDashboard(GetDashboardRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDashboardResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetDashboard operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDashboard.</param> /// /// <returns>Returns a GetDashboardResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> public virtual GetDashboardResponse EndGetDashboard(IAsyncResult asyncResult) { return EndInvoke<GetDashboardResponse>(asyncResult); } #endregion #region GetInsightRuleReport /// <summary> /// This operation returns the time series data collected by a Contributor Insights rule. /// The data includes the identity and number of contributors to the log group. /// /// /// <para> /// You can also optionally return one or more statistics about each data point in the /// time series. These statistics can include the following: /// </para> /// <ul> <li> /// <para> /// <code>UniqueContributors</code> -- the number of unique contributors for each data /// point. /// </para> /// </li> <li> /// <para> /// <code>MaxContributorValue</code> -- the value of the top contributor for each data /// point. The identity of the contributor might change for each data point in the graph. /// </para> /// /// <para> /// If this rule aggregates by COUNT, the top contributor for each data point is the contributor /// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor /// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>, /// during that period. /// </para> /// </li> <li> /// <para> /// <code>SampleCount</code> -- the number of data points matched by the rule. /// </para> /// </li> <li> /// <para> /// <code>Sum</code> -- the sum of the values from all contributors during the time period /// represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Minimum</code> -- the minimum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Maximum</code> -- the maximum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Average</code> -- the average value from all contributors during the time period /// represented by that data point. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport service method.</param> /// /// <returns>The response from the GetInsightRuleReport service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> public virtual GetInsightRuleReportResponse GetInsightRuleReport(GetInsightRuleReportRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetInsightRuleReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetInsightRuleReportResponseUnmarshaller.Instance; return Invoke<GetInsightRuleReportResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetInsightRuleReport operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetInsightRuleReport /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> public virtual IAsyncResult BeginGetInsightRuleReport(GetInsightRuleReportRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetInsightRuleReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetInsightRuleReportResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetInsightRuleReport operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetInsightRuleReport.</param> /// /// <returns>Returns a GetInsightRuleReportResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> public virtual GetInsightRuleReportResponse EndGetInsightRuleReport(IAsyncResult asyncResult) { return EndInvoke<GetInsightRuleReportResponse>(asyncResult); } #endregion #region GetMetricData /// <summary> /// You can use the <code>GetMetricData</code> API to retrieve CloudWatch metric values. /// The operation can also include a CloudWatch Metrics Insights query, and one or more /// metric math functions. /// /// /// <para> /// A <code>GetMetricData</code> operation that does not include a query can retrieve /// as many as 500 different metrics in a single request, with a total of as many as 100,800 /// data points. You can also optionally perform metric math expressions on the values /// of the returned statistics, to create new time series that represent new insights /// into your data. For example, using Lambda metrics, you could divide the Errors metric /// by the Invocations metric to get an error rate time series. For more information about /// metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric /// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// If you include a Metrics Insights query, each <code>GetMetricData</code> operation /// can include only one query. But the same <code>GetMetricData</code> operation can /// also retrieve other metrics. Metrics Insights queries can query only the most recent /// three hours of metric data. For more information about Metrics Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html">Query /// your metrics with CloudWatch Metrics Insights</a>. /// </para> /// /// <para> /// Calls to the <code>GetMetricData</code> API have a different pricing structure than /// calls to <code>GetMetricStatistics</code>. For more information about pricing, see /// <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// If you omit <code>Unit</code> in your request, all data that was collected with any /// unit is returned, along with the corresponding units that were specified when the /// data was reported to CloudWatch. If you specify a unit, the operation returns only /// data that was collected with that unit specified. If you specify a unit that does /// not match the data collected, the results of the operation are null. CloudWatch does /// not perform unit conversions. /// </para> /// /// <para> /// <b>Using Metrics Insights queries with metric math</b> /// </para> /// /// <para> /// You can't mix a Metric Insights query and metric math syntax in the same expression, /// but you can reference results from a Metrics Insights query within other Metric math /// expressions. A Metrics Insights query without a <b>GROUP BY</b> clause returns a single /// time-series (TS), and can be used as input for a metric math expression that expects /// a single time series. A Metrics Insights query with a <b>GROUP BY</b> clause returns /// an array of time-series (TS[]), and can be used as input for a metric math expression /// that expects an array of time series. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricData service method.</param> /// /// <returns>The response from the GetMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> public virtual GetMetricDataResponse GetMetricData(GetMetricDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricDataResponseUnmarshaller.Instance; return Invoke<GetMetricDataResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetMetricData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMetricData operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetricData /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> public virtual IAsyncResult BeginGetMetricData(GetMetricDataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricDataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetMetricData operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetricData.</param> /// /// <returns>Returns a GetMetricDataResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> public virtual GetMetricDataResponse EndGetMetricData(IAsyncResult asyncResult) { return EndInvoke<GetMetricDataResponse>(asyncResult); } #endregion #region GetMetricStatistics /// <summary> /// Gets statistics for the specified metric. /// /// /// <para> /// The maximum number of data points returned from a single call is 1,440. If you request /// more than 1,440 data points, CloudWatch returns an error. To reduce the number of /// data points, you can narrow the specified time range and make multiple requests across /// adjacent time ranges, or you can increase the specified period. Data points are not /// returned in chronological order. /// </para> /// /// <para> /// CloudWatch aggregates data points based on the length of the period that you specify. /// For example, if you request statistics with a one-hour period, CloudWatch aggregates /// all data points with time stamps that fall within each one-hour period. Therefore, /// the number of values aggregated by CloudWatch is larger than the number of data points /// returned. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The SampleCount value of the statistic set is 1. /// </para> /// </li> <li> /// <para> /// The Min and the Max values of the statistic set are equal. /// </para> /// </li> </ul> /// <para> /// Percentile statistics are not available for metrics when any of the metric values /// are negative numbers. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016. /// </para> /// /// <para> /// For information about metrics and dimensions supported by Amazon Web Services services, /// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon /// CloudWatch Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics service method.</param> /// /// <returns>The response from the GetMetricStatistics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> public virtual GetMetricStatisticsResponse GetMetricStatistics(GetMetricStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStatisticsResponseUnmarshaller.Instance; return Invoke<GetMetricStatisticsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetMetricStatistics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetricStatistics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> public virtual IAsyncResult BeginGetMetricStatistics(GetMetricStatisticsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStatisticsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetMetricStatistics operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetricStatistics.</param> /// /// <returns>Returns a GetMetricStatisticsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> public virtual GetMetricStatisticsResponse EndGetMetricStatistics(IAsyncResult asyncResult) { return EndInvoke<GetMetricStatisticsResponse>(asyncResult); } #endregion #region GetMetricStream /// <summary> /// Returns information about the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStream service method.</param> /// /// <returns>The response from the GetMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> public virtual GetMetricStreamResponse GetMetricStream(GetMetricStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStreamResponseUnmarshaller.Instance; return Invoke<GetMetricStreamResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetMetricStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMetricStream operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetricStream /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> public virtual IAsyncResult BeginGetMetricStream(GetMetricStreamRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStreamResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetMetricStream operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetricStream.</param> /// /// <returns>Returns a GetMetricStreamResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> public virtual GetMetricStreamResponse EndGetMetricStream(IAsyncResult asyncResult) { return EndInvoke<GetMetricStreamResponse>(asyncResult); } #endregion #region GetMetricWidgetImage /// <summary> /// You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph /// of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this /// image into your services and products, such as wiki pages, reports, and documents. /// You could also retrieve images regularly, such as every minute, and create your own /// custom live dashboard. /// /// /// <para> /// The graph you retrieve can include all CloudWatch metric graph features, including /// metric math and horizontal and vertical annotations. /// </para> /// /// <para> /// There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code> /// action has the following limits: /// </para> /// <ul> <li> /// <para> /// As many as 100 metrics in the graph. /// </para> /// </li> <li> /// <para> /// Up to 100 KB uncompressed payload. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage service method.</param> /// /// <returns>The response from the GetMetricWidgetImage service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> public virtual GetMetricWidgetImageResponse GetMetricWidgetImage(GetMetricWidgetImageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricWidgetImageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricWidgetImageResponseUnmarshaller.Instance; return Invoke<GetMetricWidgetImageResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetMetricWidgetImage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetricWidgetImage /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> public virtual IAsyncResult BeginGetMetricWidgetImage(GetMetricWidgetImageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricWidgetImageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricWidgetImageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetMetricWidgetImage operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetricWidgetImage.</param> /// /// <returns>Returns a GetMetricWidgetImageResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> public virtual GetMetricWidgetImageResponse EndGetMetricWidgetImage(IAsyncResult asyncResult) { return EndInvoke<GetMetricWidgetImageResponse>(asyncResult); } #endregion #region ListDashboards /// <summary> /// Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>, /// only those dashboards with names starting with the prefix are listed. Otherwise, all /// dashboards in your account are listed. /// /// /// <para> /// <code>ListDashboards</code> returns up to 1000 results on one page. If there are /// more than 1000 dashboards, you can call <code>ListDashboards</code> again and include /// the value you received for <code>NextToken</code> in the first call, to receive the /// next 1000 results. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDashboards service method.</param> /// /// <returns>The response from the ListDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> public virtual ListDashboardsResponse ListDashboards(ListDashboardsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDashboardsResponseUnmarshaller.Instance; return Invoke<ListDashboardsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListDashboards operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDashboards operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDashboards /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> public virtual IAsyncResult BeginListDashboards(ListDashboardsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDashboardsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListDashboards operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDashboards.</param> /// /// <returns>Returns a ListDashboardsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> public virtual ListDashboardsResponse EndListDashboards(IAsyncResult asyncResult) { return EndInvoke<ListDashboardsResponse>(asyncResult); } #endregion #region ListManagedInsightRules /// <summary> /// Returns a list that contains the number of managed Contributor Insights rules in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules service method.</param> /// /// <returns>The response from the ListManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> public virtual ListManagedInsightRulesResponse ListManagedInsightRules(ListManagedInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedInsightRulesResponseUnmarshaller.Instance; return Invoke<ListManagedInsightRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListManagedInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListManagedInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> public virtual IAsyncResult BeginListManagedInsightRules(ListManagedInsightRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedInsightRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListManagedInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListManagedInsightRules.</param> /// /// <returns>Returns a ListManagedInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> public virtual ListManagedInsightRulesResponse EndListManagedInsightRules(IAsyncResult asyncResult) { return EndInvoke<ListManagedInsightRulesResponse>(asyncResult); } #endregion #region ListMetrics /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual ListMetricsResponse ListMetrics() { return ListMetrics(new ListMetricsRequest()); } /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetrics service method.</param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual ListMetricsResponse ListMetrics(ListMetricsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricsResponseUnmarshaller.Instance; return Invoke<ListMetricsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListMetrics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListMetrics operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListMetrics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual IAsyncResult BeginListMetrics(ListMetricsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListMetrics operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListMetrics.</param> /// /// <returns>Returns a ListMetricsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual ListMetricsResponse EndListMetrics(IAsyncResult asyncResult) { return EndInvoke<ListMetricsResponse>(asyncResult); } #endregion #region ListMetricStreams /// <summary> /// Returns a list of metric streams in this account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams service method.</param> /// /// <returns>The response from the ListMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> public virtual ListMetricStreamsResponse ListMetricStreams(ListMetricStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricStreamsResponseUnmarshaller.Instance; return Invoke<ListMetricStreamsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListMetricStreams operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListMetricStreams /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> public virtual IAsyncResult BeginListMetricStreams(ListMetricStreamsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricStreamsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListMetricStreams operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListMetricStreams.</param> /// /// <returns>Returns a ListMetricStreamsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> public virtual ListMetricStreamsResponse EndListMetricStreams(IAsyncResult asyncResult) { return EndInvoke<ListMetricStreamsResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor /// Insights rules support tagging. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/monitoring-2010-08-01/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 CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region PutAnomalyDetector /// <summary> /// Creates an anomaly detection model for a CloudWatch metric. You can use the model /// to display a band of expected normal values when the metric is graphed. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch /// Anomaly Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector service method.</param> /// /// <returns>The response from the PutAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> public virtual PutAnomalyDetectorResponse PutAnomalyDetector(PutAnomalyDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAnomalyDetectorResponseUnmarshaller.Instance; return Invoke<PutAnomalyDetectorResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutAnomalyDetector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutAnomalyDetector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> public virtual IAsyncResult BeginPutAnomalyDetector(PutAnomalyDetectorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAnomalyDetectorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutAnomalyDetector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutAnomalyDetector.</param> /// /// <returns>Returns a PutAnomalyDetectorResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> public virtual PutAnomalyDetectorResponse EndPutAnomalyDetector(IAsyncResult asyncResult) { return EndInvoke<PutAnomalyDetectorResponse>(asyncResult); } #endregion #region PutCompositeAlarm /// <summary> /// Creates or updates a <i>composite alarm</i>. When you create a composite alarm, you /// specify a rule expression for the alarm that takes into account the alarm states of /// other alarms that you have created. The composite alarm goes into ALARM state only /// if all conditions of the rule are met. /// /// /// <para> /// The alarms specified in a composite alarm's rule expression can include metric alarms /// and other composite alarms. The rule expression of a composite alarm can include as /// many as 100 underlying alarms. Any single alarm can be included in the rule expressions /// of as many as 150 composite alarms. /// </para> /// /// <para> /// Using composite alarms can reduce alarm noise. You can create multiple metric alarms, /// and also create a composite alarm and set up alerts only for the composite alarm. /// For example, you could create a composite alarm that goes into ALARM state only when /// more than one of the underlying metric alarms are in ALARM state. /// </para> /// /// <para> /// Currently, the only alarm actions that can be taken by composite alarms are notifying /// SNS topics. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. For a composite alarm, this initial time after /// creation is the only time that the alarm can be in <code>INSUFFICIENT_DATA</code> /// state. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// To use this operation, you must be signed on with the <code>cloudwatch:PutCompositeAlarm</code> /// permission that is scoped to <code>*</code>. You can't create a composite alarms if /// your <code>cloudwatch:PutCompositeAlarm</code> permission has a narrower scope. /// </para> /// /// <para> /// If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to /// create a composite alarm that has Systems Manager OpsItem actions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm service method.</param> /// /// <returns>The response from the PutCompositeAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> public virtual PutCompositeAlarmResponse PutCompositeAlarm(PutCompositeAlarmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCompositeAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCompositeAlarmResponseUnmarshaller.Instance; return Invoke<PutCompositeAlarmResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutCompositeAlarm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutCompositeAlarm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> public virtual IAsyncResult BeginPutCompositeAlarm(PutCompositeAlarmRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutCompositeAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCompositeAlarmResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutCompositeAlarm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutCompositeAlarm.</param> /// /// <returns>Returns a PutCompositeAlarmResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> public virtual PutCompositeAlarmResponse EndPutCompositeAlarm(IAsyncResult asyncResult) { return EndInvoke<PutCompositeAlarmResponse>(asyncResult); } #endregion #region PutDashboard /// <summary> /// Creates a dashboard if it does not already exist, or updates an existing dashboard. /// If you update a dashboard, the entire contents are replaced with what you specify /// here. /// /// /// <para> /// All dashboards in your account are global, not region-specific. /// </para> /// /// <para> /// A simple way to create a dashboard using <code>PutDashboard</code> is to copy an existing /// dashboard. To copy an existing dashboard using the console, you can load the dashboard /// and then use the View/edit source command in the Actions menu to display the JSON /// block for that dashboard. Another way to copy a dashboard is to use <code>GetDashboard</code>, /// and then use the data returned within <code>DashboardBody</code> as the template for /// the new dashboard when you call <code>PutDashboard</code>. /// </para> /// /// <para> /// When you create a dashboard with <code>PutDashboard</code>, a good practice is to /// add a text widget at the top of the dashboard with a message that the dashboard was /// created by script and should not be changed in the console. This message could also /// point console users to the location of the <code>DashboardBody</code> script or the /// CloudFormation template used to create the dashboard. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutDashboard service method.</param> /// /// <returns>The response from the PutDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardInvalidInputErrorException"> /// Some part of the dashboard data is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> public virtual PutDashboardResponse PutDashboard(PutDashboardRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = PutDashboardResponseUnmarshaller.Instance; return Invoke<PutDashboardResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutDashboard operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutDashboard operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutDashboard /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> public virtual IAsyncResult BeginPutDashboard(PutDashboardRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = PutDashboardResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutDashboard operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutDashboard.</param> /// /// <returns>Returns a PutDashboardResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> public virtual PutDashboardResponse EndPutDashboard(IAsyncResult asyncResult) { return EndInvoke<PutDashboardResponse>(asyncResult); } #endregion #region PutInsightRule /// <summary> /// Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs /// log group, enabling you to find contributor data for the log events in that log group. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutInsightRule service method.</param> /// /// <returns>The response from the PutInsightRule service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> public virtual PutInsightRuleResponse PutInsightRule(PutInsightRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutInsightRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutInsightRuleResponseUnmarshaller.Instance; return Invoke<PutInsightRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutInsightRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutInsightRule operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutInsightRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> public virtual IAsyncResult BeginPutInsightRule(PutInsightRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutInsightRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutInsightRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutInsightRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutInsightRule.</param> /// /// <returns>Returns a PutInsightRuleResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> public virtual PutInsightRuleResponse EndPutInsightRule(IAsyncResult asyncResult) { return EndInvoke<PutInsightRuleResponse>(asyncResult); } #endregion #region PutManagedInsightRules /// <summary> /// Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. /// When you enable a managed rule, you create a Contributor Insights rule that collects /// data from Amazon Web Services services. You cannot edit these rules with <code>PutInsightRule</code>. /// The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, /// <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>. If a previously /// created managed rule is currently disabled, a subsequent call to this API will re-enable /// it. Use <code>ListManagedInsightRules</code> to describe all available rules. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules service method.</param> /// /// <returns>The response from the PutManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> public virtual PutManagedInsightRulesResponse PutManagedInsightRules(PutManagedInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutManagedInsightRulesResponseUnmarshaller.Instance; return Invoke<PutManagedInsightRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutManagedInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutManagedInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> public virtual IAsyncResult BeginPutManagedInsightRules(PutManagedInsightRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutManagedInsightRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutManagedInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutManagedInsightRules.</param> /// /// <returns>Returns a PutManagedInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> public virtual PutManagedInsightRulesResponse EndPutManagedInsightRules(IAsyncResult asyncResult) { return EndInvoke<PutManagedInsightRulesResponse>(asyncResult); } #endregion #region PutMetricAlarm /// <summary> /// Creates or updates an alarm and associates it with the specified metric, metric math /// expression, anomaly detection model, or Metrics Insights query. For more information /// about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create /// alarms on Metrics Insights queries</a>. /// /// /// <para> /// Alarms based on anomaly detection models cannot have Auto Scaling actions. /// </para> /// /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations: /// </para> /// <ul> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions /// </para> /// </li> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm with Systems /// Manager OpsItem or response plan actions. /// </para> /// </li> </ul> /// <para> /// The first time you create an alarm in the Amazon Web Services Management Console, /// the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked /// role for you. The service-linked roles are called <code>AWSServiceRoleForCloudWatchEvents</code> /// and <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>. For more information, /// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon /// Web Services service-linked role</a>. /// </para> /// /// <para> /// Each <code>PutMetricAlarm</code> action has a maximum uncompressed payload of 120 /// KB. /// </para> /// /// <para> /// <b>Cross-account alarms</b> /// </para> /// /// <para> /// You can set an alarm on metrics in the current account, or in another account. To /// create a cross-account alarm that watches a metric in a different account, you must /// have completed the following pre-requisites: /// </para> /// <ul> <li> /// <para> /// The account where the metrics are located (the <i>sharing account</i>) must already /// have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not /// already have this role, you must create it using the instructions in <b>Set up a sharing /// account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. The policy for that role must grant /// access to the ID of the account where you are creating the alarm. /// </para> /// </li> <li> /// <para> /// The account where you are creating the alarm (the <i>monitoring account</i>) must /// already have a service-linked role named <b>AWSServiceRoleForCloudWatchCrossAccount</b> /// to allow CloudWatch to assume the sharing role in the sharing account. If it does /// not, you must create it following the directions in <b>Set up a monitoring account</b> /// in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm service method.</param> /// /// <returns>The response from the PutMetricAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> public virtual PutMetricAlarmResponse PutMetricAlarm(PutMetricAlarmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricAlarmResponseUnmarshaller.Instance; return Invoke<PutMetricAlarmResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutMetricAlarm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMetricAlarm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> public virtual IAsyncResult BeginPutMetricAlarm(PutMetricAlarmRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricAlarmResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutMetricAlarm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMetricAlarm.</param> /// /// <returns>Returns a PutMetricAlarmResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> public virtual PutMetricAlarmResponse EndPutMetricAlarm(IAsyncResult asyncResult) { return EndInvoke<PutMetricAlarmResponse>(asyncResult); } #endregion #region PutMetricData /// <summary> /// Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data /// points with the specified metric. If the specified metric does not exist, CloudWatch /// creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes /// for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>. /// /// /// <para> /// You can publish either individual data points in the <code>Value</code> field, or /// arrays of values and the number of times each value occurred during the period by /// using the <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> /// structure. Using the <code>Values</code> and <code>Counts</code> method enables you /// to publish up to 150 values per metric with one <code>PutMetricData</code> request, /// and supports retrieving percentile statistics on this data. /// </para> /// /// <para> /// Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. /// You can send a payload compressed by gzip. Each request is also limited to no more /// than 1000 different metrics. /// </para> /// /// <para> /// Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// CloudWatch rejects values that are either too small or too large. Values must be in /// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, /// -Infinity) are not supported. /// </para> /// /// <para> /// You can use up to 30 dimensions per metric to further clarify what data the metric /// collects. Each dimension consists of a Name and Value pair. For more information about /// specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing /// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// You specify the time stamp to be associated with each data point. You can specify /// time stamps that are as much as two weeks before the current date, and as much as /// 2 hours after the current day and time. /// </para> /// /// <para> /// Data points with time stamps from 24 hours ago or longer can take at least 48 hours /// to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// from the time they are submitted. Data points with time stamps between 3 and 24 hours /// ago can take as much as 2 hours to become available for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>, /// <code>Max</code>, and <code>Sum</code> are all equal. /// </para> /// </li> <li> /// <para> /// The <code>Min</code> and <code>Max</code> are equal, and <code>Sum</code> is equal /// to <code>Min</code> multiplied by <code>SampleCount</code>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> public virtual PutMetricDataResponse PutMetricData(PutMetricDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricDataResponseUnmarshaller.Instance; return Invoke<PutMetricDataResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutMetricData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMetricData operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMetricData /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> public virtual IAsyncResult BeginPutMetricData(PutMetricDataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricDataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutMetricData operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMetricData.</param> /// /// <returns>Returns a PutMetricDataResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> public virtual PutMetricDataResponse EndPutMetricData(IAsyncResult asyncResult) { return EndInvoke<PutMetricDataResponse>(asyncResult); } #endregion #region PutMetricStream /// <summary> /// Creates or updates a metric stream. Metric streams can automatically stream CloudWatch /// metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party /// solutions. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html"> /// Using Metric Streams</a>. /// </para> /// /// <para> /// To create a metric stream, you must be signed in to an account that has the <code>iam:PassRole</code> /// permission and either the <code>CloudWatchFullAccess</code> policy or the <code>cloudwatch:PutMetricStream</code> /// permission. /// </para> /// /// <para> /// When you create or update a metric stream, you choose one of the following: /// </para> /// <ul> <li> /// <para> /// Stream metrics from all metric namespaces in the account. /// </para> /// </li> <li> /// <para> /// Stream metrics from all metric namespaces in the account, except for the namespaces /// that you list in <code>ExcludeFilters</code>. /// </para> /// </li> <li> /// <para> /// Stream metrics from only the metric namespaces that you list in <code>IncludeFilters</code>. /// </para> /// </li> </ul> /// <para> /// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, /// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can /// use the <code>StatisticsConfigurations</code> parameter to have the metric stream /// send additional statistics in the stream. Streaming additional statistics incurs additional /// costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon /// CloudWatch Pricing</a>. /// </para> /// /// <para> /// When you use <code>PutMetricStream</code> to create a new metric stream, the stream /// is created in the <code>running</code> state. If you use it to update an existing /// stream, the state of the stream is not changed. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability and you create a metric stream /// in a monitoring account, you can choose whether to include metrics from source accounts /// in the stream. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricStream service method.</param> /// /// <returns>The response from the PutMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> public virtual PutMetricStreamResponse PutMetricStream(PutMetricStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricStreamResponseUnmarshaller.Instance; return Invoke<PutMetricStreamResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutMetricStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMetricStream operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMetricStream /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> public virtual IAsyncResult BeginPutMetricStream(PutMetricStreamRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricStreamResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutMetricStream operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMetricStream.</param> /// /// <returns>Returns a PutMetricStreamResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> public virtual PutMetricStreamResponse EndPutMetricStream(IAsyncResult asyncResult) { return EndInvoke<PutMetricStreamResponse>(asyncResult); } #endregion #region SetAlarmState /// <summary> /// Temporarily sets the state of an alarm for testing purposes. When the updated state /// differs from the previous value, the action configured for the appropriate state is /// invoked. For example, if your alarm is configured to send an Amazon SNS message when /// an alarm is triggered, temporarily changing the alarm state to <code>ALARM</code> /// sends an SNS message. /// /// /// <para> /// Metric alarms returns to their actual state quickly, often within seconds. Because /// the metric alarm state change happens quickly, it is typically only visible in the /// alarm's <b>History</b> tab in the Amazon CloudWatch console or through <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>. /// </para> /// /// <para> /// If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is /// not guaranteed to return to its actual state. It returns to its actual state only /// once any of its children alarms change state. It is also reevaluated if you update /// its configuration. /// </para> /// /// <para> /// If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, /// you must include information in the <code>StateReasonData</code> parameter to enable /// the policy to take the correct action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetAlarmState service method.</param> /// /// <returns>The response from the SetAlarmState service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidFormatException"> /// Data was not syntactically valid JSON. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> public virtual SetAlarmStateResponse SetAlarmState(SetAlarmStateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetAlarmStateRequestMarshaller.Instance; options.ResponseUnmarshaller = SetAlarmStateResponseUnmarshaller.Instance; return Invoke<SetAlarmStateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SetAlarmState operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetAlarmState operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetAlarmState /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> public virtual IAsyncResult BeginSetAlarmState(SetAlarmStateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetAlarmStateRequestMarshaller.Instance; options.ResponseUnmarshaller = SetAlarmStateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SetAlarmState operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetAlarmState.</param> /// /// <returns>Returns a SetAlarmStateResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> public virtual SetAlarmStateResponse EndSetAlarmState(IAsyncResult asyncResult) { return EndInvoke<SetAlarmStateResponse>(asyncResult); } #endregion #region StartMetricStreams /// <summary> /// Starts the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams service method.</param> /// /// <returns>The response from the StartMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> public virtual StartMetricStreamsResponse StartMetricStreams(StartMetricStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMetricStreamsResponseUnmarshaller.Instance; return Invoke<StartMetricStreamsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartMetricStreams operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartMetricStreams /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> public virtual IAsyncResult BeginStartMetricStreams(StartMetricStreamsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMetricStreamsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartMetricStreams operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartMetricStreams.</param> /// /// <returns>Returns a StartMetricStreamsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> public virtual StartMetricStreamsResponse EndStartMetricStreams(IAsyncResult asyncResult) { return EndInvoke<StartMetricStreamsResponse>(asyncResult); } #endregion #region StopMetricStreams /// <summary> /// Stops the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams service method.</param> /// /// <returns>The response from the StopMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> public virtual StopMetricStreamsResponse StopMetricStreams(StopMetricStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StopMetricStreamsResponseUnmarshaller.Instance; return Invoke<StopMetricStreamsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StopMetricStreams operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopMetricStreams /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> public virtual IAsyncResult BeginStopMetricStreams(StopMetricStreamsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StopMetricStreamsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StopMetricStreams operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopMetricStreams.</param> /// /// <returns>Returns a StopMetricStreamsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> public virtual StopMetricStreamsResponse EndStopMetricStreams(IAsyncResult asyncResult) { return EndInvoke<StopMetricStreamsResponse>(asyncResult); } #endregion #region TagResource /// <summary> /// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, /// the only CloudWatch resources that can be tagged are alarms and Contributor Insights /// rules. /// /// /// <para> /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// </para> /// /// <para> /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// </para> /// /// <para> /// You can use the <code>TagResource</code> action with an alarm that already has tags. /// If you specify a new tag key for the alarm, this tag is appended to the list of tags /// associated with the alarm. If you specify a tag key that is already associated with /// the alarm, the new tag value that you specify replaces the previous value for that /// tag. /// </para> /// /// <para> /// You can associate as many as 50 tags with a CloudWatch resource. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/monitoring-2010-08-01/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 CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke<TagResourceResponse>(asyncResult); } #endregion #region UntagResource /// <summary> /// Removes one or more tags from the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/monitoring-2010-08-01/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 CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke<UntagResourceResponse>(asyncResult); } #endregion } }
3,440
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudWatch.Model; namespace Amazon.CloudWatch { /// <summary> /// Interface for accessing CloudWatch /// /// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources /// and the applications you run on Amazon Web Services in real time. You can use CloudWatch /// to collect and track metrics, which are the variables you want to measure for your /// resources and applications. /// /// /// <para> /// CloudWatch alarms send notifications or automatically change the resources you are /// monitoring based on rules that you define. For example, you can monitor the CPU usage /// and disk reads and writes of your Amazon EC2 instances. Then, use this data to determine /// whether you should launch additional instances to handle increased load. You can also /// use this data to stop under-used instances to save money. /// </para> /// /// <para> /// In addition to monitoring the built-in metrics that come with Amazon Web Services, /// you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility /// into resource utilization, application performance, and operational health. /// </para> /// </summary> public partial interface IAmazonCloudWatch : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> ICloudWatchPaginatorFactory Paginators { get; } #endif #region DeleteAlarms /// <summary> /// Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, /// this total can include no more than one composite alarm. For example, you could delete /// 99 metric alarms and one composite alarms with one operation, but you can't delete /// two composite alarms with one operation. /// /// /// <para> /// If you specify an incorrect alarm name or make any other error in the operation, /// no alarms are deleted. To confirm that alarms were deleted successfully, you can use /// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> /// operation after using <code>DeleteAlarms</code>. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms service method.</param> /// /// <returns>The response from the DeleteAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteAlarms operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAlarms /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> IAsyncResult BeginDeleteAlarms(DeleteAlarmsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteAlarms operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAlarms.</param> /// /// <returns>Returns a DeleteAlarmsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> DeleteAlarmsResponse EndDeleteAlarms(IAsyncResult asyncResult); #endregion #region DeleteAnomalyDetector /// <summary> /// Deletes the specified anomaly detection model from your account. For more information /// about how to delete an anomaly detection model, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting /// an anomaly detection model</a> in the <i>CloudWatch User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector service method.</param> /// /// <returns>The response from the DeleteAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> DeleteAnomalyDetectorResponse DeleteAnomalyDetector(DeleteAnomalyDetectorRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteAnomalyDetector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAnomalyDetector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> IAsyncResult BeginDeleteAnomalyDetector(DeleteAnomalyDetectorRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteAnomalyDetector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAnomalyDetector.</param> /// /// <returns>Returns a DeleteAnomalyDetectorResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> DeleteAnomalyDetectorResponse EndDeleteAnomalyDetector(IAsyncResult asyncResult); #endregion #region DeleteDashboards /// <summary> /// Deletes all dashboards that you specify. You can specify up to 100 dashboards to delete. /// If there is an error during this call, no dashboards are deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards service method.</param> /// /// <returns>The response from the DeleteDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> DeleteDashboardsResponse DeleteDashboards(DeleteDashboardsRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteDashboards operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteDashboards /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> IAsyncResult BeginDeleteDashboards(DeleteDashboardsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteDashboards operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteDashboards.</param> /// /// <returns>Returns a DeleteDashboardsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> DeleteDashboardsResponse EndDeleteDashboards(IAsyncResult asyncResult); #endregion #region DeleteInsightRules /// <summary> /// Permanently deletes the specified Contributor Insights rules. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules service method.</param> /// /// <returns>The response from the DeleteInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> DeleteInsightRulesResponse DeleteInsightRules(DeleteInsightRulesRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> IAsyncResult BeginDeleteInsightRules(DeleteInsightRulesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteInsightRules.</param> /// /// <returns>Returns a DeleteInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> DeleteInsightRulesResponse EndDeleteInsightRules(IAsyncResult asyncResult); #endregion #region DeleteMetricStream /// <summary> /// Permanently deletes the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream service method.</param> /// /// <returns>The response from the DeleteMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> DeleteMetricStreamResponse DeleteMetricStream(DeleteMetricStreamRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteMetricStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteMetricStream /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> IAsyncResult BeginDeleteMetricStream(DeleteMetricStreamRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteMetricStream operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteMetricStream.</param> /// /// <returns>Returns a DeleteMetricStreamResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> DeleteMetricStreamResponse EndDeleteMetricStream(IAsyncResult asyncResult); #endregion #region DescribeAlarmHistory /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> DescribeAlarmHistoryResponse DescribeAlarmHistory(); /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory service method.</param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> DescribeAlarmHistoryResponse DescribeAlarmHistory(DescribeAlarmHistoryRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAlarmHistory operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAlarmHistory /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> IAsyncResult BeginDescribeAlarmHistory(DescribeAlarmHistoryRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAlarmHistory operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAlarmHistory.</param> /// /// <returns>Returns a DescribeAlarmHistoryResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> DescribeAlarmHistoryResponse EndDescribeAlarmHistory(IAsyncResult asyncResult); #endregion #region DescribeAlarms /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> DescribeAlarmsResponse DescribeAlarms(); /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms service method.</param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAlarms operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAlarms /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> IAsyncResult BeginDescribeAlarms(DescribeAlarmsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAlarms operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAlarms.</param> /// /// <returns>Returns a DescribeAlarmsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> DescribeAlarmsResponse EndDescribeAlarms(IAsyncResult asyncResult); #endregion #region DescribeAlarmsForMetric /// <summary> /// Retrieves the alarms for the specified metric. To filter the results, specify a statistic, /// period, or unit. /// /// /// <para> /// This operation retrieves only standard alarms that are based on the specified metric. /// It does not return alarms based on math expressions that use the specified metric, /// or composite alarms that use the specified metric. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric service method.</param> /// /// <returns>The response from the DescribeAlarmsForMetric service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> DescribeAlarmsForMetricResponse DescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAlarmsForMetric operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAlarmsForMetric /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> IAsyncResult BeginDescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAlarmsForMetric operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAlarmsForMetric.</param> /// /// <returns>Returns a DescribeAlarmsForMetricResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> DescribeAlarmsForMetricResponse EndDescribeAlarmsForMetric(IAsyncResult asyncResult); #endregion #region DescribeAnomalyDetectors /// <summary> /// Lists the anomaly detection models that you have created in your account. For single /// metric anomaly detectors, you can list all of the models in your account or filter /// the results to only the models that are related to a certain namespace, metric name, /// or metric dimension. For metric math anomaly detectors, you can list them by adding /// <code>METRIC_MATH</code> to the <code>AnomalyDetectorTypes</code> array. This will /// return all metric math anomaly detectors in your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors service method.</param> /// /// <returns>The response from the DescribeAnomalyDetectors service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> DescribeAnomalyDetectorsResponse DescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAnomalyDetectors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAnomalyDetectors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> IAsyncResult BeginDescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAnomalyDetectors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAnomalyDetectors.</param> /// /// <returns>Returns a DescribeAnomalyDetectorsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> DescribeAnomalyDetectorsResponse EndDescribeAnomalyDetectors(IAsyncResult asyncResult); #endregion #region DescribeInsightRules /// <summary> /// Returns a list of all the Contributor Insights rules in your account. /// /// /// <para> /// For more information about Contributor Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules service method.</param> /// /// <returns>The response from the DescribeInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> DescribeInsightRulesResponse DescribeInsightRules(DescribeInsightRulesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> IAsyncResult BeginDescribeInsightRules(DescribeInsightRulesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeInsightRules.</param> /// /// <returns>Returns a DescribeInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> DescribeInsightRulesResponse EndDescribeInsightRules(IAsyncResult asyncResult); #endregion #region DisableAlarmActions /// <summary> /// Disables the actions for the specified alarms. When an alarm's actions are disabled, /// the alarm actions do not execute when the alarm state changes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions service method.</param> /// /// <returns>The response from the DisableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> DisableAlarmActionsResponse DisableAlarmActions(DisableAlarmActionsRequest request); /// <summary> /// Initiates the asynchronous execution of the DisableAlarmActions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableAlarmActions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> IAsyncResult BeginDisableAlarmActions(DisableAlarmActionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisableAlarmActions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableAlarmActions.</param> /// /// <returns>Returns a DisableAlarmActionsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> DisableAlarmActionsResponse EndDisableAlarmActions(IAsyncResult asyncResult); #endregion #region DisableInsightRules /// <summary> /// Disables the specified Contributor Insights rules. When rules are disabled, they do /// not analyze log groups and do not incur costs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules service method.</param> /// /// <returns>The response from the DisableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> DisableInsightRulesResponse DisableInsightRules(DisableInsightRulesRequest request); /// <summary> /// Initiates the asynchronous execution of the DisableInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> IAsyncResult BeginDisableInsightRules(DisableInsightRulesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisableInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableInsightRules.</param> /// /// <returns>Returns a DisableInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> DisableInsightRulesResponse EndDisableInsightRules(IAsyncResult asyncResult); #endregion #region EnableAlarmActions /// <summary> /// Enables the actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> EnableAlarmActionsResponse EnableAlarmActions(EnableAlarmActionsRequest request); /// <summary> /// Initiates the asynchronous execution of the EnableAlarmActions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableAlarmActions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> IAsyncResult BeginEnableAlarmActions(EnableAlarmActionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the EnableAlarmActions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableAlarmActions.</param> /// /// <returns>Returns a EnableAlarmActionsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> EnableAlarmActionsResponse EndEnableAlarmActions(IAsyncResult asyncResult); #endregion #region EnableInsightRules /// <summary> /// Enables the specified Contributor Insights rules. When rules are enabled, they immediately /// begin analyzing log data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules service method.</param> /// /// <returns>The response from the EnableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> EnableInsightRulesResponse EnableInsightRules(EnableInsightRulesRequest request); /// <summary> /// Initiates the asynchronous execution of the EnableInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> IAsyncResult BeginEnableInsightRules(EnableInsightRulesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the EnableInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableInsightRules.</param> /// /// <returns>Returns a EnableInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> EnableInsightRulesResponse EndEnableInsightRules(IAsyncResult asyncResult); #endregion #region GetDashboard /// <summary> /// Displays the details of the dashboard that you specify. /// /// /// <para> /// To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data /// returned within <code>DashboardBody</code> as the template for the new dashboard when /// you call <code>PutDashboard</code> to create the copy. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDashboard service method.</param> /// /// <returns>The response from the GetDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> GetDashboardResponse GetDashboard(GetDashboardRequest request); /// <summary> /// Initiates the asynchronous execution of the GetDashboard operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDashboard operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDashboard /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> IAsyncResult BeginGetDashboard(GetDashboardRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetDashboard operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDashboard.</param> /// /// <returns>Returns a GetDashboardResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> GetDashboardResponse EndGetDashboard(IAsyncResult asyncResult); #endregion #region GetInsightRuleReport /// <summary> /// This operation returns the time series data collected by a Contributor Insights rule. /// The data includes the identity and number of contributors to the log group. /// /// /// <para> /// You can also optionally return one or more statistics about each data point in the /// time series. These statistics can include the following: /// </para> /// <ul> <li> /// <para> /// <code>UniqueContributors</code> -- the number of unique contributors for each data /// point. /// </para> /// </li> <li> /// <para> /// <code>MaxContributorValue</code> -- the value of the top contributor for each data /// point. The identity of the contributor might change for each data point in the graph. /// </para> /// /// <para> /// If this rule aggregates by COUNT, the top contributor for each data point is the contributor /// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor /// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>, /// during that period. /// </para> /// </li> <li> /// <para> /// <code>SampleCount</code> -- the number of data points matched by the rule. /// </para> /// </li> <li> /// <para> /// <code>Sum</code> -- the sum of the values from all contributors during the time period /// represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Minimum</code> -- the minimum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Maximum</code> -- the maximum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Average</code> -- the average value from all contributors during the time period /// represented by that data point. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport service method.</param> /// /// <returns>The response from the GetInsightRuleReport service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> GetInsightRuleReportResponse GetInsightRuleReport(GetInsightRuleReportRequest request); /// <summary> /// Initiates the asynchronous execution of the GetInsightRuleReport operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetInsightRuleReport /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> IAsyncResult BeginGetInsightRuleReport(GetInsightRuleReportRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetInsightRuleReport operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetInsightRuleReport.</param> /// /// <returns>Returns a GetInsightRuleReportResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> GetInsightRuleReportResponse EndGetInsightRuleReport(IAsyncResult asyncResult); #endregion #region GetMetricData /// <summary> /// You can use the <code>GetMetricData</code> API to retrieve CloudWatch metric values. /// The operation can also include a CloudWatch Metrics Insights query, and one or more /// metric math functions. /// /// /// <para> /// A <code>GetMetricData</code> operation that does not include a query can retrieve /// as many as 500 different metrics in a single request, with a total of as many as 100,800 /// data points. You can also optionally perform metric math expressions on the values /// of the returned statistics, to create new time series that represent new insights /// into your data. For example, using Lambda metrics, you could divide the Errors metric /// by the Invocations metric to get an error rate time series. For more information about /// metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric /// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// If you include a Metrics Insights query, each <code>GetMetricData</code> operation /// can include only one query. But the same <code>GetMetricData</code> operation can /// also retrieve other metrics. Metrics Insights queries can query only the most recent /// three hours of metric data. For more information about Metrics Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html">Query /// your metrics with CloudWatch Metrics Insights</a>. /// </para> /// /// <para> /// Calls to the <code>GetMetricData</code> API have a different pricing structure than /// calls to <code>GetMetricStatistics</code>. For more information about pricing, see /// <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// If you omit <code>Unit</code> in your request, all data that was collected with any /// unit is returned, along with the corresponding units that were specified when the /// data was reported to CloudWatch. If you specify a unit, the operation returns only /// data that was collected with that unit specified. If you specify a unit that does /// not match the data collected, the results of the operation are null. CloudWatch does /// not perform unit conversions. /// </para> /// /// <para> /// <b>Using Metrics Insights queries with metric math</b> /// </para> /// /// <para> /// You can't mix a Metric Insights query and metric math syntax in the same expression, /// but you can reference results from a Metrics Insights query within other Metric math /// expressions. A Metrics Insights query without a <b>GROUP BY</b> clause returns a single /// time-series (TS), and can be used as input for a metric math expression that expects /// a single time series. A Metrics Insights query with a <b>GROUP BY</b> clause returns /// an array of time-series (TS[]), and can be used as input for a metric math expression /// that expects an array of time series. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricData service method.</param> /// /// <returns>The response from the GetMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> GetMetricDataResponse GetMetricData(GetMetricDataRequest request); /// <summary> /// Initiates the asynchronous execution of the GetMetricData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMetricData operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetricData /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> IAsyncResult BeginGetMetricData(GetMetricDataRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetMetricData operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetricData.</param> /// /// <returns>Returns a GetMetricDataResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> GetMetricDataResponse EndGetMetricData(IAsyncResult asyncResult); #endregion #region GetMetricStatistics /// <summary> /// Gets statistics for the specified metric. /// /// /// <para> /// The maximum number of data points returned from a single call is 1,440. If you request /// more than 1,440 data points, CloudWatch returns an error. To reduce the number of /// data points, you can narrow the specified time range and make multiple requests across /// adjacent time ranges, or you can increase the specified period. Data points are not /// returned in chronological order. /// </para> /// /// <para> /// CloudWatch aggregates data points based on the length of the period that you specify. /// For example, if you request statistics with a one-hour period, CloudWatch aggregates /// all data points with time stamps that fall within each one-hour period. Therefore, /// the number of values aggregated by CloudWatch is larger than the number of data points /// returned. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The SampleCount value of the statistic set is 1. /// </para> /// </li> <li> /// <para> /// The Min and the Max values of the statistic set are equal. /// </para> /// </li> </ul> /// <para> /// Percentile statistics are not available for metrics when any of the metric values /// are negative numbers. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016. /// </para> /// /// <para> /// For information about metrics and dimensions supported by Amazon Web Services services, /// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon /// CloudWatch Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics service method.</param> /// /// <returns>The response from the GetMetricStatistics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> GetMetricStatisticsResponse GetMetricStatistics(GetMetricStatisticsRequest request); /// <summary> /// Initiates the asynchronous execution of the GetMetricStatistics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetricStatistics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> IAsyncResult BeginGetMetricStatistics(GetMetricStatisticsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetMetricStatistics operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetricStatistics.</param> /// /// <returns>Returns a GetMetricStatisticsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> GetMetricStatisticsResponse EndGetMetricStatistics(IAsyncResult asyncResult); #endregion #region GetMetricStream /// <summary> /// Returns information about the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStream service method.</param> /// /// <returns>The response from the GetMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> GetMetricStreamResponse GetMetricStream(GetMetricStreamRequest request); /// <summary> /// Initiates the asynchronous execution of the GetMetricStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMetricStream operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetricStream /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> IAsyncResult BeginGetMetricStream(GetMetricStreamRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetMetricStream operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetricStream.</param> /// /// <returns>Returns a GetMetricStreamResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> GetMetricStreamResponse EndGetMetricStream(IAsyncResult asyncResult); #endregion #region GetMetricWidgetImage /// <summary> /// You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph /// of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this /// image into your services and products, such as wiki pages, reports, and documents. /// You could also retrieve images regularly, such as every minute, and create your own /// custom live dashboard. /// /// /// <para> /// The graph you retrieve can include all CloudWatch metric graph features, including /// metric math and horizontal and vertical annotations. /// </para> /// /// <para> /// There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code> /// action has the following limits: /// </para> /// <ul> <li> /// <para> /// As many as 100 metrics in the graph. /// </para> /// </li> <li> /// <para> /// Up to 100 KB uncompressed payload. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage service method.</param> /// /// <returns>The response from the GetMetricWidgetImage service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> GetMetricWidgetImageResponse GetMetricWidgetImage(GetMetricWidgetImageRequest request); /// <summary> /// Initiates the asynchronous execution of the GetMetricWidgetImage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetricWidgetImage /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> IAsyncResult BeginGetMetricWidgetImage(GetMetricWidgetImageRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetMetricWidgetImage operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetricWidgetImage.</param> /// /// <returns>Returns a GetMetricWidgetImageResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> GetMetricWidgetImageResponse EndGetMetricWidgetImage(IAsyncResult asyncResult); #endregion #region ListDashboards /// <summary> /// Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>, /// only those dashboards with names starting with the prefix are listed. Otherwise, all /// dashboards in your account are listed. /// /// /// <para> /// <code>ListDashboards</code> returns up to 1000 results on one page. If there are /// more than 1000 dashboards, you can call <code>ListDashboards</code> again and include /// the value you received for <code>NextToken</code> in the first call, to receive the /// next 1000 results. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDashboards service method.</param> /// /// <returns>The response from the ListDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> ListDashboardsResponse ListDashboards(ListDashboardsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListDashboards operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDashboards operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListDashboards /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> IAsyncResult BeginListDashboards(ListDashboardsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListDashboards operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListDashboards.</param> /// /// <returns>Returns a ListDashboardsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> ListDashboardsResponse EndListDashboards(IAsyncResult asyncResult); #endregion #region ListManagedInsightRules /// <summary> /// Returns a list that contains the number of managed Contributor Insights rules in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules service method.</param> /// /// <returns>The response from the ListManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> ListManagedInsightRulesResponse ListManagedInsightRules(ListManagedInsightRulesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListManagedInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListManagedInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> IAsyncResult BeginListManagedInsightRules(ListManagedInsightRulesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListManagedInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListManagedInsightRules.</param> /// /// <returns>Returns a ListManagedInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> ListManagedInsightRulesResponse EndListManagedInsightRules(IAsyncResult asyncResult); #endregion #region ListMetrics /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> ListMetricsResponse ListMetrics(); /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetrics service method.</param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> ListMetricsResponse ListMetrics(ListMetricsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListMetrics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListMetrics operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListMetrics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> IAsyncResult BeginListMetrics(ListMetricsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListMetrics operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListMetrics.</param> /// /// <returns>Returns a ListMetricsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> ListMetricsResponse EndListMetrics(IAsyncResult asyncResult); #endregion #region ListMetricStreams /// <summary> /// Returns a list of metric streams in this account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams service method.</param> /// /// <returns>The response from the ListMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> ListMetricStreamsResponse ListMetricStreams(ListMetricStreamsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListMetricStreams operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListMetricStreams /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> IAsyncResult BeginListMetricStreams(ListMetricStreamsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListMetricStreams operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListMetricStreams.</param> /// /// <returns>Returns a ListMetricStreamsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> ListMetricStreamsResponse EndListMetricStreams(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor /// Insights rules support tagging. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/monitoring-2010-08-01/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 CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region PutAnomalyDetector /// <summary> /// Creates an anomaly detection model for a CloudWatch metric. You can use the model /// to display a band of expected normal values when the metric is graphed. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch /// Anomaly Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector service method.</param> /// /// <returns>The response from the PutAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> PutAnomalyDetectorResponse PutAnomalyDetector(PutAnomalyDetectorRequest request); /// <summary> /// Initiates the asynchronous execution of the PutAnomalyDetector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutAnomalyDetector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> IAsyncResult BeginPutAnomalyDetector(PutAnomalyDetectorRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutAnomalyDetector operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutAnomalyDetector.</param> /// /// <returns>Returns a PutAnomalyDetectorResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> PutAnomalyDetectorResponse EndPutAnomalyDetector(IAsyncResult asyncResult); #endregion #region PutCompositeAlarm /// <summary> /// Creates or updates a <i>composite alarm</i>. When you create a composite alarm, you /// specify a rule expression for the alarm that takes into account the alarm states of /// other alarms that you have created. The composite alarm goes into ALARM state only /// if all conditions of the rule are met. /// /// /// <para> /// The alarms specified in a composite alarm's rule expression can include metric alarms /// and other composite alarms. The rule expression of a composite alarm can include as /// many as 100 underlying alarms. Any single alarm can be included in the rule expressions /// of as many as 150 composite alarms. /// </para> /// /// <para> /// Using composite alarms can reduce alarm noise. You can create multiple metric alarms, /// and also create a composite alarm and set up alerts only for the composite alarm. /// For example, you could create a composite alarm that goes into ALARM state only when /// more than one of the underlying metric alarms are in ALARM state. /// </para> /// /// <para> /// Currently, the only alarm actions that can be taken by composite alarms are notifying /// SNS topics. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. For a composite alarm, this initial time after /// creation is the only time that the alarm can be in <code>INSUFFICIENT_DATA</code> /// state. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// To use this operation, you must be signed on with the <code>cloudwatch:PutCompositeAlarm</code> /// permission that is scoped to <code>*</code>. You can't create a composite alarms if /// your <code>cloudwatch:PutCompositeAlarm</code> permission has a narrower scope. /// </para> /// /// <para> /// If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to /// create a composite alarm that has Systems Manager OpsItem actions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm service method.</param> /// /// <returns>The response from the PutCompositeAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> PutCompositeAlarmResponse PutCompositeAlarm(PutCompositeAlarmRequest request); /// <summary> /// Initiates the asynchronous execution of the PutCompositeAlarm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutCompositeAlarm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> IAsyncResult BeginPutCompositeAlarm(PutCompositeAlarmRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutCompositeAlarm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutCompositeAlarm.</param> /// /// <returns>Returns a PutCompositeAlarmResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> PutCompositeAlarmResponse EndPutCompositeAlarm(IAsyncResult asyncResult); #endregion #region PutDashboard /// <summary> /// Creates a dashboard if it does not already exist, or updates an existing dashboard. /// If you update a dashboard, the entire contents are replaced with what you specify /// here. /// /// /// <para> /// All dashboards in your account are global, not region-specific. /// </para> /// /// <para> /// A simple way to create a dashboard using <code>PutDashboard</code> is to copy an existing /// dashboard. To copy an existing dashboard using the console, you can load the dashboard /// and then use the View/edit source command in the Actions menu to display the JSON /// block for that dashboard. Another way to copy a dashboard is to use <code>GetDashboard</code>, /// and then use the data returned within <code>DashboardBody</code> as the template for /// the new dashboard when you call <code>PutDashboard</code>. /// </para> /// /// <para> /// When you create a dashboard with <code>PutDashboard</code>, a good practice is to /// add a text widget at the top of the dashboard with a message that the dashboard was /// created by script and should not be changed in the console. This message could also /// point console users to the location of the <code>DashboardBody</code> script or the /// CloudFormation template used to create the dashboard. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutDashboard service method.</param> /// /// <returns>The response from the PutDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardInvalidInputErrorException"> /// Some part of the dashboard data is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> PutDashboardResponse PutDashboard(PutDashboardRequest request); /// <summary> /// Initiates the asynchronous execution of the PutDashboard operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutDashboard operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutDashboard /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> IAsyncResult BeginPutDashboard(PutDashboardRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutDashboard operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutDashboard.</param> /// /// <returns>Returns a PutDashboardResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> PutDashboardResponse EndPutDashboard(IAsyncResult asyncResult); #endregion #region PutInsightRule /// <summary> /// Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs /// log group, enabling you to find contributor data for the log events in that log group. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutInsightRule service method.</param> /// /// <returns>The response from the PutInsightRule service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> PutInsightRuleResponse PutInsightRule(PutInsightRuleRequest request); /// <summary> /// Initiates the asynchronous execution of the PutInsightRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutInsightRule operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutInsightRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> IAsyncResult BeginPutInsightRule(PutInsightRuleRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutInsightRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutInsightRule.</param> /// /// <returns>Returns a PutInsightRuleResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> PutInsightRuleResponse EndPutInsightRule(IAsyncResult asyncResult); #endregion #region PutManagedInsightRules /// <summary> /// Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. /// When you enable a managed rule, you create a Contributor Insights rule that collects /// data from Amazon Web Services services. You cannot edit these rules with <code>PutInsightRule</code>. /// The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, /// <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>. If a previously /// created managed rule is currently disabled, a subsequent call to this API will re-enable /// it. Use <code>ListManagedInsightRules</code> to describe all available rules. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules service method.</param> /// /// <returns>The response from the PutManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> PutManagedInsightRulesResponse PutManagedInsightRules(PutManagedInsightRulesRequest request); /// <summary> /// Initiates the asynchronous execution of the PutManagedInsightRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutManagedInsightRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> IAsyncResult BeginPutManagedInsightRules(PutManagedInsightRulesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutManagedInsightRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutManagedInsightRules.</param> /// /// <returns>Returns a PutManagedInsightRulesResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> PutManagedInsightRulesResponse EndPutManagedInsightRules(IAsyncResult asyncResult); #endregion #region PutMetricAlarm /// <summary> /// Creates or updates an alarm and associates it with the specified metric, metric math /// expression, anomaly detection model, or Metrics Insights query. For more information /// about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create /// alarms on Metrics Insights queries</a>. /// /// /// <para> /// Alarms based on anomaly detection models cannot have Auto Scaling actions. /// </para> /// /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations: /// </para> /// <ul> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions /// </para> /// </li> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm with Systems /// Manager OpsItem or response plan actions. /// </para> /// </li> </ul> /// <para> /// The first time you create an alarm in the Amazon Web Services Management Console, /// the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked /// role for you. The service-linked roles are called <code>AWSServiceRoleForCloudWatchEvents</code> /// and <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>. For more information, /// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon /// Web Services service-linked role</a>. /// </para> /// /// <para> /// Each <code>PutMetricAlarm</code> action has a maximum uncompressed payload of 120 /// KB. /// </para> /// /// <para> /// <b>Cross-account alarms</b> /// </para> /// /// <para> /// You can set an alarm on metrics in the current account, or in another account. To /// create a cross-account alarm that watches a metric in a different account, you must /// have completed the following pre-requisites: /// </para> /// <ul> <li> /// <para> /// The account where the metrics are located (the <i>sharing account</i>) must already /// have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not /// already have this role, you must create it using the instructions in <b>Set up a sharing /// account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. The policy for that role must grant /// access to the ID of the account where you are creating the alarm. /// </para> /// </li> <li> /// <para> /// The account where you are creating the alarm (the <i>monitoring account</i>) must /// already have a service-linked role named <b>AWSServiceRoleForCloudWatchCrossAccount</b> /// to allow CloudWatch to assume the sharing role in the sharing account. If it does /// not, you must create it following the directions in <b>Set up a monitoring account</b> /// in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm service method.</param> /// /// <returns>The response from the PutMetricAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> PutMetricAlarmResponse PutMetricAlarm(PutMetricAlarmRequest request); /// <summary> /// Initiates the asynchronous execution of the PutMetricAlarm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMetricAlarm /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> IAsyncResult BeginPutMetricAlarm(PutMetricAlarmRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutMetricAlarm operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMetricAlarm.</param> /// /// <returns>Returns a PutMetricAlarmResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> PutMetricAlarmResponse EndPutMetricAlarm(IAsyncResult asyncResult); #endregion #region PutMetricData /// <summary> /// Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data /// points with the specified metric. If the specified metric does not exist, CloudWatch /// creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes /// for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>. /// /// /// <para> /// You can publish either individual data points in the <code>Value</code> field, or /// arrays of values and the number of times each value occurred during the period by /// using the <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> /// structure. Using the <code>Values</code> and <code>Counts</code> method enables you /// to publish up to 150 values per metric with one <code>PutMetricData</code> request, /// and supports retrieving percentile statistics on this data. /// </para> /// /// <para> /// Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. /// You can send a payload compressed by gzip. Each request is also limited to no more /// than 1000 different metrics. /// </para> /// /// <para> /// Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// CloudWatch rejects values that are either too small or too large. Values must be in /// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, /// -Infinity) are not supported. /// </para> /// /// <para> /// You can use up to 30 dimensions per metric to further clarify what data the metric /// collects. Each dimension consists of a Name and Value pair. For more information about /// specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing /// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// You specify the time stamp to be associated with each data point. You can specify /// time stamps that are as much as two weeks before the current date, and as much as /// 2 hours after the current day and time. /// </para> /// /// <para> /// Data points with time stamps from 24 hours ago or longer can take at least 48 hours /// to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// from the time they are submitted. Data points with time stamps between 3 and 24 hours /// ago can take as much as 2 hours to become available for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>, /// <code>Max</code>, and <code>Sum</code> are all equal. /// </para> /// </li> <li> /// <para> /// The <code>Min</code> and <code>Max</code> are equal, and <code>Sum</code> is equal /// to <code>Min</code> multiplied by <code>SampleCount</code>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> PutMetricDataResponse PutMetricData(PutMetricDataRequest request); /// <summary> /// Initiates the asynchronous execution of the PutMetricData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMetricData operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMetricData /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> IAsyncResult BeginPutMetricData(PutMetricDataRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutMetricData operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMetricData.</param> /// /// <returns>Returns a PutMetricDataResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> PutMetricDataResponse EndPutMetricData(IAsyncResult asyncResult); #endregion #region PutMetricStream /// <summary> /// Creates or updates a metric stream. Metric streams can automatically stream CloudWatch /// metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party /// solutions. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html"> /// Using Metric Streams</a>. /// </para> /// /// <para> /// To create a metric stream, you must be signed in to an account that has the <code>iam:PassRole</code> /// permission and either the <code>CloudWatchFullAccess</code> policy or the <code>cloudwatch:PutMetricStream</code> /// permission. /// </para> /// /// <para> /// When you create or update a metric stream, you choose one of the following: /// </para> /// <ul> <li> /// <para> /// Stream metrics from all metric namespaces in the account. /// </para> /// </li> <li> /// <para> /// Stream metrics from all metric namespaces in the account, except for the namespaces /// that you list in <code>ExcludeFilters</code>. /// </para> /// </li> <li> /// <para> /// Stream metrics from only the metric namespaces that you list in <code>IncludeFilters</code>. /// </para> /// </li> </ul> /// <para> /// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, /// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can /// use the <code>StatisticsConfigurations</code> parameter to have the metric stream /// send additional statistics in the stream. Streaming additional statistics incurs additional /// costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon /// CloudWatch Pricing</a>. /// </para> /// /// <para> /// When you use <code>PutMetricStream</code> to create a new metric stream, the stream /// is created in the <code>running</code> state. If you use it to update an existing /// stream, the state of the stream is not changed. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability and you create a metric stream /// in a monitoring account, you can choose whether to include metrics from source accounts /// in the stream. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricStream service method.</param> /// /// <returns>The response from the PutMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> PutMetricStreamResponse PutMetricStream(PutMetricStreamRequest request); /// <summary> /// Initiates the asynchronous execution of the PutMetricStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMetricStream operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMetricStream /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> IAsyncResult BeginPutMetricStream(PutMetricStreamRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutMetricStream operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMetricStream.</param> /// /// <returns>Returns a PutMetricStreamResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> PutMetricStreamResponse EndPutMetricStream(IAsyncResult asyncResult); #endregion #region SetAlarmState /// <summary> /// Temporarily sets the state of an alarm for testing purposes. When the updated state /// differs from the previous value, the action configured for the appropriate state is /// invoked. For example, if your alarm is configured to send an Amazon SNS message when /// an alarm is triggered, temporarily changing the alarm state to <code>ALARM</code> /// sends an SNS message. /// /// /// <para> /// Metric alarms returns to their actual state quickly, often within seconds. Because /// the metric alarm state change happens quickly, it is typically only visible in the /// alarm's <b>History</b> tab in the Amazon CloudWatch console or through <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>. /// </para> /// /// <para> /// If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is /// not guaranteed to return to its actual state. It returns to its actual state only /// once any of its children alarms change state. It is also reevaluated if you update /// its configuration. /// </para> /// /// <para> /// If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, /// you must include information in the <code>StateReasonData</code> parameter to enable /// the policy to take the correct action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetAlarmState service method.</param> /// /// <returns>The response from the SetAlarmState service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidFormatException"> /// Data was not syntactically valid JSON. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> SetAlarmStateResponse SetAlarmState(SetAlarmStateRequest request); /// <summary> /// Initiates the asynchronous execution of the SetAlarmState operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetAlarmState operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetAlarmState /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> IAsyncResult BeginSetAlarmState(SetAlarmStateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SetAlarmState operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetAlarmState.</param> /// /// <returns>Returns a SetAlarmStateResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> SetAlarmStateResponse EndSetAlarmState(IAsyncResult asyncResult); #endregion #region StartMetricStreams /// <summary> /// Starts the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams service method.</param> /// /// <returns>The response from the StartMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> StartMetricStreamsResponse StartMetricStreams(StartMetricStreamsRequest request); /// <summary> /// Initiates the asynchronous execution of the StartMetricStreams operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartMetricStreams /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> IAsyncResult BeginStartMetricStreams(StartMetricStreamsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartMetricStreams operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartMetricStreams.</param> /// /// <returns>Returns a StartMetricStreamsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> StartMetricStreamsResponse EndStartMetricStreams(IAsyncResult asyncResult); #endregion #region StopMetricStreams /// <summary> /// Stops the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams service method.</param> /// /// <returns>The response from the StopMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> StopMetricStreamsResponse StopMetricStreams(StopMetricStreamsRequest request); /// <summary> /// Initiates the asynchronous execution of the StopMetricStreams operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopMetricStreams /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> IAsyncResult BeginStopMetricStreams(StopMetricStreamsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StopMetricStreams operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStopMetricStreams.</param> /// /// <returns>Returns a StopMetricStreamsResult from CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> StopMetricStreamsResponse EndStopMetricStreams(IAsyncResult asyncResult); #endregion #region TagResource /// <summary> /// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, /// the only CloudWatch resources that can be tagged are alarms and Contributor Insights /// rules. /// /// /// <para> /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// </para> /// /// <para> /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// </para> /// /// <para> /// You can use the <code>TagResource</code> action with an alarm that already has tags. /// If you specify a new tag key for the alarm, this tag is appended to the list of tags /// associated with the alarm. If you specify a tag key that is already associated with /// the alarm, the new tag value that you specify replaces the previous value for that /// tag. /// </para> /// /// <para> /// You can associate as many as 50 tags with a CloudWatch resource. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/monitoring-2010-08-01/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 CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region UntagResource /// <summary> /// Removes one or more tags from the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState 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/monitoring-2010-08-01/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 CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion } }
2,679
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.CloudWatch.Model; using Amazon.CloudWatch.Model.Internal.MarshallTransformations; using Amazon.CloudWatch.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudWatch { /// <summary> /// Implementation for accessing CloudWatch /// /// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources /// and the applications you run on Amazon Web Services in real time. You can use CloudWatch /// to collect and track metrics, which are the variables you want to measure for your /// resources and applications. /// /// /// <para> /// CloudWatch alarms send notifications or automatically change the resources you are /// monitoring based on rules that you define. For example, you can monitor the CPU usage /// and disk reads and writes of your Amazon EC2 instances. Then, use this data to determine /// whether you should launch additional instances to handle increased load. You can also /// use this data to stop under-used instances to save money. /// </para> /// /// <para> /// In addition to monitoring the built-in metrics that come with Amazon Web Services, /// you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility /// into resource utilization, application performance, and operational health. /// </para> /// </summary> public partial class AmazonCloudWatchClient : AmazonServiceClient, IAmazonCloudWatch { private static IServiceMetadata serviceMetadata = new AmazonCloudWatchMetadata(); private ICloudWatchPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICloudWatchPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudWatchPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonCloudWatchClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCloudWatchClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCloudWatchClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(AmazonCloudWatchConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudWatchClient(AWSCredentials credentials) : this(credentials, new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudWatchClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudWatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Credentials and an /// AmazonCloudWatchClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(AWSCredentials credentials, AmazonCloudWatchConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudWatchClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudWatchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudWatchClient 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 AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudWatchConfig 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 AmazonCloudWatchEndpointResolver()); } /// <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 DeleteAlarms /// <summary> /// Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, /// this total can include no more than one composite alarm. For example, you could delete /// 99 metric alarms and one composite alarms with one operation, but you can't delete /// two composite alarms with one operation. /// /// /// <para> /// If you specify an incorrect alarm name or make any other error in the operation, /// no alarms are deleted. To confirm that alarms were deleted successfully, you can use /// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> /// operation after using <code>DeleteAlarms</code>. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms service method.</param> /// /// <returns>The response from the DeleteAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> public virtual DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlarmsResponseUnmarshaller.Instance; return Invoke<DeleteAlarmsResponse>(request, options); } /// <summary> /// Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, /// this total can include no more than one composite alarm. For example, you could delete /// 99 metric alarms and one composite alarms with one operation, but you can't delete /// two composite alarms with one operation. /// /// /// <para> /// If you specify an incorrect alarm name or make any other error in the operation, /// no alarms are deleted. To confirm that alarms were deleted successfully, you can use /// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> /// operation after using <code>DeleteAlarms</code>. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> public virtual Task<DeleteAlarmsResponse> DeleteAlarmsAsync(DeleteAlarmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlarmsResponseUnmarshaller.Instance; return InvokeAsync<DeleteAlarmsResponse>(request, options, cancellationToken); } #endregion #region DeleteAnomalyDetector /// <summary> /// Deletes the specified anomaly detection model from your account. For more information /// about how to delete an anomaly detection model, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting /// an anomaly detection model</a> in the <i>CloudWatch User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector service method.</param> /// /// <returns>The response from the DeleteAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> public virtual DeleteAnomalyDetectorResponse DeleteAnomalyDetector(DeleteAnomalyDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance; return Invoke<DeleteAnomalyDetectorResponse>(request, options); } /// <summary> /// Deletes the specified anomaly detection model from your account. For more information /// about how to delete an anomaly detection model, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting /// an anomaly detection model</a> in the <i>CloudWatch User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> public virtual Task<DeleteAnomalyDetectorResponse> DeleteAnomalyDetectorAsync(DeleteAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance; return InvokeAsync<DeleteAnomalyDetectorResponse>(request, options, cancellationToken); } #endregion #region DeleteDashboards /// <summary> /// Deletes all dashboards that you specify. You can specify up to 100 dashboards to delete. /// If there is an error during this call, no dashboards are deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards service method.</param> /// /// <returns>The response from the DeleteDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> public virtual DeleteDashboardsResponse DeleteDashboards(DeleteDashboardsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDashboardsResponseUnmarshaller.Instance; return Invoke<DeleteDashboardsResponse>(request, options); } /// <summary> /// Deletes all dashboards that you specify. You can specify up to 100 dashboards to delete. /// If there is an error during this call, no dashboards are deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> public virtual Task<DeleteDashboardsResponse> DeleteDashboardsAsync(DeleteDashboardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDashboardsResponseUnmarshaller.Instance; return InvokeAsync<DeleteDashboardsResponse>(request, options, cancellationToken); } #endregion #region DeleteInsightRules /// <summary> /// Permanently deletes the specified Contributor Insights rules. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules service method.</param> /// /// <returns>The response from the DeleteInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> public virtual DeleteInsightRulesResponse DeleteInsightRules(DeleteInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInsightRulesResponseUnmarshaller.Instance; return Invoke<DeleteInsightRulesResponse>(request, options); } /// <summary> /// Permanently deletes the specified Contributor Insights rules. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> public virtual Task<DeleteInsightRulesResponse> DeleteInsightRulesAsync(DeleteInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<DeleteInsightRulesResponse>(request, options, cancellationToken); } #endregion #region DeleteMetricStream /// <summary> /// Permanently deletes the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream service method.</param> /// /// <returns>The response from the DeleteMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> public virtual DeleteMetricStreamResponse DeleteMetricStream(DeleteMetricStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMetricStreamResponseUnmarshaller.Instance; return Invoke<DeleteMetricStreamResponse>(request, options); } /// <summary> /// Permanently deletes the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> public virtual Task<DeleteMetricStreamResponse> DeleteMetricStreamAsync(DeleteMetricStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMetricStreamResponseUnmarshaller.Instance; return InvokeAsync<DeleteMetricStreamResponse>(request, options, cancellationToken); } #endregion #region DescribeAlarmHistory /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual DescribeAlarmHistoryResponse DescribeAlarmHistory() { return DescribeAlarmHistory(new DescribeAlarmHistoryRequest()); } /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory service method.</param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual DescribeAlarmHistoryResponse DescribeAlarmHistory(DescribeAlarmHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmHistoryResponseUnmarshaller.Instance; return Invoke<DescribeAlarmHistoryResponse>(request, options); } /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual Task<DescribeAlarmHistoryResponse> DescribeAlarmHistoryAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAlarmHistoryAsync(new DescribeAlarmHistoryRequest(), cancellationToken); } /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual Task<DescribeAlarmHistoryResponse> DescribeAlarmHistoryAsync(DescribeAlarmHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmHistoryResponseUnmarshaller.Instance; return InvokeAsync<DescribeAlarmHistoryResponse>(request, options, cancellationToken); } #endregion #region DescribeAlarms /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual DescribeAlarmsResponse DescribeAlarms() { return DescribeAlarms(new DescribeAlarmsRequest()); } /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms service method.</param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsResponseUnmarshaller.Instance; return Invoke<DescribeAlarmsResponse>(request, options); } /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual Task<DescribeAlarmsResponse> DescribeAlarmsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAlarmsAsync(new DescribeAlarmsRequest(), cancellationToken); } /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual Task<DescribeAlarmsResponse> DescribeAlarmsAsync(DescribeAlarmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAlarmsResponse>(request, options, cancellationToken); } #endregion #region DescribeAlarmsForMetric /// <summary> /// Retrieves the alarms for the specified metric. To filter the results, specify a statistic, /// period, or unit. /// /// /// <para> /// This operation retrieves only standard alarms that are based on the specified metric. /// It does not return alarms based on math expressions that use the specified metric, /// or composite alarms that use the specified metric. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric service method.</param> /// /// <returns>The response from the DescribeAlarmsForMetric service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> public virtual DescribeAlarmsForMetricResponse DescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsForMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance; return Invoke<DescribeAlarmsForMetricResponse>(request, options); } /// <summary> /// Retrieves the alarms for the specified metric. To filter the results, specify a statistic, /// period, or unit. /// /// /// <para> /// This operation retrieves only standard alarms that are based on the specified metric. /// It does not return alarms based on math expressions that use the specified metric, /// or composite alarms that use the specified metric. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmsForMetric service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> public virtual Task<DescribeAlarmsForMetricResponse> DescribeAlarmsForMetricAsync(DescribeAlarmsForMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsForMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance; return InvokeAsync<DescribeAlarmsForMetricResponse>(request, options, cancellationToken); } #endregion #region DescribeAnomalyDetectors /// <summary> /// Lists the anomaly detection models that you have created in your account. For single /// metric anomaly detectors, you can list all of the models in your account or filter /// the results to only the models that are related to a certain namespace, metric name, /// or metric dimension. For metric math anomaly detectors, you can list them by adding /// <code>METRIC_MATH</code> to the <code>AnomalyDetectorTypes</code> array. This will /// return all metric math anomaly detectors in your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors service method.</param> /// /// <returns>The response from the DescribeAnomalyDetectors service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> public virtual DescribeAnomalyDetectorsResponse DescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnomalyDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnomalyDetectorsResponseUnmarshaller.Instance; return Invoke<DescribeAnomalyDetectorsResponse>(request, options); } /// <summary> /// Lists the anomaly detection models that you have created in your account. For single /// metric anomaly detectors, you can list all of the models in your account or filter /// the results to only the models that are related to a certain namespace, metric name, /// or metric dimension. For metric math anomaly detectors, you can list them by adding /// <code>METRIC_MATH</code> to the <code>AnomalyDetectorTypes</code> array. This will /// return all metric math anomaly detectors in your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAnomalyDetectors service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> public virtual Task<DescribeAnomalyDetectorsResponse> DescribeAnomalyDetectorsAsync(DescribeAnomalyDetectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnomalyDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnomalyDetectorsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAnomalyDetectorsResponse>(request, options, cancellationToken); } #endregion #region DescribeInsightRules /// <summary> /// Returns a list of all the Contributor Insights rules in your account. /// /// /// <para> /// For more information about Contributor Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules service method.</param> /// /// <returns>The response from the DescribeInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> public virtual DescribeInsightRulesResponse DescribeInsightRules(DescribeInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInsightRulesResponseUnmarshaller.Instance; return Invoke<DescribeInsightRulesResponse>(request, options); } /// <summary> /// Returns a list of all the Contributor Insights rules in your account. /// /// /// <para> /// For more information about Contributor Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> public virtual Task<DescribeInsightRulesResponse> DescribeInsightRulesAsync(DescribeInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<DescribeInsightRulesResponse>(request, options, cancellationToken); } #endregion #region DisableAlarmActions /// <summary> /// Disables the actions for the specified alarms. When an alarm's actions are disabled, /// the alarm actions do not execute when the alarm state changes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions service method.</param> /// /// <returns>The response from the DisableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> public virtual DisableAlarmActionsResponse DisableAlarmActions(DisableAlarmActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableAlarmActionsResponseUnmarshaller.Instance; return Invoke<DisableAlarmActionsResponse>(request, options); } /// <summary> /// Disables the actions for the specified alarms. When an alarm's actions are disabled, /// the alarm actions do not execute when the alarm state changes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> public virtual Task<DisableAlarmActionsResponse> DisableAlarmActionsAsync(DisableAlarmActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableAlarmActionsResponseUnmarshaller.Instance; return InvokeAsync<DisableAlarmActionsResponse>(request, options, cancellationToken); } #endregion #region DisableInsightRules /// <summary> /// Disables the specified Contributor Insights rules. When rules are disabled, they do /// not analyze log groups and do not incur costs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules service method.</param> /// /// <returns>The response from the DisableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> public virtual DisableInsightRulesResponse DisableInsightRules(DisableInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableInsightRulesResponseUnmarshaller.Instance; return Invoke<DisableInsightRulesResponse>(request, options); } /// <summary> /// Disables the specified Contributor Insights rules. When rules are disabled, they do /// not analyze log groups and do not incur costs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> public virtual Task<DisableInsightRulesResponse> DisableInsightRulesAsync(DisableInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<DisableInsightRulesResponse>(request, options, cancellationToken); } #endregion #region EnableAlarmActions /// <summary> /// Enables the actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> public virtual EnableAlarmActionsResponse EnableAlarmActions(EnableAlarmActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return Invoke<EnableAlarmActionsResponse>(request, options); } /// <summary> /// Enables the actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> public virtual Task<EnableAlarmActionsResponse> EnableAlarmActionsAsync(EnableAlarmActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return InvokeAsync<EnableAlarmActionsResponse>(request, options, cancellationToken); } #endregion #region EnableInsightRules /// <summary> /// Enables the specified Contributor Insights rules. When rules are enabled, they immediately /// begin analyzing log data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules service method.</param> /// /// <returns>The response from the EnableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> public virtual EnableInsightRulesResponse EnableInsightRules(EnableInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableInsightRulesResponseUnmarshaller.Instance; return Invoke<EnableInsightRulesResponse>(request, options); } /// <summary> /// Enables the specified Contributor Insights rules. When rules are enabled, they immediately /// begin analyzing log data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> public virtual Task<EnableInsightRulesResponse> EnableInsightRulesAsync(EnableInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<EnableInsightRulesResponse>(request, options, cancellationToken); } #endregion #region GetDashboard /// <summary> /// Displays the details of the dashboard that you specify. /// /// /// <para> /// To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data /// returned within <code>DashboardBody</code> as the template for the new dashboard when /// you call <code>PutDashboard</code> to create the copy. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDashboard service method.</param> /// /// <returns>The response from the GetDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> public virtual GetDashboardResponse GetDashboard(GetDashboardRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDashboardResponseUnmarshaller.Instance; return Invoke<GetDashboardResponse>(request, options); } /// <summary> /// Displays the details of the dashboard that you specify. /// /// /// <para> /// To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data /// returned within <code>DashboardBody</code> as the template for the new dashboard when /// you call <code>PutDashboard</code> to create the copy. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDashboard service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> public virtual Task<GetDashboardResponse> GetDashboardAsync(GetDashboardRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDashboardResponseUnmarshaller.Instance; return InvokeAsync<GetDashboardResponse>(request, options, cancellationToken); } #endregion #region GetInsightRuleReport /// <summary> /// This operation returns the time series data collected by a Contributor Insights rule. /// The data includes the identity and number of contributors to the log group. /// /// /// <para> /// You can also optionally return one or more statistics about each data point in the /// time series. These statistics can include the following: /// </para> /// <ul> <li> /// <para> /// <code>UniqueContributors</code> -- the number of unique contributors for each data /// point. /// </para> /// </li> <li> /// <para> /// <code>MaxContributorValue</code> -- the value of the top contributor for each data /// point. The identity of the contributor might change for each data point in the graph. /// </para> /// /// <para> /// If this rule aggregates by COUNT, the top contributor for each data point is the contributor /// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor /// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>, /// during that period. /// </para> /// </li> <li> /// <para> /// <code>SampleCount</code> -- the number of data points matched by the rule. /// </para> /// </li> <li> /// <para> /// <code>Sum</code> -- the sum of the values from all contributors during the time period /// represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Minimum</code> -- the minimum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Maximum</code> -- the maximum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Average</code> -- the average value from all contributors during the time period /// represented by that data point. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport service method.</param> /// /// <returns>The response from the GetInsightRuleReport service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> public virtual GetInsightRuleReportResponse GetInsightRuleReport(GetInsightRuleReportRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetInsightRuleReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetInsightRuleReportResponseUnmarshaller.Instance; return Invoke<GetInsightRuleReportResponse>(request, options); } /// <summary> /// This operation returns the time series data collected by a Contributor Insights rule. /// The data includes the identity and number of contributors to the log group. /// /// /// <para> /// You can also optionally return one or more statistics about each data point in the /// time series. These statistics can include the following: /// </para> /// <ul> <li> /// <para> /// <code>UniqueContributors</code> -- the number of unique contributors for each data /// point. /// </para> /// </li> <li> /// <para> /// <code>MaxContributorValue</code> -- the value of the top contributor for each data /// point. The identity of the contributor might change for each data point in the graph. /// </para> /// /// <para> /// If this rule aggregates by COUNT, the top contributor for each data point is the contributor /// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor /// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>, /// during that period. /// </para> /// </li> <li> /// <para> /// <code>SampleCount</code> -- the number of data points matched by the rule. /// </para> /// </li> <li> /// <para> /// <code>Sum</code> -- the sum of the values from all contributors during the time period /// represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Minimum</code> -- the minimum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Maximum</code> -- the maximum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Average</code> -- the average value from all contributors during the time period /// represented by that data point. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetInsightRuleReport service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> public virtual Task<GetInsightRuleReportResponse> GetInsightRuleReportAsync(GetInsightRuleReportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetInsightRuleReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetInsightRuleReportResponseUnmarshaller.Instance; return InvokeAsync<GetInsightRuleReportResponse>(request, options, cancellationToken); } #endregion #region GetMetricData /// <summary> /// You can use the <code>GetMetricData</code> API to retrieve CloudWatch metric values. /// The operation can also include a CloudWatch Metrics Insights query, and one or more /// metric math functions. /// /// /// <para> /// A <code>GetMetricData</code> operation that does not include a query can retrieve /// as many as 500 different metrics in a single request, with a total of as many as 100,800 /// data points. You can also optionally perform metric math expressions on the values /// of the returned statistics, to create new time series that represent new insights /// into your data. For example, using Lambda metrics, you could divide the Errors metric /// by the Invocations metric to get an error rate time series. For more information about /// metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric /// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// If you include a Metrics Insights query, each <code>GetMetricData</code> operation /// can include only one query. But the same <code>GetMetricData</code> operation can /// also retrieve other metrics. Metrics Insights queries can query only the most recent /// three hours of metric data. For more information about Metrics Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html">Query /// your metrics with CloudWatch Metrics Insights</a>. /// </para> /// /// <para> /// Calls to the <code>GetMetricData</code> API have a different pricing structure than /// calls to <code>GetMetricStatistics</code>. For more information about pricing, see /// <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// If you omit <code>Unit</code> in your request, all data that was collected with any /// unit is returned, along with the corresponding units that were specified when the /// data was reported to CloudWatch. If you specify a unit, the operation returns only /// data that was collected with that unit specified. If you specify a unit that does /// not match the data collected, the results of the operation are null. CloudWatch does /// not perform unit conversions. /// </para> /// /// <para> /// <b>Using Metrics Insights queries with metric math</b> /// </para> /// /// <para> /// You can't mix a Metric Insights query and metric math syntax in the same expression, /// but you can reference results from a Metrics Insights query within other Metric math /// expressions. A Metrics Insights query without a <b>GROUP BY</b> clause returns a single /// time-series (TS), and can be used as input for a metric math expression that expects /// a single time series. A Metrics Insights query with a <b>GROUP BY</b> clause returns /// an array of time-series (TS[]), and can be used as input for a metric math expression /// that expects an array of time series. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricData service method.</param> /// /// <returns>The response from the GetMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> public virtual GetMetricDataResponse GetMetricData(GetMetricDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricDataResponseUnmarshaller.Instance; return Invoke<GetMetricDataResponse>(request, options); } /// <summary> /// You can use the <code>GetMetricData</code> API to retrieve CloudWatch metric values. /// The operation can also include a CloudWatch Metrics Insights query, and one or more /// metric math functions. /// /// /// <para> /// A <code>GetMetricData</code> operation that does not include a query can retrieve /// as many as 500 different metrics in a single request, with a total of as many as 100,800 /// data points. You can also optionally perform metric math expressions on the values /// of the returned statistics, to create new time series that represent new insights /// into your data. For example, using Lambda metrics, you could divide the Errors metric /// by the Invocations metric to get an error rate time series. For more information about /// metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric /// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// If you include a Metrics Insights query, each <code>GetMetricData</code> operation /// can include only one query. But the same <code>GetMetricData</code> operation can /// also retrieve other metrics. Metrics Insights queries can query only the most recent /// three hours of metric data. For more information about Metrics Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html">Query /// your metrics with CloudWatch Metrics Insights</a>. /// </para> /// /// <para> /// Calls to the <code>GetMetricData</code> API have a different pricing structure than /// calls to <code>GetMetricStatistics</code>. For more information about pricing, see /// <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// If you omit <code>Unit</code> in your request, all data that was collected with any /// unit is returned, along with the corresponding units that were specified when the /// data was reported to CloudWatch. If you specify a unit, the operation returns only /// data that was collected with that unit specified. If you specify a unit that does /// not match the data collected, the results of the operation are null. CloudWatch does /// not perform unit conversions. /// </para> /// /// <para> /// <b>Using Metrics Insights queries with metric math</b> /// </para> /// /// <para> /// You can't mix a Metric Insights query and metric math syntax in the same expression, /// but you can reference results from a Metrics Insights query within other Metric math /// expressions. A Metrics Insights query without a <b>GROUP BY</b> clause returns a single /// time-series (TS), and can be used as input for a metric math expression that expects /// a single time series. A Metrics Insights query with a <b>GROUP BY</b> clause returns /// an array of time-series (TS[]), and can be used as input for a metric math expression /// that expects an array of time series. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> public virtual Task<GetMetricDataResponse> GetMetricDataAsync(GetMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricDataResponseUnmarshaller.Instance; return InvokeAsync<GetMetricDataResponse>(request, options, cancellationToken); } #endregion #region GetMetricStatistics /// <summary> /// Gets statistics for the specified metric. /// /// /// <para> /// The maximum number of data points returned from a single call is 1,440. If you request /// more than 1,440 data points, CloudWatch returns an error. To reduce the number of /// data points, you can narrow the specified time range and make multiple requests across /// adjacent time ranges, or you can increase the specified period. Data points are not /// returned in chronological order. /// </para> /// /// <para> /// CloudWatch aggregates data points based on the length of the period that you specify. /// For example, if you request statistics with a one-hour period, CloudWatch aggregates /// all data points with time stamps that fall within each one-hour period. Therefore, /// the number of values aggregated by CloudWatch is larger than the number of data points /// returned. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The SampleCount value of the statistic set is 1. /// </para> /// </li> <li> /// <para> /// The Min and the Max values of the statistic set are equal. /// </para> /// </li> </ul> /// <para> /// Percentile statistics are not available for metrics when any of the metric values /// are negative numbers. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016. /// </para> /// /// <para> /// For information about metrics and dimensions supported by Amazon Web Services services, /// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon /// CloudWatch Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics service method.</param> /// /// <returns>The response from the GetMetricStatistics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> public virtual GetMetricStatisticsResponse GetMetricStatistics(GetMetricStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStatisticsResponseUnmarshaller.Instance; return Invoke<GetMetricStatisticsResponse>(request, options); } /// <summary> /// Gets statistics for the specified metric. /// /// /// <para> /// The maximum number of data points returned from a single call is 1,440. If you request /// more than 1,440 data points, CloudWatch returns an error. To reduce the number of /// data points, you can narrow the specified time range and make multiple requests across /// adjacent time ranges, or you can increase the specified period. Data points are not /// returned in chronological order. /// </para> /// /// <para> /// CloudWatch aggregates data points based on the length of the period that you specify. /// For example, if you request statistics with a one-hour period, CloudWatch aggregates /// all data points with time stamps that fall within each one-hour period. Therefore, /// the number of values aggregated by CloudWatch is larger than the number of data points /// returned. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The SampleCount value of the statistic set is 1. /// </para> /// </li> <li> /// <para> /// The Min and the Max values of the statistic set are equal. /// </para> /// </li> </ul> /// <para> /// Percentile statistics are not available for metrics when any of the metric values /// are negative numbers. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016. /// </para> /// /// <para> /// For information about metrics and dimensions supported by Amazon Web Services services, /// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon /// CloudWatch Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricStatistics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> public virtual Task<GetMetricStatisticsResponse> GetMetricStatisticsAsync(GetMetricStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStatisticsResponseUnmarshaller.Instance; return InvokeAsync<GetMetricStatisticsResponse>(request, options, cancellationToken); } #endregion #region GetMetricStream /// <summary> /// Returns information about the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStream service method.</param> /// /// <returns>The response from the GetMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> public virtual GetMetricStreamResponse GetMetricStream(GetMetricStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStreamResponseUnmarshaller.Instance; return Invoke<GetMetricStreamResponse>(request, options); } /// <summary> /// Returns information about the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> public virtual Task<GetMetricStreamResponse> GetMetricStreamAsync(GetMetricStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStreamResponseUnmarshaller.Instance; return InvokeAsync<GetMetricStreamResponse>(request, options, cancellationToken); } #endregion #region GetMetricWidgetImage /// <summary> /// You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph /// of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this /// image into your services and products, such as wiki pages, reports, and documents. /// You could also retrieve images regularly, such as every minute, and create your own /// custom live dashboard. /// /// /// <para> /// The graph you retrieve can include all CloudWatch metric graph features, including /// metric math and horizontal and vertical annotations. /// </para> /// /// <para> /// There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code> /// action has the following limits: /// </para> /// <ul> <li> /// <para> /// As many as 100 metrics in the graph. /// </para> /// </li> <li> /// <para> /// Up to 100 KB uncompressed payload. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage service method.</param> /// /// <returns>The response from the GetMetricWidgetImage service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> public virtual GetMetricWidgetImageResponse GetMetricWidgetImage(GetMetricWidgetImageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricWidgetImageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricWidgetImageResponseUnmarshaller.Instance; return Invoke<GetMetricWidgetImageResponse>(request, options); } /// <summary> /// You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph /// of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this /// image into your services and products, such as wiki pages, reports, and documents. /// You could also retrieve images regularly, such as every minute, and create your own /// custom live dashboard. /// /// /// <para> /// The graph you retrieve can include all CloudWatch metric graph features, including /// metric math and horizontal and vertical annotations. /// </para> /// /// <para> /// There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code> /// action has the following limits: /// </para> /// <ul> <li> /// <para> /// As many as 100 metrics in the graph. /// </para> /// </li> <li> /// <para> /// Up to 100 KB uncompressed payload. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricWidgetImage service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> public virtual Task<GetMetricWidgetImageResponse> GetMetricWidgetImageAsync(GetMetricWidgetImageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricWidgetImageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricWidgetImageResponseUnmarshaller.Instance; return InvokeAsync<GetMetricWidgetImageResponse>(request, options, cancellationToken); } #endregion #region ListDashboards /// <summary> /// Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>, /// only those dashboards with names starting with the prefix are listed. Otherwise, all /// dashboards in your account are listed. /// /// /// <para> /// <code>ListDashboards</code> returns up to 1000 results on one page. If there are /// more than 1000 dashboards, you can call <code>ListDashboards</code> again and include /// the value you received for <code>NextToken</code> in the first call, to receive the /// next 1000 results. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDashboards service method.</param> /// /// <returns>The response from the ListDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> public virtual ListDashboardsResponse ListDashboards(ListDashboardsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDashboardsResponseUnmarshaller.Instance; return Invoke<ListDashboardsResponse>(request, options); } /// <summary> /// Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>, /// only those dashboards with names starting with the prefix are listed. Otherwise, all /// dashboards in your account are listed. /// /// /// <para> /// <code>ListDashboards</code> returns up to 1000 results on one page. If there are /// more than 1000 dashboards, you can call <code>ListDashboards</code> again and include /// the value you received for <code>NextToken</code> in the first call, to receive the /// next 1000 results. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDashboards service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> public virtual Task<ListDashboardsResponse> ListDashboardsAsync(ListDashboardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDashboardsResponseUnmarshaller.Instance; return InvokeAsync<ListDashboardsResponse>(request, options, cancellationToken); } #endregion #region ListManagedInsightRules /// <summary> /// Returns a list that contains the number of managed Contributor Insights rules in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules service method.</param> /// /// <returns>The response from the ListManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> public virtual ListManagedInsightRulesResponse ListManagedInsightRules(ListManagedInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedInsightRulesResponseUnmarshaller.Instance; return Invoke<ListManagedInsightRulesResponse>(request, options); } /// <summary> /// Returns a list that contains the number of managed Contributor Insights rules in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> public virtual Task<ListManagedInsightRulesResponse> ListManagedInsightRulesAsync(ListManagedInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<ListManagedInsightRulesResponse>(request, options, cancellationToken); } #endregion #region ListMetrics /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual ListMetricsResponse ListMetrics() { return ListMetrics(new ListMetricsRequest()); } /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetrics service method.</param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual ListMetricsResponse ListMetrics(ListMetricsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricsResponseUnmarshaller.Instance; return Invoke<ListMetricsResponse>(request, options); } /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual Task<ListMetricsResponse> ListMetricsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListMetricsAsync(new ListMetricsRequest(), cancellationToken); } /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetrics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual Task<ListMetricsResponse> ListMetricsAsync(ListMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricsResponseUnmarshaller.Instance; return InvokeAsync<ListMetricsResponse>(request, options, cancellationToken); } #endregion #region ListMetricStreams /// <summary> /// Returns a list of metric streams in this account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams service method.</param> /// /// <returns>The response from the ListMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> public virtual ListMetricStreamsResponse ListMetricStreams(ListMetricStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricStreamsResponseUnmarshaller.Instance; return Invoke<ListMetricStreamsResponse>(request, options); } /// <summary> /// Returns a list of metric streams in this account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> public virtual Task<ListMetricStreamsResponse> ListMetricStreamsAsync(ListMetricStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricStreamsResponseUnmarshaller.Instance; return InvokeAsync<ListMetricStreamsResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource /// <summary> /// Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor /// Insights rules support tagging. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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> /// Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor /// Insights rules support tagging. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 PutAnomalyDetector /// <summary> /// Creates an anomaly detection model for a CloudWatch metric. You can use the model /// to display a band of expected normal values when the metric is graphed. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch /// Anomaly Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector service method.</param> /// /// <returns>The response from the PutAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> public virtual PutAnomalyDetectorResponse PutAnomalyDetector(PutAnomalyDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAnomalyDetectorResponseUnmarshaller.Instance; return Invoke<PutAnomalyDetectorResponse>(request, options); } /// <summary> /// Creates an anomaly detection model for a CloudWatch metric. You can use the model /// to display a band of expected normal values when the metric is graphed. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch /// Anomaly Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> public virtual Task<PutAnomalyDetectorResponse> PutAnomalyDetectorAsync(PutAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAnomalyDetectorResponseUnmarshaller.Instance; return InvokeAsync<PutAnomalyDetectorResponse>(request, options, cancellationToken); } #endregion #region PutCompositeAlarm /// <summary> /// Creates or updates a <i>composite alarm</i>. When you create a composite alarm, you /// specify a rule expression for the alarm that takes into account the alarm states of /// other alarms that you have created. The composite alarm goes into ALARM state only /// if all conditions of the rule are met. /// /// /// <para> /// The alarms specified in a composite alarm's rule expression can include metric alarms /// and other composite alarms. The rule expression of a composite alarm can include as /// many as 100 underlying alarms. Any single alarm can be included in the rule expressions /// of as many as 150 composite alarms. /// </para> /// /// <para> /// Using composite alarms can reduce alarm noise. You can create multiple metric alarms, /// and also create a composite alarm and set up alerts only for the composite alarm. /// For example, you could create a composite alarm that goes into ALARM state only when /// more than one of the underlying metric alarms are in ALARM state. /// </para> /// /// <para> /// Currently, the only alarm actions that can be taken by composite alarms are notifying /// SNS topics. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. For a composite alarm, this initial time after /// creation is the only time that the alarm can be in <code>INSUFFICIENT_DATA</code> /// state. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// To use this operation, you must be signed on with the <code>cloudwatch:PutCompositeAlarm</code> /// permission that is scoped to <code>*</code>. You can't create a composite alarms if /// your <code>cloudwatch:PutCompositeAlarm</code> permission has a narrower scope. /// </para> /// /// <para> /// If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to /// create a composite alarm that has Systems Manager OpsItem actions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm service method.</param> /// /// <returns>The response from the PutCompositeAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> public virtual PutCompositeAlarmResponse PutCompositeAlarm(PutCompositeAlarmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCompositeAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCompositeAlarmResponseUnmarshaller.Instance; return Invoke<PutCompositeAlarmResponse>(request, options); } /// <summary> /// Creates or updates a <i>composite alarm</i>. When you create a composite alarm, you /// specify a rule expression for the alarm that takes into account the alarm states of /// other alarms that you have created. The composite alarm goes into ALARM state only /// if all conditions of the rule are met. /// /// /// <para> /// The alarms specified in a composite alarm's rule expression can include metric alarms /// and other composite alarms. The rule expression of a composite alarm can include as /// many as 100 underlying alarms. Any single alarm can be included in the rule expressions /// of as many as 150 composite alarms. /// </para> /// /// <para> /// Using composite alarms can reduce alarm noise. You can create multiple metric alarms, /// and also create a composite alarm and set up alerts only for the composite alarm. /// For example, you could create a composite alarm that goes into ALARM state only when /// more than one of the underlying metric alarms are in ALARM state. /// </para> /// /// <para> /// Currently, the only alarm actions that can be taken by composite alarms are notifying /// SNS topics. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. For a composite alarm, this initial time after /// creation is the only time that the alarm can be in <code>INSUFFICIENT_DATA</code> /// state. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// To use this operation, you must be signed on with the <code>cloudwatch:PutCompositeAlarm</code> /// permission that is scoped to <code>*</code>. You can't create a composite alarms if /// your <code>cloudwatch:PutCompositeAlarm</code> permission has a narrower scope. /// </para> /// /// <para> /// If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to /// create a composite alarm that has Systems Manager OpsItem actions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutCompositeAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> public virtual Task<PutCompositeAlarmResponse> PutCompositeAlarmAsync(PutCompositeAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutCompositeAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCompositeAlarmResponseUnmarshaller.Instance; return InvokeAsync<PutCompositeAlarmResponse>(request, options, cancellationToken); } #endregion #region PutDashboard /// <summary> /// Creates a dashboard if it does not already exist, or updates an existing dashboard. /// If you update a dashboard, the entire contents are replaced with what you specify /// here. /// /// /// <para> /// All dashboards in your account are global, not region-specific. /// </para> /// /// <para> /// A simple way to create a dashboard using <code>PutDashboard</code> is to copy an existing /// dashboard. To copy an existing dashboard using the console, you can load the dashboard /// and then use the View/edit source command in the Actions menu to display the JSON /// block for that dashboard. Another way to copy a dashboard is to use <code>GetDashboard</code>, /// and then use the data returned within <code>DashboardBody</code> as the template for /// the new dashboard when you call <code>PutDashboard</code>. /// </para> /// /// <para> /// When you create a dashboard with <code>PutDashboard</code>, a good practice is to /// add a text widget at the top of the dashboard with a message that the dashboard was /// created by script and should not be changed in the console. This message could also /// point console users to the location of the <code>DashboardBody</code> script or the /// CloudFormation template used to create the dashboard. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutDashboard service method.</param> /// /// <returns>The response from the PutDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardInvalidInputErrorException"> /// Some part of the dashboard data is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> public virtual PutDashboardResponse PutDashboard(PutDashboardRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = PutDashboardResponseUnmarshaller.Instance; return Invoke<PutDashboardResponse>(request, options); } /// <summary> /// Creates a dashboard if it does not already exist, or updates an existing dashboard. /// If you update a dashboard, the entire contents are replaced with what you specify /// here. /// /// /// <para> /// All dashboards in your account are global, not region-specific. /// </para> /// /// <para> /// A simple way to create a dashboard using <code>PutDashboard</code> is to copy an existing /// dashboard. To copy an existing dashboard using the console, you can load the dashboard /// and then use the View/edit source command in the Actions menu to display the JSON /// block for that dashboard. Another way to copy a dashboard is to use <code>GetDashboard</code>, /// and then use the data returned within <code>DashboardBody</code> as the template for /// the new dashboard when you call <code>PutDashboard</code>. /// </para> /// /// <para> /// When you create a dashboard with <code>PutDashboard</code>, a good practice is to /// add a text widget at the top of the dashboard with a message that the dashboard was /// created by script and should not be changed in the console. This message could also /// point console users to the location of the <code>DashboardBody</code> script or the /// CloudFormation template used to create the dashboard. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutDashboard service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardInvalidInputErrorException"> /// Some part of the dashboard data is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> public virtual Task<PutDashboardResponse> PutDashboardAsync(PutDashboardRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = PutDashboardResponseUnmarshaller.Instance; return InvokeAsync<PutDashboardResponse>(request, options, cancellationToken); } #endregion #region PutInsightRule /// <summary> /// Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs /// log group, enabling you to find contributor data for the log events in that log group. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutInsightRule service method.</param> /// /// <returns>The response from the PutInsightRule service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> public virtual PutInsightRuleResponse PutInsightRule(PutInsightRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutInsightRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutInsightRuleResponseUnmarshaller.Instance; return Invoke<PutInsightRuleResponse>(request, options); } /// <summary> /// Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs /// log group, enabling you to find contributor data for the log events in that log group. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutInsightRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutInsightRule service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> public virtual Task<PutInsightRuleResponse> PutInsightRuleAsync(PutInsightRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutInsightRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutInsightRuleResponseUnmarshaller.Instance; return InvokeAsync<PutInsightRuleResponse>(request, options, cancellationToken); } #endregion #region PutManagedInsightRules /// <summary> /// Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. /// When you enable a managed rule, you create a Contributor Insights rule that collects /// data from Amazon Web Services services. You cannot edit these rules with <code>PutInsightRule</code>. /// The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, /// <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>. If a previously /// created managed rule is currently disabled, a subsequent call to this API will re-enable /// it. Use <code>ListManagedInsightRules</code> to describe all available rules. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules service method.</param> /// /// <returns>The response from the PutManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> public virtual PutManagedInsightRulesResponse PutManagedInsightRules(PutManagedInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutManagedInsightRulesResponseUnmarshaller.Instance; return Invoke<PutManagedInsightRulesResponse>(request, options); } /// <summary> /// Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. /// When you enable a managed rule, you create a Contributor Insights rule that collects /// data from Amazon Web Services services. You cannot edit these rules with <code>PutInsightRule</code>. /// The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, /// <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>. If a previously /// created managed rule is currently disabled, a subsequent call to this API will re-enable /// it. Use <code>ListManagedInsightRules</code> to describe all available rules. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> public virtual Task<PutManagedInsightRulesResponse> PutManagedInsightRulesAsync(PutManagedInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutManagedInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<PutManagedInsightRulesResponse>(request, options, cancellationToken); } #endregion #region PutMetricAlarm /// <summary> /// Creates or updates an alarm and associates it with the specified metric, metric math /// expression, anomaly detection model, or Metrics Insights query. For more information /// about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create /// alarms on Metrics Insights queries</a>. /// /// /// <para> /// Alarms based on anomaly detection models cannot have Auto Scaling actions. /// </para> /// /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations: /// </para> /// <ul> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions /// </para> /// </li> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm with Systems /// Manager OpsItem or response plan actions. /// </para> /// </li> </ul> /// <para> /// The first time you create an alarm in the Amazon Web Services Management Console, /// the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked /// role for you. The service-linked roles are called <code>AWSServiceRoleForCloudWatchEvents</code> /// and <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>. For more information, /// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon /// Web Services service-linked role</a>. /// </para> /// /// <para> /// Each <code>PutMetricAlarm</code> action has a maximum uncompressed payload of 120 /// KB. /// </para> /// /// <para> /// <b>Cross-account alarms</b> /// </para> /// /// <para> /// You can set an alarm on metrics in the current account, or in another account. To /// create a cross-account alarm that watches a metric in a different account, you must /// have completed the following pre-requisites: /// </para> /// <ul> <li> /// <para> /// The account where the metrics are located (the <i>sharing account</i>) must already /// have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not /// already have this role, you must create it using the instructions in <b>Set up a sharing /// account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. The policy for that role must grant /// access to the ID of the account where you are creating the alarm. /// </para> /// </li> <li> /// <para> /// The account where you are creating the alarm (the <i>monitoring account</i>) must /// already have a service-linked role named <b>AWSServiceRoleForCloudWatchCrossAccount</b> /// to allow CloudWatch to assume the sharing role in the sharing account. If it does /// not, you must create it following the directions in <b>Set up a monitoring account</b> /// in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm service method.</param> /// /// <returns>The response from the PutMetricAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> public virtual PutMetricAlarmResponse PutMetricAlarm(PutMetricAlarmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricAlarmResponseUnmarshaller.Instance; return Invoke<PutMetricAlarmResponse>(request, options); } /// <summary> /// Creates or updates an alarm and associates it with the specified metric, metric math /// expression, anomaly detection model, or Metrics Insights query. For more information /// about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create /// alarms on Metrics Insights queries</a>. /// /// /// <para> /// Alarms based on anomaly detection models cannot have Auto Scaling actions. /// </para> /// /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations: /// </para> /// <ul> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions /// </para> /// </li> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm with Systems /// Manager OpsItem or response plan actions. /// </para> /// </li> </ul> /// <para> /// The first time you create an alarm in the Amazon Web Services Management Console, /// the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked /// role for you. The service-linked roles are called <code>AWSServiceRoleForCloudWatchEvents</code> /// and <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>. For more information, /// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon /// Web Services service-linked role</a>. /// </para> /// /// <para> /// Each <code>PutMetricAlarm</code> action has a maximum uncompressed payload of 120 /// KB. /// </para> /// /// <para> /// <b>Cross-account alarms</b> /// </para> /// /// <para> /// You can set an alarm on metrics in the current account, or in another account. To /// create a cross-account alarm that watches a metric in a different account, you must /// have completed the following pre-requisites: /// </para> /// <ul> <li> /// <para> /// The account where the metrics are located (the <i>sharing account</i>) must already /// have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not /// already have this role, you must create it using the instructions in <b>Set up a sharing /// account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. The policy for that role must grant /// access to the ID of the account where you are creating the alarm. /// </para> /// </li> <li> /// <para> /// The account where you are creating the alarm (the <i>monitoring account</i>) must /// already have a service-linked role named <b>AWSServiceRoleForCloudWatchCrossAccount</b> /// to allow CloudWatch to assume the sharing role in the sharing account. If it does /// not, you must create it following the directions in <b>Set up a monitoring account</b> /// in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> public virtual Task<PutMetricAlarmResponse> PutMetricAlarmAsync(PutMetricAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricAlarmResponseUnmarshaller.Instance; return InvokeAsync<PutMetricAlarmResponse>(request, options, cancellationToken); } #endregion #region PutMetricData /// <summary> /// Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data /// points with the specified metric. If the specified metric does not exist, CloudWatch /// creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes /// for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>. /// /// /// <para> /// You can publish either individual data points in the <code>Value</code> field, or /// arrays of values and the number of times each value occurred during the period by /// using the <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> /// structure. Using the <code>Values</code> and <code>Counts</code> method enables you /// to publish up to 150 values per metric with one <code>PutMetricData</code> request, /// and supports retrieving percentile statistics on this data. /// </para> /// /// <para> /// Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. /// You can send a payload compressed by gzip. Each request is also limited to no more /// than 1000 different metrics. /// </para> /// /// <para> /// Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// CloudWatch rejects values that are either too small or too large. Values must be in /// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, /// -Infinity) are not supported. /// </para> /// /// <para> /// You can use up to 30 dimensions per metric to further clarify what data the metric /// collects. Each dimension consists of a Name and Value pair. For more information about /// specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing /// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// You specify the time stamp to be associated with each data point. You can specify /// time stamps that are as much as two weeks before the current date, and as much as /// 2 hours after the current day and time. /// </para> /// /// <para> /// Data points with time stamps from 24 hours ago or longer can take at least 48 hours /// to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// from the time they are submitted. Data points with time stamps between 3 and 24 hours /// ago can take as much as 2 hours to become available for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>, /// <code>Max</code>, and <code>Sum</code> are all equal. /// </para> /// </li> <li> /// <para> /// The <code>Min</code> and <code>Max</code> are equal, and <code>Sum</code> is equal /// to <code>Min</code> multiplied by <code>SampleCount</code>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> public virtual PutMetricDataResponse PutMetricData(PutMetricDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricDataResponseUnmarshaller.Instance; return Invoke<PutMetricDataResponse>(request, options); } /// <summary> /// Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data /// points with the specified metric. If the specified metric does not exist, CloudWatch /// creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes /// for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>. /// /// /// <para> /// You can publish either individual data points in the <code>Value</code> field, or /// arrays of values and the number of times each value occurred during the period by /// using the <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> /// structure. Using the <code>Values</code> and <code>Counts</code> method enables you /// to publish up to 150 values per metric with one <code>PutMetricData</code> request, /// and supports retrieving percentile statistics on this data. /// </para> /// /// <para> /// Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. /// You can send a payload compressed by gzip. Each request is also limited to no more /// than 1000 different metrics. /// </para> /// /// <para> /// Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// CloudWatch rejects values that are either too small or too large. Values must be in /// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, /// -Infinity) are not supported. /// </para> /// /// <para> /// You can use up to 30 dimensions per metric to further clarify what data the metric /// collects. Each dimension consists of a Name and Value pair. For more information about /// specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing /// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// You specify the time stamp to be associated with each data point. You can specify /// time stamps that are as much as two weeks before the current date, and as much as /// 2 hours after the current day and time. /// </para> /// /// <para> /// Data points with time stamps from 24 hours ago or longer can take at least 48 hours /// to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// from the time they are submitted. Data points with time stamps between 3 and 24 hours /// ago can take as much as 2 hours to become available for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>, /// <code>Max</code>, and <code>Sum</code> are all equal. /// </para> /// </li> <li> /// <para> /// The <code>Min</code> and <code>Max</code> are equal, and <code>Sum</code> is equal /// to <code>Min</code> multiplied by <code>SampleCount</code>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> public virtual Task<PutMetricDataResponse> PutMetricDataAsync(PutMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricDataResponseUnmarshaller.Instance; return InvokeAsync<PutMetricDataResponse>(request, options, cancellationToken); } #endregion #region PutMetricStream /// <summary> /// Creates or updates a metric stream. Metric streams can automatically stream CloudWatch /// metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party /// solutions. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html"> /// Using Metric Streams</a>. /// </para> /// /// <para> /// To create a metric stream, you must be signed in to an account that has the <code>iam:PassRole</code> /// permission and either the <code>CloudWatchFullAccess</code> policy or the <code>cloudwatch:PutMetricStream</code> /// permission. /// </para> /// /// <para> /// When you create or update a metric stream, you choose one of the following: /// </para> /// <ul> <li> /// <para> /// Stream metrics from all metric namespaces in the account. /// </para> /// </li> <li> /// <para> /// Stream metrics from all metric namespaces in the account, except for the namespaces /// that you list in <code>ExcludeFilters</code>. /// </para> /// </li> <li> /// <para> /// Stream metrics from only the metric namespaces that you list in <code>IncludeFilters</code>. /// </para> /// </li> </ul> /// <para> /// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, /// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can /// use the <code>StatisticsConfigurations</code> parameter to have the metric stream /// send additional statistics in the stream. Streaming additional statistics incurs additional /// costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon /// CloudWatch Pricing</a>. /// </para> /// /// <para> /// When you use <code>PutMetricStream</code> to create a new metric stream, the stream /// is created in the <code>running</code> state. If you use it to update an existing /// stream, the state of the stream is not changed. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability and you create a metric stream /// in a monitoring account, you can choose whether to include metrics from source accounts /// in the stream. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricStream service method.</param> /// /// <returns>The response from the PutMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> public virtual PutMetricStreamResponse PutMetricStream(PutMetricStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricStreamResponseUnmarshaller.Instance; return Invoke<PutMetricStreamResponse>(request, options); } /// <summary> /// Creates or updates a metric stream. Metric streams can automatically stream CloudWatch /// metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party /// solutions. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html"> /// Using Metric Streams</a>. /// </para> /// /// <para> /// To create a metric stream, you must be signed in to an account that has the <code>iam:PassRole</code> /// permission and either the <code>CloudWatchFullAccess</code> policy or the <code>cloudwatch:PutMetricStream</code> /// permission. /// </para> /// /// <para> /// When you create or update a metric stream, you choose one of the following: /// </para> /// <ul> <li> /// <para> /// Stream metrics from all metric namespaces in the account. /// </para> /// </li> <li> /// <para> /// Stream metrics from all metric namespaces in the account, except for the namespaces /// that you list in <code>ExcludeFilters</code>. /// </para> /// </li> <li> /// <para> /// Stream metrics from only the metric namespaces that you list in <code>IncludeFilters</code>. /// </para> /// </li> </ul> /// <para> /// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, /// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can /// use the <code>StatisticsConfigurations</code> parameter to have the metric stream /// send additional statistics in the stream. Streaming additional statistics incurs additional /// costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon /// CloudWatch Pricing</a>. /// </para> /// /// <para> /// When you use <code>PutMetricStream</code> to create a new metric stream, the stream /// is created in the <code>running</code> state. If you use it to update an existing /// stream, the state of the stream is not changed. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability and you create a metric stream /// in a monitoring account, you can choose whether to include metrics from source accounts /// in the stream. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> public virtual Task<PutMetricStreamResponse> PutMetricStreamAsync(PutMetricStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricStreamResponseUnmarshaller.Instance; return InvokeAsync<PutMetricStreamResponse>(request, options, cancellationToken); } #endregion #region SetAlarmState /// <summary> /// Temporarily sets the state of an alarm for testing purposes. When the updated state /// differs from the previous value, the action configured for the appropriate state is /// invoked. For example, if your alarm is configured to send an Amazon SNS message when /// an alarm is triggered, temporarily changing the alarm state to <code>ALARM</code> /// sends an SNS message. /// /// /// <para> /// Metric alarms returns to their actual state quickly, often within seconds. Because /// the metric alarm state change happens quickly, it is typically only visible in the /// alarm's <b>History</b> tab in the Amazon CloudWatch console or through <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>. /// </para> /// /// <para> /// If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is /// not guaranteed to return to its actual state. It returns to its actual state only /// once any of its children alarms change state. It is also reevaluated if you update /// its configuration. /// </para> /// /// <para> /// If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, /// you must include information in the <code>StateReasonData</code> parameter to enable /// the policy to take the correct action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetAlarmState service method.</param> /// /// <returns>The response from the SetAlarmState service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidFormatException"> /// Data was not syntactically valid JSON. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> public virtual SetAlarmStateResponse SetAlarmState(SetAlarmStateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetAlarmStateRequestMarshaller.Instance; options.ResponseUnmarshaller = SetAlarmStateResponseUnmarshaller.Instance; return Invoke<SetAlarmStateResponse>(request, options); } /// <summary> /// Temporarily sets the state of an alarm for testing purposes. When the updated state /// differs from the previous value, the action configured for the appropriate state is /// invoked. For example, if your alarm is configured to send an Amazon SNS message when /// an alarm is triggered, temporarily changing the alarm state to <code>ALARM</code> /// sends an SNS message. /// /// /// <para> /// Metric alarms returns to their actual state quickly, often within seconds. Because /// the metric alarm state change happens quickly, it is typically only visible in the /// alarm's <b>History</b> tab in the Amazon CloudWatch console or through <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>. /// </para> /// /// <para> /// If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is /// not guaranteed to return to its actual state. It returns to its actual state only /// once any of its children alarms change state. It is also reevaluated if you update /// its configuration. /// </para> /// /// <para> /// If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, /// you must include information in the <code>StateReasonData</code> parameter to enable /// the policy to take the correct action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetAlarmState service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetAlarmState service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidFormatException"> /// Data was not syntactically valid JSON. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> public virtual Task<SetAlarmStateResponse> SetAlarmStateAsync(SetAlarmStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetAlarmStateRequestMarshaller.Instance; options.ResponseUnmarshaller = SetAlarmStateResponseUnmarshaller.Instance; return InvokeAsync<SetAlarmStateResponse>(request, options, cancellationToken); } #endregion #region StartMetricStreams /// <summary> /// Starts the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams service method.</param> /// /// <returns>The response from the StartMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> public virtual StartMetricStreamsResponse StartMetricStreams(StartMetricStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMetricStreamsResponseUnmarshaller.Instance; return Invoke<StartMetricStreamsResponse>(request, options); } /// <summary> /// Starts the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> public virtual Task<StartMetricStreamsResponse> StartMetricStreamsAsync(StartMetricStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMetricStreamsResponseUnmarshaller.Instance; return InvokeAsync<StartMetricStreamsResponse>(request, options, cancellationToken); } #endregion #region StopMetricStreams /// <summary> /// Stops the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams service method.</param> /// /// <returns>The response from the StopMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> public virtual StopMetricStreamsResponse StopMetricStreams(StopMetricStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StopMetricStreamsResponseUnmarshaller.Instance; return Invoke<StopMetricStreamsResponse>(request, options); } /// <summary> /// Stops the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> public virtual Task<StopMetricStreamsResponse> StopMetricStreamsAsync(StopMetricStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StopMetricStreamsResponseUnmarshaller.Instance; return InvokeAsync<StopMetricStreamsResponse>(request, options, cancellationToken); } #endregion #region TagResource /// <summary> /// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, /// the only CloudWatch resources that can be tagged are alarms and Contributor Insights /// rules. /// /// /// <para> /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// </para> /// /// <para> /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// </para> /// /// <para> /// You can use the <code>TagResource</code> action with an alarm that already has tags. /// If you specify a new tag key for the alarm, this tag is appended to the list of tags /// associated with the alarm. If you specify a tag key that is already associated with /// the alarm, the new tag value that you specify replaces the previous value for that /// tag. /// </para> /// /// <para> /// You can associate as many as 50 tags with a CloudWatch resource. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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> /// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, /// the only CloudWatch resources that can be tagged are alarms and Contributor Insights /// rules. /// /// /// <para> /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// </para> /// /// <para> /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// </para> /// /// <para> /// You can use the <code>TagResource</code> action with an alarm that already has tags. /// If you specify a new tag key for the alarm, this tag is appended to the list of tags /// associated with the alarm. If you specify a tag key that is already associated with /// the alarm, the new tag value that you specify replaces the previous value for that /// tag. /// </para> /// /// <para> /// You can associate as many as 50 tags with a CloudWatch resource. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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> /// Removes one or more tags from the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Removes one or more tags from the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 } }
4,059
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudWatch.Model; namespace Amazon.CloudWatch { /// <summary> /// Interface for accessing CloudWatch /// /// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources /// and the applications you run on Amazon Web Services in real time. You can use CloudWatch /// to collect and track metrics, which are the variables you want to measure for your /// resources and applications. /// /// /// <para> /// CloudWatch alarms send notifications or automatically change the resources you are /// monitoring based on rules that you define. For example, you can monitor the CPU usage /// and disk reads and writes of your Amazon EC2 instances. Then, use this data to determine /// whether you should launch additional instances to handle increased load. You can also /// use this data to stop under-used instances to save money. /// </para> /// /// <para> /// In addition to monitoring the built-in metrics that come with Amazon Web Services, /// you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility /// into resource utilization, application performance, and operational health. /// </para> /// </summary> public partial interface IAmazonCloudWatch : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> ICloudWatchPaginatorFactory Paginators { get; } #region DeleteAlarms /// <summary> /// Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, /// this total can include no more than one composite alarm. For example, you could delete /// 99 metric alarms and one composite alarms with one operation, but you can't delete /// two composite alarms with one operation. /// /// /// <para> /// If you specify an incorrect alarm name or make any other error in the operation, /// no alarms are deleted. To confirm that alarms were deleted successfully, you can use /// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> /// operation after using <code>DeleteAlarms</code>. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms service method.</param> /// /// <returns>The response from the DeleteAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest request); /// <summary> /// Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, /// this total can include no more than one composite alarm. For example, you could delete /// 99 metric alarms and one composite alarms with one operation, but you can't delete /// two composite alarms with one operation. /// /// /// <para> /// If you specify an incorrect alarm name or make any other error in the operation, /// no alarms are deleted. To confirm that alarms were deleted successfully, you can use /// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> /// operation after using <code>DeleteAlarms</code>. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> Task<DeleteAlarmsResponse> DeleteAlarmsAsync(DeleteAlarmsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteAnomalyDetector /// <summary> /// Deletes the specified anomaly detection model from your account. For more information /// about how to delete an anomaly detection model, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting /// an anomaly detection model</a> in the <i>CloudWatch User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector service method.</param> /// /// <returns>The response from the DeleteAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> DeleteAnomalyDetectorResponse DeleteAnomalyDetector(DeleteAnomalyDetectorRequest request); /// <summary> /// Deletes the specified anomaly detection model from your account. For more information /// about how to delete an anomaly detection model, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting /// an anomaly detection model</a> in the <i>CloudWatch User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> Task<DeleteAnomalyDetectorResponse> DeleteAnomalyDetectorAsync(DeleteAnomalyDetectorRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDashboards /// <summary> /// Deletes all dashboards that you specify. You can specify up to 100 dashboards to delete. /// If there is an error during this call, no dashboards are deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards service method.</param> /// /// <returns>The response from the DeleteDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> DeleteDashboardsResponse DeleteDashboards(DeleteDashboardsRequest request); /// <summary> /// Deletes all dashboards that you specify. You can specify up to 100 dashboards to delete. /// If there is an error during this call, no dashboards are deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> Task<DeleteDashboardsResponse> DeleteDashboardsAsync(DeleteDashboardsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteInsightRules /// <summary> /// Permanently deletes the specified Contributor Insights rules. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules service method.</param> /// /// <returns>The response from the DeleteInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> DeleteInsightRulesResponse DeleteInsightRules(DeleteInsightRulesRequest request); /// <summary> /// Permanently deletes the specified Contributor Insights rules. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> Task<DeleteInsightRulesResponse> DeleteInsightRulesAsync(DeleteInsightRulesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteMetricStream /// <summary> /// Permanently deletes the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream service method.</param> /// /// <returns>The response from the DeleteMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> DeleteMetricStreamResponse DeleteMetricStream(DeleteMetricStreamRequest request); /// <summary> /// Permanently deletes the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> Task<DeleteMetricStreamResponse> DeleteMetricStreamAsync(DeleteMetricStreamRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAlarmHistory /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> DescribeAlarmHistoryResponse DescribeAlarmHistory(); /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory service method.</param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> DescribeAlarmHistoryResponse DescribeAlarmHistory(DescribeAlarmHistoryRequest request); /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> Task<DescribeAlarmHistoryResponse> DescribeAlarmHistoryAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> Task<DescribeAlarmHistoryResponse> DescribeAlarmHistoryAsync(DescribeAlarmHistoryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAlarms /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> DescribeAlarmsResponse DescribeAlarms(); /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms service method.</param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest request); /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> Task<DescribeAlarmsResponse> DescribeAlarmsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> Task<DescribeAlarmsResponse> DescribeAlarmsAsync(DescribeAlarmsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAlarmsForMetric /// <summary> /// Retrieves the alarms for the specified metric. To filter the results, specify a statistic, /// period, or unit. /// /// /// <para> /// This operation retrieves only standard alarms that are based on the specified metric. /// It does not return alarms based on math expressions that use the specified metric, /// or composite alarms that use the specified metric. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric service method.</param> /// /// <returns>The response from the DescribeAlarmsForMetric service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> DescribeAlarmsForMetricResponse DescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request); /// <summary> /// Retrieves the alarms for the specified metric. To filter the results, specify a statistic, /// period, or unit. /// /// /// <para> /// This operation retrieves only standard alarms that are based on the specified metric. /// It does not return alarms based on math expressions that use the specified metric, /// or composite alarms that use the specified metric. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmsForMetric service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> Task<DescribeAlarmsForMetricResponse> DescribeAlarmsForMetricAsync(DescribeAlarmsForMetricRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAnomalyDetectors /// <summary> /// Lists the anomaly detection models that you have created in your account. For single /// metric anomaly detectors, you can list all of the models in your account or filter /// the results to only the models that are related to a certain namespace, metric name, /// or metric dimension. For metric math anomaly detectors, you can list them by adding /// <code>METRIC_MATH</code> to the <code>AnomalyDetectorTypes</code> array. This will /// return all metric math anomaly detectors in your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors service method.</param> /// /// <returns>The response from the DescribeAnomalyDetectors service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> DescribeAnomalyDetectorsResponse DescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request); /// <summary> /// Lists the anomaly detection models that you have created in your account. For single /// metric anomaly detectors, you can list all of the models in your account or filter /// the results to only the models that are related to a certain namespace, metric name, /// or metric dimension. For metric math anomaly detectors, you can list them by adding /// <code>METRIC_MATH</code> to the <code>AnomalyDetectorTypes</code> array. This will /// return all metric math anomaly detectors in your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAnomalyDetectors service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> Task<DescribeAnomalyDetectorsResponse> DescribeAnomalyDetectorsAsync(DescribeAnomalyDetectorsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeInsightRules /// <summary> /// Returns a list of all the Contributor Insights rules in your account. /// /// /// <para> /// For more information about Contributor Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules service method.</param> /// /// <returns>The response from the DescribeInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> DescribeInsightRulesResponse DescribeInsightRules(DescribeInsightRulesRequest request); /// <summary> /// Returns a list of all the Contributor Insights rules in your account. /// /// /// <para> /// For more information about Contributor Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> Task<DescribeInsightRulesResponse> DescribeInsightRulesAsync(DescribeInsightRulesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisableAlarmActions /// <summary> /// Disables the actions for the specified alarms. When an alarm's actions are disabled, /// the alarm actions do not execute when the alarm state changes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions service method.</param> /// /// <returns>The response from the DisableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> DisableAlarmActionsResponse DisableAlarmActions(DisableAlarmActionsRequest request); /// <summary> /// Disables the actions for the specified alarms. When an alarm's actions are disabled, /// the alarm actions do not execute when the alarm state changes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> Task<DisableAlarmActionsResponse> DisableAlarmActionsAsync(DisableAlarmActionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisableInsightRules /// <summary> /// Disables the specified Contributor Insights rules. When rules are disabled, they do /// not analyze log groups and do not incur costs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules service method.</param> /// /// <returns>The response from the DisableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> DisableInsightRulesResponse DisableInsightRules(DisableInsightRulesRequest request); /// <summary> /// Disables the specified Contributor Insights rules. When rules are disabled, they do /// not analyze log groups and do not incur costs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> Task<DisableInsightRulesResponse> DisableInsightRulesAsync(DisableInsightRulesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnableAlarmActions /// <summary> /// Enables the actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> EnableAlarmActionsResponse EnableAlarmActions(EnableAlarmActionsRequest request); /// <summary> /// Enables the actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> Task<EnableAlarmActionsResponse> EnableAlarmActionsAsync(EnableAlarmActionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnableInsightRules /// <summary> /// Enables the specified Contributor Insights rules. When rules are enabled, they immediately /// begin analyzing log data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules service method.</param> /// /// <returns>The response from the EnableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> EnableInsightRulesResponse EnableInsightRules(EnableInsightRulesRequest request); /// <summary> /// Enables the specified Contributor Insights rules. When rules are enabled, they immediately /// begin analyzing log data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> Task<EnableInsightRulesResponse> EnableInsightRulesAsync(EnableInsightRulesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDashboard /// <summary> /// Displays the details of the dashboard that you specify. /// /// /// <para> /// To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data /// returned within <code>DashboardBody</code> as the template for the new dashboard when /// you call <code>PutDashboard</code> to create the copy. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDashboard service method.</param> /// /// <returns>The response from the GetDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> GetDashboardResponse GetDashboard(GetDashboardRequest request); /// <summary> /// Displays the details of the dashboard that you specify. /// /// /// <para> /// To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data /// returned within <code>DashboardBody</code> as the template for the new dashboard when /// you call <code>PutDashboard</code> to create the copy. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDashboard service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> Task<GetDashboardResponse> GetDashboardAsync(GetDashboardRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetInsightRuleReport /// <summary> /// This operation returns the time series data collected by a Contributor Insights rule. /// The data includes the identity and number of contributors to the log group. /// /// /// <para> /// You can also optionally return one or more statistics about each data point in the /// time series. These statistics can include the following: /// </para> /// <ul> <li> /// <para> /// <code>UniqueContributors</code> -- the number of unique contributors for each data /// point. /// </para> /// </li> <li> /// <para> /// <code>MaxContributorValue</code> -- the value of the top contributor for each data /// point. The identity of the contributor might change for each data point in the graph. /// </para> /// /// <para> /// If this rule aggregates by COUNT, the top contributor for each data point is the contributor /// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor /// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>, /// during that period. /// </para> /// </li> <li> /// <para> /// <code>SampleCount</code> -- the number of data points matched by the rule. /// </para> /// </li> <li> /// <para> /// <code>Sum</code> -- the sum of the values from all contributors during the time period /// represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Minimum</code> -- the minimum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Maximum</code> -- the maximum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Average</code> -- the average value from all contributors during the time period /// represented by that data point. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport service method.</param> /// /// <returns>The response from the GetInsightRuleReport service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> GetInsightRuleReportResponse GetInsightRuleReport(GetInsightRuleReportRequest request); /// <summary> /// This operation returns the time series data collected by a Contributor Insights rule. /// The data includes the identity and number of contributors to the log group. /// /// /// <para> /// You can also optionally return one or more statistics about each data point in the /// time series. These statistics can include the following: /// </para> /// <ul> <li> /// <para> /// <code>UniqueContributors</code> -- the number of unique contributors for each data /// point. /// </para> /// </li> <li> /// <para> /// <code>MaxContributorValue</code> -- the value of the top contributor for each data /// point. The identity of the contributor might change for each data point in the graph. /// </para> /// /// <para> /// If this rule aggregates by COUNT, the top contributor for each data point is the contributor /// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor /// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>, /// during that period. /// </para> /// </li> <li> /// <para> /// <code>SampleCount</code> -- the number of data points matched by the rule. /// </para> /// </li> <li> /// <para> /// <code>Sum</code> -- the sum of the values from all contributors during the time period /// represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Minimum</code> -- the minimum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Maximum</code> -- the maximum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Average</code> -- the average value from all contributors during the time period /// represented by that data point. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetInsightRuleReport service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> Task<GetInsightRuleReportResponse> GetInsightRuleReportAsync(GetInsightRuleReportRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetMetricData /// <summary> /// You can use the <code>GetMetricData</code> API to retrieve CloudWatch metric values. /// The operation can also include a CloudWatch Metrics Insights query, and one or more /// metric math functions. /// /// /// <para> /// A <code>GetMetricData</code> operation that does not include a query can retrieve /// as many as 500 different metrics in a single request, with a total of as many as 100,800 /// data points. You can also optionally perform metric math expressions on the values /// of the returned statistics, to create new time series that represent new insights /// into your data. For example, using Lambda metrics, you could divide the Errors metric /// by the Invocations metric to get an error rate time series. For more information about /// metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric /// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// If you include a Metrics Insights query, each <code>GetMetricData</code> operation /// can include only one query. But the same <code>GetMetricData</code> operation can /// also retrieve other metrics. Metrics Insights queries can query only the most recent /// three hours of metric data. For more information about Metrics Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html">Query /// your metrics with CloudWatch Metrics Insights</a>. /// </para> /// /// <para> /// Calls to the <code>GetMetricData</code> API have a different pricing structure than /// calls to <code>GetMetricStatistics</code>. For more information about pricing, see /// <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// If you omit <code>Unit</code> in your request, all data that was collected with any /// unit is returned, along with the corresponding units that were specified when the /// data was reported to CloudWatch. If you specify a unit, the operation returns only /// data that was collected with that unit specified. If you specify a unit that does /// not match the data collected, the results of the operation are null. CloudWatch does /// not perform unit conversions. /// </para> /// /// <para> /// <b>Using Metrics Insights queries with metric math</b> /// </para> /// /// <para> /// You can't mix a Metric Insights query and metric math syntax in the same expression, /// but you can reference results from a Metrics Insights query within other Metric math /// expressions. A Metrics Insights query without a <b>GROUP BY</b> clause returns a single /// time-series (TS), and can be used as input for a metric math expression that expects /// a single time series. A Metrics Insights query with a <b>GROUP BY</b> clause returns /// an array of time-series (TS[]), and can be used as input for a metric math expression /// that expects an array of time series. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricData service method.</param> /// /// <returns>The response from the GetMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> GetMetricDataResponse GetMetricData(GetMetricDataRequest request); /// <summary> /// You can use the <code>GetMetricData</code> API to retrieve CloudWatch metric values. /// The operation can also include a CloudWatch Metrics Insights query, and one or more /// metric math functions. /// /// /// <para> /// A <code>GetMetricData</code> operation that does not include a query can retrieve /// as many as 500 different metrics in a single request, with a total of as many as 100,800 /// data points. You can also optionally perform metric math expressions on the values /// of the returned statistics, to create new time series that represent new insights /// into your data. For example, using Lambda metrics, you could divide the Errors metric /// by the Invocations metric to get an error rate time series. For more information about /// metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric /// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// If you include a Metrics Insights query, each <code>GetMetricData</code> operation /// can include only one query. But the same <code>GetMetricData</code> operation can /// also retrieve other metrics. Metrics Insights queries can query only the most recent /// three hours of metric data. For more information about Metrics Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html">Query /// your metrics with CloudWatch Metrics Insights</a>. /// </para> /// /// <para> /// Calls to the <code>GetMetricData</code> API have a different pricing structure than /// calls to <code>GetMetricStatistics</code>. For more information about pricing, see /// <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// If you omit <code>Unit</code> in your request, all data that was collected with any /// unit is returned, along with the corresponding units that were specified when the /// data was reported to CloudWatch. If you specify a unit, the operation returns only /// data that was collected with that unit specified. If you specify a unit that does /// not match the data collected, the results of the operation are null. CloudWatch does /// not perform unit conversions. /// </para> /// /// <para> /// <b>Using Metrics Insights queries with metric math</b> /// </para> /// /// <para> /// You can't mix a Metric Insights query and metric math syntax in the same expression, /// but you can reference results from a Metrics Insights query within other Metric math /// expressions. A Metrics Insights query without a <b>GROUP BY</b> clause returns a single /// time-series (TS), and can be used as input for a metric math expression that expects /// a single time series. A Metrics Insights query with a <b>GROUP BY</b> clause returns /// an array of time-series (TS[]), and can be used as input for a metric math expression /// that expects an array of time series. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> Task<GetMetricDataResponse> GetMetricDataAsync(GetMetricDataRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetMetricStatistics /// <summary> /// Gets statistics for the specified metric. /// /// /// <para> /// The maximum number of data points returned from a single call is 1,440. If you request /// more than 1,440 data points, CloudWatch returns an error. To reduce the number of /// data points, you can narrow the specified time range and make multiple requests across /// adjacent time ranges, or you can increase the specified period. Data points are not /// returned in chronological order. /// </para> /// /// <para> /// CloudWatch aggregates data points based on the length of the period that you specify. /// For example, if you request statistics with a one-hour period, CloudWatch aggregates /// all data points with time stamps that fall within each one-hour period. Therefore, /// the number of values aggregated by CloudWatch is larger than the number of data points /// returned. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The SampleCount value of the statistic set is 1. /// </para> /// </li> <li> /// <para> /// The Min and the Max values of the statistic set are equal. /// </para> /// </li> </ul> /// <para> /// Percentile statistics are not available for metrics when any of the metric values /// are negative numbers. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016. /// </para> /// /// <para> /// For information about metrics and dimensions supported by Amazon Web Services services, /// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon /// CloudWatch Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics service method.</param> /// /// <returns>The response from the GetMetricStatistics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> GetMetricStatisticsResponse GetMetricStatistics(GetMetricStatisticsRequest request); /// <summary> /// Gets statistics for the specified metric. /// /// /// <para> /// The maximum number of data points returned from a single call is 1,440. If you request /// more than 1,440 data points, CloudWatch returns an error. To reduce the number of /// data points, you can narrow the specified time range and make multiple requests across /// adjacent time ranges, or you can increase the specified period. Data points are not /// returned in chronological order. /// </para> /// /// <para> /// CloudWatch aggregates data points based on the length of the period that you specify. /// For example, if you request statistics with a one-hour period, CloudWatch aggregates /// all data points with time stamps that fall within each one-hour period. Therefore, /// the number of values aggregated by CloudWatch is larger than the number of data points /// returned. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The SampleCount value of the statistic set is 1. /// </para> /// </li> <li> /// <para> /// The Min and the Max values of the statistic set are equal. /// </para> /// </li> </ul> /// <para> /// Percentile statistics are not available for metrics when any of the metric values /// are negative numbers. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016. /// </para> /// /// <para> /// For information about metrics and dimensions supported by Amazon Web Services services, /// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon /// CloudWatch Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricStatistics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> Task<GetMetricStatisticsResponse> GetMetricStatisticsAsync(GetMetricStatisticsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetMetricStream /// <summary> /// Returns information about the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStream service method.</param> /// /// <returns>The response from the GetMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> GetMetricStreamResponse GetMetricStream(GetMetricStreamRequest request); /// <summary> /// Returns information about the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> Task<GetMetricStreamResponse> GetMetricStreamAsync(GetMetricStreamRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetMetricWidgetImage /// <summary> /// You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph /// of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this /// image into your services and products, such as wiki pages, reports, and documents. /// You could also retrieve images regularly, such as every minute, and create your own /// custom live dashboard. /// /// /// <para> /// The graph you retrieve can include all CloudWatch metric graph features, including /// metric math and horizontal and vertical annotations. /// </para> /// /// <para> /// There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code> /// action has the following limits: /// </para> /// <ul> <li> /// <para> /// As many as 100 metrics in the graph. /// </para> /// </li> <li> /// <para> /// Up to 100 KB uncompressed payload. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage service method.</param> /// /// <returns>The response from the GetMetricWidgetImage service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> GetMetricWidgetImageResponse GetMetricWidgetImage(GetMetricWidgetImageRequest request); /// <summary> /// You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph /// of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this /// image into your services and products, such as wiki pages, reports, and documents. /// You could also retrieve images regularly, such as every minute, and create your own /// custom live dashboard. /// /// /// <para> /// The graph you retrieve can include all CloudWatch metric graph features, including /// metric math and horizontal and vertical annotations. /// </para> /// /// <para> /// There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code> /// action has the following limits: /// </para> /// <ul> <li> /// <para> /// As many as 100 metrics in the graph. /// </para> /// </li> <li> /// <para> /// Up to 100 KB uncompressed payload. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricWidgetImage service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> Task<GetMetricWidgetImageResponse> GetMetricWidgetImageAsync(GetMetricWidgetImageRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDashboards /// <summary> /// Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>, /// only those dashboards with names starting with the prefix are listed. Otherwise, all /// dashboards in your account are listed. /// /// /// <para> /// <code>ListDashboards</code> returns up to 1000 results on one page. If there are /// more than 1000 dashboards, you can call <code>ListDashboards</code> again and include /// the value you received for <code>NextToken</code> in the first call, to receive the /// next 1000 results. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDashboards service method.</param> /// /// <returns>The response from the ListDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> ListDashboardsResponse ListDashboards(ListDashboardsRequest request); /// <summary> /// Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>, /// only those dashboards with names starting with the prefix are listed. Otherwise, all /// dashboards in your account are listed. /// /// /// <para> /// <code>ListDashboards</code> returns up to 1000 results on one page. If there are /// more than 1000 dashboards, you can call <code>ListDashboards</code> again and include /// the value you received for <code>NextToken</code> in the first call, to receive the /// next 1000 results. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDashboards service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> Task<ListDashboardsResponse> ListDashboardsAsync(ListDashboardsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListManagedInsightRules /// <summary> /// Returns a list that contains the number of managed Contributor Insights rules in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules service method.</param> /// /// <returns>The response from the ListManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> ListManagedInsightRulesResponse ListManagedInsightRules(ListManagedInsightRulesRequest request); /// <summary> /// Returns a list that contains the number of managed Contributor Insights rules in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> Task<ListManagedInsightRulesResponse> ListManagedInsightRulesAsync(ListManagedInsightRulesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListMetrics /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> ListMetricsResponse ListMetrics(); /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetrics service method.</param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> ListMetricsResponse ListMetrics(ListMetricsRequest request); /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> Task<ListMetricsResponse> ListMetricsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetrics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> Task<ListMetricsResponse> ListMetricsAsync(ListMetricsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListMetricStreams /// <summary> /// Returns a list of metric streams in this account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams service method.</param> /// /// <returns>The response from the ListMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> ListMetricStreamsResponse ListMetricStreams(ListMetricStreamsRequest request); /// <summary> /// Returns a list of metric streams in this account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> Task<ListMetricStreamsResponse> ListMetricStreamsAsync(ListMetricStreamsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor /// Insights rules support tagging. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor /// Insights rules support tagging. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutAnomalyDetector /// <summary> /// Creates an anomaly detection model for a CloudWatch metric. You can use the model /// to display a band of expected normal values when the metric is graphed. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch /// Anomaly Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector service method.</param> /// /// <returns>The response from the PutAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> PutAnomalyDetectorResponse PutAnomalyDetector(PutAnomalyDetectorRequest request); /// <summary> /// Creates an anomaly detection model for a CloudWatch metric. You can use the model /// to display a band of expected normal values when the metric is graphed. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch /// Anomaly Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> Task<PutAnomalyDetectorResponse> PutAnomalyDetectorAsync(PutAnomalyDetectorRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutCompositeAlarm /// <summary> /// Creates or updates a <i>composite alarm</i>. When you create a composite alarm, you /// specify a rule expression for the alarm that takes into account the alarm states of /// other alarms that you have created. The composite alarm goes into ALARM state only /// if all conditions of the rule are met. /// /// /// <para> /// The alarms specified in a composite alarm's rule expression can include metric alarms /// and other composite alarms. The rule expression of a composite alarm can include as /// many as 100 underlying alarms. Any single alarm can be included in the rule expressions /// of as many as 150 composite alarms. /// </para> /// /// <para> /// Using composite alarms can reduce alarm noise. You can create multiple metric alarms, /// and also create a composite alarm and set up alerts only for the composite alarm. /// For example, you could create a composite alarm that goes into ALARM state only when /// more than one of the underlying metric alarms are in ALARM state. /// </para> /// /// <para> /// Currently, the only alarm actions that can be taken by composite alarms are notifying /// SNS topics. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. For a composite alarm, this initial time after /// creation is the only time that the alarm can be in <code>INSUFFICIENT_DATA</code> /// state. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// To use this operation, you must be signed on with the <code>cloudwatch:PutCompositeAlarm</code> /// permission that is scoped to <code>*</code>. You can't create a composite alarms if /// your <code>cloudwatch:PutCompositeAlarm</code> permission has a narrower scope. /// </para> /// /// <para> /// If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to /// create a composite alarm that has Systems Manager OpsItem actions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm service method.</param> /// /// <returns>The response from the PutCompositeAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> PutCompositeAlarmResponse PutCompositeAlarm(PutCompositeAlarmRequest request); /// <summary> /// Creates or updates a <i>composite alarm</i>. When you create a composite alarm, you /// specify a rule expression for the alarm that takes into account the alarm states of /// other alarms that you have created. The composite alarm goes into ALARM state only /// if all conditions of the rule are met. /// /// /// <para> /// The alarms specified in a composite alarm's rule expression can include metric alarms /// and other composite alarms. The rule expression of a composite alarm can include as /// many as 100 underlying alarms. Any single alarm can be included in the rule expressions /// of as many as 150 composite alarms. /// </para> /// /// <para> /// Using composite alarms can reduce alarm noise. You can create multiple metric alarms, /// and also create a composite alarm and set up alerts only for the composite alarm. /// For example, you could create a composite alarm that goes into ALARM state only when /// more than one of the underlying metric alarms are in ALARM state. /// </para> /// /// <para> /// Currently, the only alarm actions that can be taken by composite alarms are notifying /// SNS topics. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. For a composite alarm, this initial time after /// creation is the only time that the alarm can be in <code>INSUFFICIENT_DATA</code> /// state. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// To use this operation, you must be signed on with the <code>cloudwatch:PutCompositeAlarm</code> /// permission that is scoped to <code>*</code>. You can't create a composite alarms if /// your <code>cloudwatch:PutCompositeAlarm</code> permission has a narrower scope. /// </para> /// /// <para> /// If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to /// create a composite alarm that has Systems Manager OpsItem actions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutCompositeAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> Task<PutCompositeAlarmResponse> PutCompositeAlarmAsync(PutCompositeAlarmRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutDashboard /// <summary> /// Creates a dashboard if it does not already exist, or updates an existing dashboard. /// If you update a dashboard, the entire contents are replaced with what you specify /// here. /// /// /// <para> /// All dashboards in your account are global, not region-specific. /// </para> /// /// <para> /// A simple way to create a dashboard using <code>PutDashboard</code> is to copy an existing /// dashboard. To copy an existing dashboard using the console, you can load the dashboard /// and then use the View/edit source command in the Actions menu to display the JSON /// block for that dashboard. Another way to copy a dashboard is to use <code>GetDashboard</code>, /// and then use the data returned within <code>DashboardBody</code> as the template for /// the new dashboard when you call <code>PutDashboard</code>. /// </para> /// /// <para> /// When you create a dashboard with <code>PutDashboard</code>, a good practice is to /// add a text widget at the top of the dashboard with a message that the dashboard was /// created by script and should not be changed in the console. This message could also /// point console users to the location of the <code>DashboardBody</code> script or the /// CloudFormation template used to create the dashboard. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutDashboard service method.</param> /// /// <returns>The response from the PutDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardInvalidInputErrorException"> /// Some part of the dashboard data is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> PutDashboardResponse PutDashboard(PutDashboardRequest request); /// <summary> /// Creates a dashboard if it does not already exist, or updates an existing dashboard. /// If you update a dashboard, the entire contents are replaced with what you specify /// here. /// /// /// <para> /// All dashboards in your account are global, not region-specific. /// </para> /// /// <para> /// A simple way to create a dashboard using <code>PutDashboard</code> is to copy an existing /// dashboard. To copy an existing dashboard using the console, you can load the dashboard /// and then use the View/edit source command in the Actions menu to display the JSON /// block for that dashboard. Another way to copy a dashboard is to use <code>GetDashboard</code>, /// and then use the data returned within <code>DashboardBody</code> as the template for /// the new dashboard when you call <code>PutDashboard</code>. /// </para> /// /// <para> /// When you create a dashboard with <code>PutDashboard</code>, a good practice is to /// add a text widget at the top of the dashboard with a message that the dashboard was /// created by script and should not be changed in the console. This message could also /// point console users to the location of the <code>DashboardBody</code> script or the /// CloudFormation template used to create the dashboard. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutDashboard service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardInvalidInputErrorException"> /// Some part of the dashboard data is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> Task<PutDashboardResponse> PutDashboardAsync(PutDashboardRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutInsightRule /// <summary> /// Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs /// log group, enabling you to find contributor data for the log events in that log group. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutInsightRule service method.</param> /// /// <returns>The response from the PutInsightRule service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> PutInsightRuleResponse PutInsightRule(PutInsightRuleRequest request); /// <summary> /// Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs /// log group, enabling you to find contributor data for the log events in that log group. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutInsightRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutInsightRule service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> Task<PutInsightRuleResponse> PutInsightRuleAsync(PutInsightRuleRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutManagedInsightRules /// <summary> /// Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. /// When you enable a managed rule, you create a Contributor Insights rule that collects /// data from Amazon Web Services services. You cannot edit these rules with <code>PutInsightRule</code>. /// The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, /// <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>. If a previously /// created managed rule is currently disabled, a subsequent call to this API will re-enable /// it. Use <code>ListManagedInsightRules</code> to describe all available rules. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules service method.</param> /// /// <returns>The response from the PutManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> PutManagedInsightRulesResponse PutManagedInsightRules(PutManagedInsightRulesRequest request); /// <summary> /// Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. /// When you enable a managed rule, you create a Contributor Insights rule that collects /// data from Amazon Web Services services. You cannot edit these rules with <code>PutInsightRule</code>. /// The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, /// <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>. If a previously /// created managed rule is currently disabled, a subsequent call to this API will re-enable /// it. Use <code>ListManagedInsightRules</code> to describe all available rules. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> Task<PutManagedInsightRulesResponse> PutManagedInsightRulesAsync(PutManagedInsightRulesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutMetricAlarm /// <summary> /// Creates or updates an alarm and associates it with the specified metric, metric math /// expression, anomaly detection model, or Metrics Insights query. For more information /// about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create /// alarms on Metrics Insights queries</a>. /// /// /// <para> /// Alarms based on anomaly detection models cannot have Auto Scaling actions. /// </para> /// /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations: /// </para> /// <ul> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions /// </para> /// </li> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm with Systems /// Manager OpsItem or response plan actions. /// </para> /// </li> </ul> /// <para> /// The first time you create an alarm in the Amazon Web Services Management Console, /// the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked /// role for you. The service-linked roles are called <code>AWSServiceRoleForCloudWatchEvents</code> /// and <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>. For more information, /// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon /// Web Services service-linked role</a>. /// </para> /// /// <para> /// Each <code>PutMetricAlarm</code> action has a maximum uncompressed payload of 120 /// KB. /// </para> /// /// <para> /// <b>Cross-account alarms</b> /// </para> /// /// <para> /// You can set an alarm on metrics in the current account, or in another account. To /// create a cross-account alarm that watches a metric in a different account, you must /// have completed the following pre-requisites: /// </para> /// <ul> <li> /// <para> /// The account where the metrics are located (the <i>sharing account</i>) must already /// have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not /// already have this role, you must create it using the instructions in <b>Set up a sharing /// account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. The policy for that role must grant /// access to the ID of the account where you are creating the alarm. /// </para> /// </li> <li> /// <para> /// The account where you are creating the alarm (the <i>monitoring account</i>) must /// already have a service-linked role named <b>AWSServiceRoleForCloudWatchCrossAccount</b> /// to allow CloudWatch to assume the sharing role in the sharing account. If it does /// not, you must create it following the directions in <b>Set up a monitoring account</b> /// in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm service method.</param> /// /// <returns>The response from the PutMetricAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> PutMetricAlarmResponse PutMetricAlarm(PutMetricAlarmRequest request); /// <summary> /// Creates or updates an alarm and associates it with the specified metric, metric math /// expression, anomaly detection model, or Metrics Insights query. For more information /// about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create /// alarms on Metrics Insights queries</a>. /// /// /// <para> /// Alarms based on anomaly detection models cannot have Auto Scaling actions. /// </para> /// /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations: /// </para> /// <ul> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions /// </para> /// </li> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm with Systems /// Manager OpsItem or response plan actions. /// </para> /// </li> </ul> /// <para> /// The first time you create an alarm in the Amazon Web Services Management Console, /// the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked /// role for you. The service-linked roles are called <code>AWSServiceRoleForCloudWatchEvents</code> /// and <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>. For more information, /// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon /// Web Services service-linked role</a>. /// </para> /// /// <para> /// Each <code>PutMetricAlarm</code> action has a maximum uncompressed payload of 120 /// KB. /// </para> /// /// <para> /// <b>Cross-account alarms</b> /// </para> /// /// <para> /// You can set an alarm on metrics in the current account, or in another account. To /// create a cross-account alarm that watches a metric in a different account, you must /// have completed the following pre-requisites: /// </para> /// <ul> <li> /// <para> /// The account where the metrics are located (the <i>sharing account</i>) must already /// have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not /// already have this role, you must create it using the instructions in <b>Set up a sharing /// account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. The policy for that role must grant /// access to the ID of the account where you are creating the alarm. /// </para> /// </li> <li> /// <para> /// The account where you are creating the alarm (the <i>monitoring account</i>) must /// already have a service-linked role named <b>AWSServiceRoleForCloudWatchCrossAccount</b> /// to allow CloudWatch to assume the sharing role in the sharing account. If it does /// not, you must create it following the directions in <b>Set up a monitoring account</b> /// in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> Task<PutMetricAlarmResponse> PutMetricAlarmAsync(PutMetricAlarmRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutMetricData /// <summary> /// Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data /// points with the specified metric. If the specified metric does not exist, CloudWatch /// creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes /// for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>. /// /// /// <para> /// You can publish either individual data points in the <code>Value</code> field, or /// arrays of values and the number of times each value occurred during the period by /// using the <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> /// structure. Using the <code>Values</code> and <code>Counts</code> method enables you /// to publish up to 150 values per metric with one <code>PutMetricData</code> request, /// and supports retrieving percentile statistics on this data. /// </para> /// /// <para> /// Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. /// You can send a payload compressed by gzip. Each request is also limited to no more /// than 1000 different metrics. /// </para> /// /// <para> /// Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// CloudWatch rejects values that are either too small or too large. Values must be in /// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, /// -Infinity) are not supported. /// </para> /// /// <para> /// You can use up to 30 dimensions per metric to further clarify what data the metric /// collects. Each dimension consists of a Name and Value pair. For more information about /// specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing /// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// You specify the time stamp to be associated with each data point. You can specify /// time stamps that are as much as two weeks before the current date, and as much as /// 2 hours after the current day and time. /// </para> /// /// <para> /// Data points with time stamps from 24 hours ago or longer can take at least 48 hours /// to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// from the time they are submitted. Data points with time stamps between 3 and 24 hours /// ago can take as much as 2 hours to become available for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>, /// <code>Max</code>, and <code>Sum</code> are all equal. /// </para> /// </li> <li> /// <para> /// The <code>Min</code> and <code>Max</code> are equal, and <code>Sum</code> is equal /// to <code>Min</code> multiplied by <code>SampleCount</code>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> PutMetricDataResponse PutMetricData(PutMetricDataRequest request); /// <summary> /// Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data /// points with the specified metric. If the specified metric does not exist, CloudWatch /// creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes /// for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>. /// /// /// <para> /// You can publish either individual data points in the <code>Value</code> field, or /// arrays of values and the number of times each value occurred during the period by /// using the <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> /// structure. Using the <code>Values</code> and <code>Counts</code> method enables you /// to publish up to 150 values per metric with one <code>PutMetricData</code> request, /// and supports retrieving percentile statistics on this data. /// </para> /// /// <para> /// Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. /// You can send a payload compressed by gzip. Each request is also limited to no more /// than 1000 different metrics. /// </para> /// /// <para> /// Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// CloudWatch rejects values that are either too small or too large. Values must be in /// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, /// -Infinity) are not supported. /// </para> /// /// <para> /// You can use up to 30 dimensions per metric to further clarify what data the metric /// collects. Each dimension consists of a Name and Value pair. For more information about /// specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing /// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// You specify the time stamp to be associated with each data point. You can specify /// time stamps that are as much as two weeks before the current date, and as much as /// 2 hours after the current day and time. /// </para> /// /// <para> /// Data points with time stamps from 24 hours ago or longer can take at least 48 hours /// to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// from the time they are submitted. Data points with time stamps between 3 and 24 hours /// ago can take as much as 2 hours to become available for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>, /// <code>Max</code>, and <code>Sum</code> are all equal. /// </para> /// </li> <li> /// <para> /// The <code>Min</code> and <code>Max</code> are equal, and <code>Sum</code> is equal /// to <code>Min</code> multiplied by <code>SampleCount</code>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> Task<PutMetricDataResponse> PutMetricDataAsync(PutMetricDataRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutMetricStream /// <summary> /// Creates or updates a metric stream. Metric streams can automatically stream CloudWatch /// metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party /// solutions. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html"> /// Using Metric Streams</a>. /// </para> /// /// <para> /// To create a metric stream, you must be signed in to an account that has the <code>iam:PassRole</code> /// permission and either the <code>CloudWatchFullAccess</code> policy or the <code>cloudwatch:PutMetricStream</code> /// permission. /// </para> /// /// <para> /// When you create or update a metric stream, you choose one of the following: /// </para> /// <ul> <li> /// <para> /// Stream metrics from all metric namespaces in the account. /// </para> /// </li> <li> /// <para> /// Stream metrics from all metric namespaces in the account, except for the namespaces /// that you list in <code>ExcludeFilters</code>. /// </para> /// </li> <li> /// <para> /// Stream metrics from only the metric namespaces that you list in <code>IncludeFilters</code>. /// </para> /// </li> </ul> /// <para> /// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, /// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can /// use the <code>StatisticsConfigurations</code> parameter to have the metric stream /// send additional statistics in the stream. Streaming additional statistics incurs additional /// costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon /// CloudWatch Pricing</a>. /// </para> /// /// <para> /// When you use <code>PutMetricStream</code> to create a new metric stream, the stream /// is created in the <code>running</code> state. If you use it to update an existing /// stream, the state of the stream is not changed. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability and you create a metric stream /// in a monitoring account, you can choose whether to include metrics from source accounts /// in the stream. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricStream service method.</param> /// /// <returns>The response from the PutMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> PutMetricStreamResponse PutMetricStream(PutMetricStreamRequest request); /// <summary> /// Creates or updates a metric stream. Metric streams can automatically stream CloudWatch /// metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party /// solutions. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html"> /// Using Metric Streams</a>. /// </para> /// /// <para> /// To create a metric stream, you must be signed in to an account that has the <code>iam:PassRole</code> /// permission and either the <code>CloudWatchFullAccess</code> policy or the <code>cloudwatch:PutMetricStream</code> /// permission. /// </para> /// /// <para> /// When you create or update a metric stream, you choose one of the following: /// </para> /// <ul> <li> /// <para> /// Stream metrics from all metric namespaces in the account. /// </para> /// </li> <li> /// <para> /// Stream metrics from all metric namespaces in the account, except for the namespaces /// that you list in <code>ExcludeFilters</code>. /// </para> /// </li> <li> /// <para> /// Stream metrics from only the metric namespaces that you list in <code>IncludeFilters</code>. /// </para> /// </li> </ul> /// <para> /// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, /// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can /// use the <code>StatisticsConfigurations</code> parameter to have the metric stream /// send additional statistics in the stream. Streaming additional statistics incurs additional /// costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon /// CloudWatch Pricing</a>. /// </para> /// /// <para> /// When you use <code>PutMetricStream</code> to create a new metric stream, the stream /// is created in the <code>running</code> state. If you use it to update an existing /// stream, the state of the stream is not changed. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability and you create a metric stream /// in a monitoring account, you can choose whether to include metrics from source accounts /// in the stream. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> Task<PutMetricStreamResponse> PutMetricStreamAsync(PutMetricStreamRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetAlarmState /// <summary> /// Temporarily sets the state of an alarm for testing purposes. When the updated state /// differs from the previous value, the action configured for the appropriate state is /// invoked. For example, if your alarm is configured to send an Amazon SNS message when /// an alarm is triggered, temporarily changing the alarm state to <code>ALARM</code> /// sends an SNS message. /// /// /// <para> /// Metric alarms returns to their actual state quickly, often within seconds. Because /// the metric alarm state change happens quickly, it is typically only visible in the /// alarm's <b>History</b> tab in the Amazon CloudWatch console or through <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>. /// </para> /// /// <para> /// If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is /// not guaranteed to return to its actual state. It returns to its actual state only /// once any of its children alarms change state. It is also reevaluated if you update /// its configuration. /// </para> /// /// <para> /// If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, /// you must include information in the <code>StateReasonData</code> parameter to enable /// the policy to take the correct action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetAlarmState service method.</param> /// /// <returns>The response from the SetAlarmState service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidFormatException"> /// Data was not syntactically valid JSON. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> SetAlarmStateResponse SetAlarmState(SetAlarmStateRequest request); /// <summary> /// Temporarily sets the state of an alarm for testing purposes. When the updated state /// differs from the previous value, the action configured for the appropriate state is /// invoked. For example, if your alarm is configured to send an Amazon SNS message when /// an alarm is triggered, temporarily changing the alarm state to <code>ALARM</code> /// sends an SNS message. /// /// /// <para> /// Metric alarms returns to their actual state quickly, often within seconds. Because /// the metric alarm state change happens quickly, it is typically only visible in the /// alarm's <b>History</b> tab in the Amazon CloudWatch console or through <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>. /// </para> /// /// <para> /// If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is /// not guaranteed to return to its actual state. It returns to its actual state only /// once any of its children alarms change state. It is also reevaluated if you update /// its configuration. /// </para> /// /// <para> /// If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, /// you must include information in the <code>StateReasonData</code> parameter to enable /// the policy to take the correct action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetAlarmState service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetAlarmState service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidFormatException"> /// Data was not syntactically valid JSON. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> Task<SetAlarmStateResponse> SetAlarmStateAsync(SetAlarmStateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartMetricStreams /// <summary> /// Starts the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams service method.</param> /// /// <returns>The response from the StartMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> StartMetricStreamsResponse StartMetricStreams(StartMetricStreamsRequest request); /// <summary> /// Starts the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> Task<StartMetricStreamsResponse> StartMetricStreamsAsync(StartMetricStreamsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopMetricStreams /// <summary> /// Stops the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams service method.</param> /// /// <returns>The response from the StopMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> StopMetricStreamsResponse StopMetricStreams(StopMetricStreamsRequest request); /// <summary> /// Stops the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> Task<StopMetricStreamsResponse> StopMetricStreamsAsync(StopMetricStreamsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, /// the only CloudWatch resources that can be tagged are alarms and Contributor Insights /// rules. /// /// /// <para> /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// </para> /// /// <para> /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// </para> /// /// <para> /// You can use the <code>TagResource</code> action with an alarm that already has tags. /// If you specify a new tag key for the alarm, this tag is appended to the list of tags /// associated with the alarm. If you specify a tag key that is already associated with /// the alarm, the new tag value that you specify replaces the previous value for that /// tag. /// </para> /// /// <para> /// You can associate as many as 50 tags with a CloudWatch resource. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, /// the only CloudWatch resources that can be tagged are alarms and Contributor Insights /// rules. /// /// /// <para> /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// </para> /// /// <para> /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// </para> /// /// <para> /// You can use the <code>TagResource</code> action with an alarm that already has tags. /// If you specify a new tag key for the alarm, this tag is appended to the list of tags /// associated with the alarm. If you specify a tag key that is already associated with /// the alarm, the new tag value that you specify replaces the previous value for that /// tag. /// </para> /// /// <para> /// You can associate as many as 50 tags with a CloudWatch resource. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Removes one or more tags from the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Removes one or more tags from the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
3,329
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.CloudWatch.Model; using Amazon.CloudWatch.Model.Internal.MarshallTransformations; using Amazon.CloudWatch.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudWatch { /// <summary> /// Implementation for accessing CloudWatch /// /// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources /// and the applications you run on Amazon Web Services in real time. You can use CloudWatch /// to collect and track metrics, which are the variables you want to measure for your /// resources and applications. /// /// /// <para> /// CloudWatch alarms send notifications or automatically change the resources you are /// monitoring based on rules that you define. For example, you can monitor the CPU usage /// and disk reads and writes of your Amazon EC2 instances. Then, use this data to determine /// whether you should launch additional instances to handle increased load. You can also /// use this data to stop under-used instances to save money. /// </para> /// /// <para> /// In addition to monitoring the built-in metrics that come with Amazon Web Services, /// you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility /// into resource utilization, application performance, and operational health. /// </para> /// </summary> public partial class AmazonCloudWatchClient : AmazonServiceClient, IAmazonCloudWatch { private static IServiceMetadata serviceMetadata = new AmazonCloudWatchMetadata(); #region Constructors /// <summary> /// Constructs AmazonCloudWatchClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCloudWatchClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCloudWatchClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudWatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(AmazonCloudWatchConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCloudWatchClient(AWSCredentials credentials) : this(credentials, new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCloudWatchClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudWatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Credentials and an /// AmazonCloudWatchClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(AWSCredentials credentials, AmazonCloudWatchConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudWatchConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudWatchClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudWatchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchConfig()) { } /// <summary> /// Constructs AmazonCloudWatchClient 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 AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudWatchConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudWatchClient 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 AmazonCloudWatchClient Configuration Object</param> public AmazonCloudWatchClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudWatchConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private ICloudWatchPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICloudWatchPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudWatchPaginatorFactory(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 AmazonCloudWatchEndpointResolver()); } /// <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 DeleteAlarms internal virtual DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlarmsResponseUnmarshaller.Instance; return Invoke<DeleteAlarmsResponse>(request, options); } /// <summary> /// Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, /// this total can include no more than one composite alarm. For example, you could delete /// 99 metric alarms and one composite alarms with one operation, but you can't delete /// two composite alarms with one operation. /// /// /// <para> /// If you specify an incorrect alarm name or make any other error in the operation, /// no alarms are deleted. To confirm that alarms were deleted successfully, you can use /// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> /// operation after using <code>DeleteAlarms</code>. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> public virtual Task<DeleteAlarmsResponse> DeleteAlarmsAsync(DeleteAlarmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAlarmsResponseUnmarshaller.Instance; return InvokeAsync<DeleteAlarmsResponse>(request, options, cancellationToken); } #endregion #region DeleteAnomalyDetector internal virtual DeleteAnomalyDetectorResponse DeleteAnomalyDetector(DeleteAnomalyDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance; return Invoke<DeleteAnomalyDetectorResponse>(request, options); } /// <summary> /// Deletes the specified anomaly detection model from your account. For more information /// about how to delete an anomaly detection model, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting /// an anomaly detection model</a> in the <i>CloudWatch User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> public virtual Task<DeleteAnomalyDetectorResponse> DeleteAnomalyDetectorAsync(DeleteAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance; return InvokeAsync<DeleteAnomalyDetectorResponse>(request, options, cancellationToken); } #endregion #region DeleteDashboards internal virtual DeleteDashboardsResponse DeleteDashboards(DeleteDashboardsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDashboardsResponseUnmarshaller.Instance; return Invoke<DeleteDashboardsResponse>(request, options); } /// <summary> /// Deletes all dashboards that you specify. You can specify up to 100 dashboards to delete. /// If there is an error during this call, no dashboards are deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> public virtual Task<DeleteDashboardsResponse> DeleteDashboardsAsync(DeleteDashboardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDashboardsResponseUnmarshaller.Instance; return InvokeAsync<DeleteDashboardsResponse>(request, options, cancellationToken); } #endregion #region DeleteInsightRules internal virtual DeleteInsightRulesResponse DeleteInsightRules(DeleteInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInsightRulesResponseUnmarshaller.Instance; return Invoke<DeleteInsightRulesResponse>(request, options); } /// <summary> /// Permanently deletes the specified Contributor Insights rules. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> public virtual Task<DeleteInsightRulesResponse> DeleteInsightRulesAsync(DeleteInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<DeleteInsightRulesResponse>(request, options, cancellationToken); } #endregion #region DeleteMetricStream internal virtual DeleteMetricStreamResponse DeleteMetricStream(DeleteMetricStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMetricStreamResponseUnmarshaller.Instance; return Invoke<DeleteMetricStreamResponse>(request, options); } /// <summary> /// Permanently deletes the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> public virtual Task<DeleteMetricStreamResponse> DeleteMetricStreamAsync(DeleteMetricStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMetricStreamResponseUnmarshaller.Instance; return InvokeAsync<DeleteMetricStreamResponse>(request, options, cancellationToken); } #endregion #region DescribeAlarmHistory internal virtual DescribeAlarmHistoryResponse DescribeAlarmHistory() { return DescribeAlarmHistory(new DescribeAlarmHistoryRequest()); } internal virtual DescribeAlarmHistoryResponse DescribeAlarmHistory(DescribeAlarmHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmHistoryResponseUnmarshaller.Instance; return Invoke<DescribeAlarmHistoryResponse>(request, options); } /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual Task<DescribeAlarmHistoryResponse> DescribeAlarmHistoryAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAlarmHistoryAsync(new DescribeAlarmHistoryRequest(), cancellationToken); } /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> public virtual Task<DescribeAlarmHistoryResponse> DescribeAlarmHistoryAsync(DescribeAlarmHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmHistoryResponseUnmarshaller.Instance; return InvokeAsync<DescribeAlarmHistoryResponse>(request, options, cancellationToken); } #endregion #region DescribeAlarms internal virtual DescribeAlarmsResponse DescribeAlarms() { return DescribeAlarms(new DescribeAlarmsRequest()); } internal virtual DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsResponseUnmarshaller.Instance; return Invoke<DescribeAlarmsResponse>(request, options); } /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual Task<DescribeAlarmsResponse> DescribeAlarmsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAlarmsAsync(new DescribeAlarmsRequest(), cancellationToken); } /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> public virtual Task<DescribeAlarmsResponse> DescribeAlarmsAsync(DescribeAlarmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAlarmsResponse>(request, options, cancellationToken); } #endregion #region DescribeAlarmsForMetric internal virtual DescribeAlarmsForMetricResponse DescribeAlarmsForMetric(DescribeAlarmsForMetricRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsForMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance; return Invoke<DescribeAlarmsForMetricResponse>(request, options); } /// <summary> /// Retrieves the alarms for the specified metric. To filter the results, specify a statistic, /// period, or unit. /// /// /// <para> /// This operation retrieves only standard alarms that are based on the specified metric. /// It does not return alarms based on math expressions that use the specified metric, /// or composite alarms that use the specified metric. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmsForMetric service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> public virtual Task<DescribeAlarmsForMetricResponse> DescribeAlarmsForMetricAsync(DescribeAlarmsForMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAlarmsForMetricRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance; return InvokeAsync<DescribeAlarmsForMetricResponse>(request, options, cancellationToken); } #endregion #region DescribeAnomalyDetectors internal virtual DescribeAnomalyDetectorsResponse DescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnomalyDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnomalyDetectorsResponseUnmarshaller.Instance; return Invoke<DescribeAnomalyDetectorsResponse>(request, options); } /// <summary> /// Lists the anomaly detection models that you have created in your account. For single /// metric anomaly detectors, you can list all of the models in your account or filter /// the results to only the models that are related to a certain namespace, metric name, /// or metric dimension. For metric math anomaly detectors, you can list them by adding /// <code>METRIC_MATH</code> to the <code>AnomalyDetectorTypes</code> array. This will /// return all metric math anomaly detectors in your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAnomalyDetectors service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> public virtual Task<DescribeAnomalyDetectorsResponse> DescribeAnomalyDetectorsAsync(DescribeAnomalyDetectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAnomalyDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAnomalyDetectorsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAnomalyDetectorsResponse>(request, options, cancellationToken); } #endregion #region DescribeInsightRules internal virtual DescribeInsightRulesResponse DescribeInsightRules(DescribeInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInsightRulesResponseUnmarshaller.Instance; return Invoke<DescribeInsightRulesResponse>(request, options); } /// <summary> /// Returns a list of all the Contributor Insights rules in your account. /// /// /// <para> /// For more information about Contributor Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> public virtual Task<DescribeInsightRulesResponse> DescribeInsightRulesAsync(DescribeInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<DescribeInsightRulesResponse>(request, options, cancellationToken); } #endregion #region DisableAlarmActions internal virtual DisableAlarmActionsResponse DisableAlarmActions(DisableAlarmActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableAlarmActionsResponseUnmarshaller.Instance; return Invoke<DisableAlarmActionsResponse>(request, options); } /// <summary> /// Disables the actions for the specified alarms. When an alarm's actions are disabled, /// the alarm actions do not execute when the alarm state changes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> public virtual Task<DisableAlarmActionsResponse> DisableAlarmActionsAsync(DisableAlarmActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableAlarmActionsResponseUnmarshaller.Instance; return InvokeAsync<DisableAlarmActionsResponse>(request, options, cancellationToken); } #endregion #region DisableInsightRules internal virtual DisableInsightRulesResponse DisableInsightRules(DisableInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableInsightRulesResponseUnmarshaller.Instance; return Invoke<DisableInsightRulesResponse>(request, options); } /// <summary> /// Disables the specified Contributor Insights rules. When rules are disabled, they do /// not analyze log groups and do not incur costs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> public virtual Task<DisableInsightRulesResponse> DisableInsightRulesAsync(DisableInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<DisableInsightRulesResponse>(request, options, cancellationToken); } #endregion #region EnableAlarmActions internal virtual EnableAlarmActionsResponse EnableAlarmActions(EnableAlarmActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return Invoke<EnableAlarmActionsResponse>(request, options); } /// <summary> /// Enables the actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> public virtual Task<EnableAlarmActionsResponse> EnableAlarmActionsAsync(EnableAlarmActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnableAlarmActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance; return InvokeAsync<EnableAlarmActionsResponse>(request, options, cancellationToken); } #endregion #region EnableInsightRules internal virtual EnableInsightRulesResponse EnableInsightRules(EnableInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableInsightRulesResponseUnmarshaller.Instance; return Invoke<EnableInsightRulesResponse>(request, options); } /// <summary> /// Enables the specified Contributor Insights rules. When rules are enabled, they immediately /// begin analyzing log data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> public virtual Task<EnableInsightRulesResponse> EnableInsightRulesAsync(EnableInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnableInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<EnableInsightRulesResponse>(request, options, cancellationToken); } #endregion #region GetDashboard internal virtual GetDashboardResponse GetDashboard(GetDashboardRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDashboardResponseUnmarshaller.Instance; return Invoke<GetDashboardResponse>(request, options); } /// <summary> /// Displays the details of the dashboard that you specify. /// /// /// <para> /// To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data /// returned within <code>DashboardBody</code> as the template for the new dashboard when /// you call <code>PutDashboard</code> to create the copy. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDashboard service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> public virtual Task<GetDashboardResponse> GetDashboardAsync(GetDashboardRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDashboardResponseUnmarshaller.Instance; return InvokeAsync<GetDashboardResponse>(request, options, cancellationToken); } #endregion #region GetInsightRuleReport internal virtual GetInsightRuleReportResponse GetInsightRuleReport(GetInsightRuleReportRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetInsightRuleReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetInsightRuleReportResponseUnmarshaller.Instance; return Invoke<GetInsightRuleReportResponse>(request, options); } /// <summary> /// This operation returns the time series data collected by a Contributor Insights rule. /// The data includes the identity and number of contributors to the log group. /// /// /// <para> /// You can also optionally return one or more statistics about each data point in the /// time series. These statistics can include the following: /// </para> /// <ul> <li> /// <para> /// <code>UniqueContributors</code> -- the number of unique contributors for each data /// point. /// </para> /// </li> <li> /// <para> /// <code>MaxContributorValue</code> -- the value of the top contributor for each data /// point. The identity of the contributor might change for each data point in the graph. /// </para> /// /// <para> /// If this rule aggregates by COUNT, the top contributor for each data point is the contributor /// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor /// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>, /// during that period. /// </para> /// </li> <li> /// <para> /// <code>SampleCount</code> -- the number of data points matched by the rule. /// </para> /// </li> <li> /// <para> /// <code>Sum</code> -- the sum of the values from all contributors during the time period /// represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Minimum</code> -- the minimum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Maximum</code> -- the maximum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Average</code> -- the average value from all contributors during the time period /// represented by that data point. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetInsightRuleReport service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> public virtual Task<GetInsightRuleReportResponse> GetInsightRuleReportAsync(GetInsightRuleReportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetInsightRuleReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetInsightRuleReportResponseUnmarshaller.Instance; return InvokeAsync<GetInsightRuleReportResponse>(request, options, cancellationToken); } #endregion #region GetMetricData internal virtual GetMetricDataResponse GetMetricData(GetMetricDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricDataResponseUnmarshaller.Instance; return Invoke<GetMetricDataResponse>(request, options); } /// <summary> /// You can use the <code>GetMetricData</code> API to retrieve CloudWatch metric values. /// The operation can also include a CloudWatch Metrics Insights query, and one or more /// metric math functions. /// /// /// <para> /// A <code>GetMetricData</code> operation that does not include a query can retrieve /// as many as 500 different metrics in a single request, with a total of as many as 100,800 /// data points. You can also optionally perform metric math expressions on the values /// of the returned statistics, to create new time series that represent new insights /// into your data. For example, using Lambda metrics, you could divide the Errors metric /// by the Invocations metric to get an error rate time series. For more information about /// metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric /// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// If you include a Metrics Insights query, each <code>GetMetricData</code> operation /// can include only one query. But the same <code>GetMetricData</code> operation can /// also retrieve other metrics. Metrics Insights queries can query only the most recent /// three hours of metric data. For more information about Metrics Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html">Query /// your metrics with CloudWatch Metrics Insights</a>. /// </para> /// /// <para> /// Calls to the <code>GetMetricData</code> API have a different pricing structure than /// calls to <code>GetMetricStatistics</code>. For more information about pricing, see /// <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// If you omit <code>Unit</code> in your request, all data that was collected with any /// unit is returned, along with the corresponding units that were specified when the /// data was reported to CloudWatch. If you specify a unit, the operation returns only /// data that was collected with that unit specified. If you specify a unit that does /// not match the data collected, the results of the operation are null. CloudWatch does /// not perform unit conversions. /// </para> /// /// <para> /// <b>Using Metrics Insights queries with metric math</b> /// </para> /// /// <para> /// You can't mix a Metric Insights query and metric math syntax in the same expression, /// but you can reference results from a Metrics Insights query within other Metric math /// expressions. A Metrics Insights query without a <b>GROUP BY</b> clause returns a single /// time-series (TS), and can be used as input for a metric math expression that expects /// a single time series. A Metrics Insights query with a <b>GROUP BY</b> clause returns /// an array of time-series (TS[]), and can be used as input for a metric math expression /// that expects an array of time series. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> public virtual Task<GetMetricDataResponse> GetMetricDataAsync(GetMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricDataResponseUnmarshaller.Instance; return InvokeAsync<GetMetricDataResponse>(request, options, cancellationToken); } #endregion #region GetMetricStatistics internal virtual GetMetricStatisticsResponse GetMetricStatistics(GetMetricStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStatisticsResponseUnmarshaller.Instance; return Invoke<GetMetricStatisticsResponse>(request, options); } /// <summary> /// Gets statistics for the specified metric. /// /// /// <para> /// The maximum number of data points returned from a single call is 1,440. If you request /// more than 1,440 data points, CloudWatch returns an error. To reduce the number of /// data points, you can narrow the specified time range and make multiple requests across /// adjacent time ranges, or you can increase the specified period. Data points are not /// returned in chronological order. /// </para> /// /// <para> /// CloudWatch aggregates data points based on the length of the period that you specify. /// For example, if you request statistics with a one-hour period, CloudWatch aggregates /// all data points with time stamps that fall within each one-hour period. Therefore, /// the number of values aggregated by CloudWatch is larger than the number of data points /// returned. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The SampleCount value of the statistic set is 1. /// </para> /// </li> <li> /// <para> /// The Min and the Max values of the statistic set are equal. /// </para> /// </li> </ul> /// <para> /// Percentile statistics are not available for metrics when any of the metric values /// are negative numbers. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016. /// </para> /// /// <para> /// For information about metrics and dimensions supported by Amazon Web Services services, /// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon /// CloudWatch Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricStatistics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> public virtual Task<GetMetricStatisticsResponse> GetMetricStatisticsAsync(GetMetricStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStatisticsResponseUnmarshaller.Instance; return InvokeAsync<GetMetricStatisticsResponse>(request, options, cancellationToken); } #endregion #region GetMetricStream internal virtual GetMetricStreamResponse GetMetricStream(GetMetricStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStreamResponseUnmarshaller.Instance; return Invoke<GetMetricStreamResponse>(request, options); } /// <summary> /// Returns information about the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> public virtual Task<GetMetricStreamResponse> GetMetricStreamAsync(GetMetricStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricStreamResponseUnmarshaller.Instance; return InvokeAsync<GetMetricStreamResponse>(request, options, cancellationToken); } #endregion #region GetMetricWidgetImage internal virtual GetMetricWidgetImageResponse GetMetricWidgetImage(GetMetricWidgetImageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricWidgetImageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricWidgetImageResponseUnmarshaller.Instance; return Invoke<GetMetricWidgetImageResponse>(request, options); } /// <summary> /// You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph /// of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this /// image into your services and products, such as wiki pages, reports, and documents. /// You could also retrieve images regularly, such as every minute, and create your own /// custom live dashboard. /// /// /// <para> /// The graph you retrieve can include all CloudWatch metric graph features, including /// metric math and horizontal and vertical annotations. /// </para> /// /// <para> /// There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code> /// action has the following limits: /// </para> /// <ul> <li> /// <para> /// As many as 100 metrics in the graph. /// </para> /// </li> <li> /// <para> /// Up to 100 KB uncompressed payload. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricWidgetImage service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> public virtual Task<GetMetricWidgetImageResponse> GetMetricWidgetImageAsync(GetMetricWidgetImageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricWidgetImageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricWidgetImageResponseUnmarshaller.Instance; return InvokeAsync<GetMetricWidgetImageResponse>(request, options, cancellationToken); } #endregion #region ListDashboards internal virtual ListDashboardsResponse ListDashboards(ListDashboardsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDashboardsResponseUnmarshaller.Instance; return Invoke<ListDashboardsResponse>(request, options); } /// <summary> /// Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>, /// only those dashboards with names starting with the prefix are listed. Otherwise, all /// dashboards in your account are listed. /// /// /// <para> /// <code>ListDashboards</code> returns up to 1000 results on one page. If there are /// more than 1000 dashboards, you can call <code>ListDashboards</code> again and include /// the value you received for <code>NextToken</code> in the first call, to receive the /// next 1000 results. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDashboards service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> public virtual Task<ListDashboardsResponse> ListDashboardsAsync(ListDashboardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDashboardsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDashboardsResponseUnmarshaller.Instance; return InvokeAsync<ListDashboardsResponse>(request, options, cancellationToken); } #endregion #region ListManagedInsightRules internal virtual ListManagedInsightRulesResponse ListManagedInsightRules(ListManagedInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedInsightRulesResponseUnmarshaller.Instance; return Invoke<ListManagedInsightRulesResponse>(request, options); } /// <summary> /// Returns a list that contains the number of managed Contributor Insights rules in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> public virtual Task<ListManagedInsightRulesResponse> ListManagedInsightRulesAsync(ListManagedInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListManagedInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<ListManagedInsightRulesResponse>(request, options, cancellationToken); } #endregion #region ListMetrics internal virtual ListMetricsResponse ListMetrics() { return ListMetrics(new ListMetricsRequest()); } internal virtual ListMetricsResponse ListMetrics(ListMetricsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricsResponseUnmarshaller.Instance; return Invoke<ListMetricsResponse>(request, options); } /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual Task<ListMetricsResponse> ListMetricsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListMetricsAsync(new ListMetricsRequest(), cancellationToken); } /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetrics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> public virtual Task<ListMetricsResponse> ListMetricsAsync(ListMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricsResponseUnmarshaller.Instance; return InvokeAsync<ListMetricsResponse>(request, options, cancellationToken); } #endregion #region ListMetricStreams internal virtual ListMetricStreamsResponse ListMetricStreams(ListMetricStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricStreamsResponseUnmarshaller.Instance; return Invoke<ListMetricStreamsResponse>(request, options); } /// <summary> /// Returns a list of metric streams in this account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> public virtual Task<ListMetricStreamsResponse> ListMetricStreamsAsync(ListMetricStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMetricStreamsResponseUnmarshaller.Instance; return InvokeAsync<ListMetricStreamsResponse>(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> /// Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor /// Insights rules support tagging. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 PutAnomalyDetector internal virtual PutAnomalyDetectorResponse PutAnomalyDetector(PutAnomalyDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAnomalyDetectorResponseUnmarshaller.Instance; return Invoke<PutAnomalyDetectorResponse>(request, options); } /// <summary> /// Creates an anomaly detection model for a CloudWatch metric. You can use the model /// to display a band of expected normal values when the metric is graphed. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch /// Anomaly Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> public virtual Task<PutAnomalyDetectorResponse> PutAnomalyDetectorAsync(PutAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutAnomalyDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAnomalyDetectorResponseUnmarshaller.Instance; return InvokeAsync<PutAnomalyDetectorResponse>(request, options, cancellationToken); } #endregion #region PutCompositeAlarm internal virtual PutCompositeAlarmResponse PutCompositeAlarm(PutCompositeAlarmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCompositeAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCompositeAlarmResponseUnmarshaller.Instance; return Invoke<PutCompositeAlarmResponse>(request, options); } /// <summary> /// Creates or updates a <i>composite alarm</i>. When you create a composite alarm, you /// specify a rule expression for the alarm that takes into account the alarm states of /// other alarms that you have created. The composite alarm goes into ALARM state only /// if all conditions of the rule are met. /// /// /// <para> /// The alarms specified in a composite alarm's rule expression can include metric alarms /// and other composite alarms. The rule expression of a composite alarm can include as /// many as 100 underlying alarms. Any single alarm can be included in the rule expressions /// of as many as 150 composite alarms. /// </para> /// /// <para> /// Using composite alarms can reduce alarm noise. You can create multiple metric alarms, /// and also create a composite alarm and set up alerts only for the composite alarm. /// For example, you could create a composite alarm that goes into ALARM state only when /// more than one of the underlying metric alarms are in ALARM state. /// </para> /// /// <para> /// Currently, the only alarm actions that can be taken by composite alarms are notifying /// SNS topics. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. For a composite alarm, this initial time after /// creation is the only time that the alarm can be in <code>INSUFFICIENT_DATA</code> /// state. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// To use this operation, you must be signed on with the <code>cloudwatch:PutCompositeAlarm</code> /// permission that is scoped to <code>*</code>. You can't create a composite alarms if /// your <code>cloudwatch:PutCompositeAlarm</code> permission has a narrower scope. /// </para> /// /// <para> /// If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to /// create a composite alarm that has Systems Manager OpsItem actions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutCompositeAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> public virtual Task<PutCompositeAlarmResponse> PutCompositeAlarmAsync(PutCompositeAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutCompositeAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCompositeAlarmResponseUnmarshaller.Instance; return InvokeAsync<PutCompositeAlarmResponse>(request, options, cancellationToken); } #endregion #region PutDashboard internal virtual PutDashboardResponse PutDashboard(PutDashboardRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = PutDashboardResponseUnmarshaller.Instance; return Invoke<PutDashboardResponse>(request, options); } /// <summary> /// Creates a dashboard if it does not already exist, or updates an existing dashboard. /// If you update a dashboard, the entire contents are replaced with what you specify /// here. /// /// /// <para> /// All dashboards in your account are global, not region-specific. /// </para> /// /// <para> /// A simple way to create a dashboard using <code>PutDashboard</code> is to copy an existing /// dashboard. To copy an existing dashboard using the console, you can load the dashboard /// and then use the View/edit source command in the Actions menu to display the JSON /// block for that dashboard. Another way to copy a dashboard is to use <code>GetDashboard</code>, /// and then use the data returned within <code>DashboardBody</code> as the template for /// the new dashboard when you call <code>PutDashboard</code>. /// </para> /// /// <para> /// When you create a dashboard with <code>PutDashboard</code>, a good practice is to /// add a text widget at the top of the dashboard with a message that the dashboard was /// created by script and should not be changed in the console. This message could also /// point console users to the location of the <code>DashboardBody</code> script or the /// CloudFormation template used to create the dashboard. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutDashboard service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardInvalidInputErrorException"> /// Some part of the dashboard data is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> public virtual Task<PutDashboardResponse> PutDashboardAsync(PutDashboardRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutDashboardRequestMarshaller.Instance; options.ResponseUnmarshaller = PutDashboardResponseUnmarshaller.Instance; return InvokeAsync<PutDashboardResponse>(request, options, cancellationToken); } #endregion #region PutInsightRule internal virtual PutInsightRuleResponse PutInsightRule(PutInsightRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutInsightRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutInsightRuleResponseUnmarshaller.Instance; return Invoke<PutInsightRuleResponse>(request, options); } /// <summary> /// Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs /// log group, enabling you to find contributor data for the log events in that log group. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutInsightRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutInsightRule service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> public virtual Task<PutInsightRuleResponse> PutInsightRuleAsync(PutInsightRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutInsightRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutInsightRuleResponseUnmarshaller.Instance; return InvokeAsync<PutInsightRuleResponse>(request, options, cancellationToken); } #endregion #region PutManagedInsightRules internal virtual PutManagedInsightRulesResponse PutManagedInsightRules(PutManagedInsightRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutManagedInsightRulesResponseUnmarshaller.Instance; return Invoke<PutManagedInsightRulesResponse>(request, options); } /// <summary> /// Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. /// When you enable a managed rule, you create a Contributor Insights rule that collects /// data from Amazon Web Services services. You cannot edit these rules with <code>PutInsightRule</code>. /// The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, /// <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>. If a previously /// created managed rule is currently disabled, a subsequent call to this API will re-enable /// it. Use <code>ListManagedInsightRules</code> to describe all available rules. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> public virtual Task<PutManagedInsightRulesResponse> PutManagedInsightRulesAsync(PutManagedInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutManagedInsightRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = PutManagedInsightRulesResponseUnmarshaller.Instance; return InvokeAsync<PutManagedInsightRulesResponse>(request, options, cancellationToken); } #endregion #region PutMetricAlarm internal virtual PutMetricAlarmResponse PutMetricAlarm(PutMetricAlarmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricAlarmResponseUnmarshaller.Instance; return Invoke<PutMetricAlarmResponse>(request, options); } /// <summary> /// Creates or updates an alarm and associates it with the specified metric, metric math /// expression, anomaly detection model, or Metrics Insights query. For more information /// about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create /// alarms on Metrics Insights queries</a>. /// /// /// <para> /// Alarms based on anomaly detection models cannot have Auto Scaling actions. /// </para> /// /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations: /// </para> /// <ul> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions /// </para> /// </li> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm with Systems /// Manager OpsItem or response plan actions. /// </para> /// </li> </ul> /// <para> /// The first time you create an alarm in the Amazon Web Services Management Console, /// the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked /// role for you. The service-linked roles are called <code>AWSServiceRoleForCloudWatchEvents</code> /// and <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>. For more information, /// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon /// Web Services service-linked role</a>. /// </para> /// /// <para> /// Each <code>PutMetricAlarm</code> action has a maximum uncompressed payload of 120 /// KB. /// </para> /// /// <para> /// <b>Cross-account alarms</b> /// </para> /// /// <para> /// You can set an alarm on metrics in the current account, or in another account. To /// create a cross-account alarm that watches a metric in a different account, you must /// have completed the following pre-requisites: /// </para> /// <ul> <li> /// <para> /// The account where the metrics are located (the <i>sharing account</i>) must already /// have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not /// already have this role, you must create it using the instructions in <b>Set up a sharing /// account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. The policy for that role must grant /// access to the ID of the account where you are creating the alarm. /// </para> /// </li> <li> /// <para> /// The account where you are creating the alarm (the <i>monitoring account</i>) must /// already have a service-linked role named <b>AWSServiceRoleForCloudWatchCrossAccount</b> /// to allow CloudWatch to assume the sharing role in the sharing account. If it does /// not, you must create it following the directions in <b>Set up a monitoring account</b> /// in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> public virtual Task<PutMetricAlarmResponse> PutMetricAlarmAsync(PutMetricAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricAlarmRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricAlarmResponseUnmarshaller.Instance; return InvokeAsync<PutMetricAlarmResponse>(request, options, cancellationToken); } #endregion #region PutMetricData internal virtual PutMetricDataResponse PutMetricData(PutMetricDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricDataResponseUnmarshaller.Instance; return Invoke<PutMetricDataResponse>(request, options); } /// <summary> /// Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data /// points with the specified metric. If the specified metric does not exist, CloudWatch /// creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes /// for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>. /// /// /// <para> /// You can publish either individual data points in the <code>Value</code> field, or /// arrays of values and the number of times each value occurred during the period by /// using the <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> /// structure. Using the <code>Values</code> and <code>Counts</code> method enables you /// to publish up to 150 values per metric with one <code>PutMetricData</code> request, /// and supports retrieving percentile statistics on this data. /// </para> /// /// <para> /// Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. /// You can send a payload compressed by gzip. Each request is also limited to no more /// than 1000 different metrics. /// </para> /// /// <para> /// Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// CloudWatch rejects values that are either too small or too large. Values must be in /// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, /// -Infinity) are not supported. /// </para> /// /// <para> /// You can use up to 30 dimensions per metric to further clarify what data the metric /// collects. Each dimension consists of a Name and Value pair. For more information about /// specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing /// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// You specify the time stamp to be associated with each data point. You can specify /// time stamps that are as much as two weeks before the current date, and as much as /// 2 hours after the current day and time. /// </para> /// /// <para> /// Data points with time stamps from 24 hours ago or longer can take at least 48 hours /// to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// from the time they are submitted. Data points with time stamps between 3 and 24 hours /// ago can take as much as 2 hours to become available for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>, /// <code>Max</code>, and <code>Sum</code> are all equal. /// </para> /// </li> <li> /// <para> /// The <code>Min</code> and <code>Max</code> are equal, and <code>Sum</code> is equal /// to <code>Min</code> multiplied by <code>SampleCount</code>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> public virtual Task<PutMetricDataResponse> PutMetricDataAsync(PutMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricDataResponseUnmarshaller.Instance; return InvokeAsync<PutMetricDataResponse>(request, options, cancellationToken); } #endregion #region PutMetricStream internal virtual PutMetricStreamResponse PutMetricStream(PutMetricStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricStreamResponseUnmarshaller.Instance; return Invoke<PutMetricStreamResponse>(request, options); } /// <summary> /// Creates or updates a metric stream. Metric streams can automatically stream CloudWatch /// metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party /// solutions. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html"> /// Using Metric Streams</a>. /// </para> /// /// <para> /// To create a metric stream, you must be signed in to an account that has the <code>iam:PassRole</code> /// permission and either the <code>CloudWatchFullAccess</code> policy or the <code>cloudwatch:PutMetricStream</code> /// permission. /// </para> /// /// <para> /// When you create or update a metric stream, you choose one of the following: /// </para> /// <ul> <li> /// <para> /// Stream metrics from all metric namespaces in the account. /// </para> /// </li> <li> /// <para> /// Stream metrics from all metric namespaces in the account, except for the namespaces /// that you list in <code>ExcludeFilters</code>. /// </para> /// </li> <li> /// <para> /// Stream metrics from only the metric namespaces that you list in <code>IncludeFilters</code>. /// </para> /// </li> </ul> /// <para> /// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, /// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can /// use the <code>StatisticsConfigurations</code> parameter to have the metric stream /// send additional statistics in the stream. Streaming additional statistics incurs additional /// costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon /// CloudWatch Pricing</a>. /// </para> /// /// <para> /// When you use <code>PutMetricStream</code> to create a new metric stream, the stream /// is created in the <code>running</code> state. If you use it to update an existing /// stream, the state of the stream is not changed. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability and you create a metric stream /// in a monitoring account, you can choose whether to include metrics from source accounts /// in the stream. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> public virtual Task<PutMetricStreamResponse> PutMetricStreamAsync(PutMetricStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricStreamResponseUnmarshaller.Instance; return InvokeAsync<PutMetricStreamResponse>(request, options, cancellationToken); } #endregion #region SetAlarmState internal virtual SetAlarmStateResponse SetAlarmState(SetAlarmStateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetAlarmStateRequestMarshaller.Instance; options.ResponseUnmarshaller = SetAlarmStateResponseUnmarshaller.Instance; return Invoke<SetAlarmStateResponse>(request, options); } /// <summary> /// Temporarily sets the state of an alarm for testing purposes. When the updated state /// differs from the previous value, the action configured for the appropriate state is /// invoked. For example, if your alarm is configured to send an Amazon SNS message when /// an alarm is triggered, temporarily changing the alarm state to <code>ALARM</code> /// sends an SNS message. /// /// /// <para> /// Metric alarms returns to their actual state quickly, often within seconds. Because /// the metric alarm state change happens quickly, it is typically only visible in the /// alarm's <b>History</b> tab in the Amazon CloudWatch console or through <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>. /// </para> /// /// <para> /// If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is /// not guaranteed to return to its actual state. It returns to its actual state only /// once any of its children alarms change state. It is also reevaluated if you update /// its configuration. /// </para> /// /// <para> /// If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, /// you must include information in the <code>StateReasonData</code> parameter to enable /// the policy to take the correct action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetAlarmState service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetAlarmState service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidFormatException"> /// Data was not syntactically valid JSON. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> public virtual Task<SetAlarmStateResponse> SetAlarmStateAsync(SetAlarmStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetAlarmStateRequestMarshaller.Instance; options.ResponseUnmarshaller = SetAlarmStateResponseUnmarshaller.Instance; return InvokeAsync<SetAlarmStateResponse>(request, options, cancellationToken); } #endregion #region StartMetricStreams internal virtual StartMetricStreamsResponse StartMetricStreams(StartMetricStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMetricStreamsResponseUnmarshaller.Instance; return Invoke<StartMetricStreamsResponse>(request, options); } /// <summary> /// Starts the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> public virtual Task<StartMetricStreamsResponse> StartMetricStreamsAsync(StartMetricStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMetricStreamsResponseUnmarshaller.Instance; return InvokeAsync<StartMetricStreamsResponse>(request, options, cancellationToken); } #endregion #region StopMetricStreams internal virtual StopMetricStreamsResponse StopMetricStreams(StopMetricStreamsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StopMetricStreamsResponseUnmarshaller.Instance; return Invoke<StopMetricStreamsResponse>(request, options); } /// <summary> /// Stops the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> public virtual Task<StopMetricStreamsResponse> StopMetricStreamsAsync(StopMetricStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopMetricStreamsRequestMarshaller.Instance; options.ResponseUnmarshaller = StopMetricStreamsResponseUnmarshaller.Instance; return InvokeAsync<StopMetricStreamsResponse>(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> /// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, /// the only CloudWatch resources that can be tagged are alarms and Contributor Insights /// rules. /// /// /// <para> /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// </para> /// /// <para> /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// </para> /// /// <para> /// You can use the <code>TagResource</code> action with an alarm that already has tags. /// If you specify a new tag key for the alarm, this tag is appended to the list of tags /// associated with the alarm. If you specify a tag key that is already associated with /// the alarm, the new tag value that you specify replaces the previous value for that /// tag. /// </para> /// /// <para> /// You can associate as many as 50 tags with a CloudWatch resource. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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> /// Removes one or more tags from the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/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 } }
2,707
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the monitoring-2010-08-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CloudWatch.Model; namespace Amazon.CloudWatch { /// <summary> /// Interface for accessing CloudWatch /// /// Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services) resources /// and the applications you run on Amazon Web Services in real time. You can use CloudWatch /// to collect and track metrics, which are the variables you want to measure for your /// resources and applications. /// /// /// <para> /// CloudWatch alarms send notifications or automatically change the resources you are /// monitoring based on rules that you define. For example, you can monitor the CPU usage /// and disk reads and writes of your Amazon EC2 instances. Then, use this data to determine /// whether you should launch additional instances to handle increased load. You can also /// use this data to stop under-used instances to save money. /// </para> /// /// <para> /// In addition to monitoring the built-in metrics that come with Amazon Web Services, /// you can monitor your own custom metrics. With CloudWatch, you gain system-wide visibility /// into resource utilization, application performance, and operational health. /// </para> /// </summary> public partial interface IAmazonCloudWatch : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> ICloudWatchPaginatorFactory Paginators { get; } #endif #region DeleteAlarms /// <summary> /// Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, /// this total can include no more than one composite alarm. For example, you could delete /// 99 metric alarms and one composite alarms with one operation, but you can't delete /// two composite alarms with one operation. /// /// /// <para> /// If you specify an incorrect alarm name or make any other error in the operation, /// no alarms are deleted. To confirm that alarms were deleted successfully, you can use /// the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> /// operation after using <code>DeleteAlarms</code>. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAlarms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarms">REST API Reference for DeleteAlarms Operation</seealso> Task<DeleteAlarmsResponse> DeleteAlarmsAsync(DeleteAlarmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteAnomalyDetector /// <summary> /// Deletes the specified anomaly detection model from your account. For more information /// about how to delete an anomaly detection model, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting /// an anomaly detection model</a> in the <i>CloudWatch User Guide</i>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnomalyDetector service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAnomalyDetector">REST API Reference for DeleteAnomalyDetector Operation</seealso> Task<DeleteAnomalyDetectorResponse> DeleteAnomalyDetectorAsync(DeleteAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteDashboards /// <summary> /// Deletes all dashboards that you specify. You can specify up to 100 dashboards to delete. /// If there is an error during this call, no dashboards are deleted. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDashboards service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards">REST API Reference for DeleteDashboards Operation</seealso> Task<DeleteDashboardsResponse> DeleteDashboardsAsync(DeleteDashboardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteInsightRules /// <summary> /// Permanently deletes the specified Contributor Insights rules. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteInsightRules">REST API Reference for DeleteInsightRules Operation</seealso> Task<DeleteInsightRulesResponse> DeleteInsightRulesAsync(DeleteInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteMetricStream /// <summary> /// Permanently deletes the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream">REST API Reference for DeleteMetricStream Operation</seealso> Task<DeleteMetricStreamResponse> DeleteMetricStreamAsync(DeleteMetricStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAlarmHistory /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> Task<DescribeAlarmHistoryResponse> DescribeAlarmHistoryAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves the history for the specified alarm. You can filter the results by date /// range or item type. If an alarm name is not specified, the histories for either all /// metric alarms or all composite alarms are returned. /// /// /// <para> /// CloudWatch retains the history of an alarm even if you delete the alarm. /// </para> /// /// <para> /// To use this operation and return information about a composite alarm, you must be /// signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is /// scoped to <code>*</code>. You can't return information about composite alarms if your /// <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmHistory service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmHistory">REST API Reference for DescribeAlarmHistory Operation</seealso> Task<DescribeAlarmHistoryResponse> DescribeAlarmHistoryAsync(DescribeAlarmHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAlarms /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> Task<DescribeAlarmsResponse> DescribeAlarmsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves the specified alarms. You can filter the results by specifying a prefix /// for the alarm name, the alarm state, or a prefix for any action. /// /// /// <para> /// To use this operation and return information about composite alarms, you must be signed /// on with the <code>cloudwatch:DescribeAlarms</code> permission that is scoped to <code>*</code>. /// You can't return information about composite alarms if your <code>cloudwatch:DescribeAlarms</code> /// permission has a narrower scope. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarms service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarms service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarms">REST API Reference for DescribeAlarms Operation</seealso> Task<DescribeAlarmsResponse> DescribeAlarmsAsync(DescribeAlarmsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAlarmsForMetric /// <summary> /// Retrieves the alarms for the specified metric. To filter the results, specify a statistic, /// period, or unit. /// /// /// <para> /// This operation retrieves only standard alarms that are based on the specified metric. /// It does not return alarms based on math expressions that use the specified metric, /// or composite alarms that use the specified metric. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAlarmsForMetric service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAlarmsForMetric service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAlarmsForMetric">REST API Reference for DescribeAlarmsForMetric Operation</seealso> Task<DescribeAlarmsForMetricResponse> DescribeAlarmsForMetricAsync(DescribeAlarmsForMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAnomalyDetectors /// <summary> /// Lists the anomaly detection models that you have created in your account. For single /// metric anomaly detectors, you can list all of the models in your account or filter /// the results to only the models that are related to a certain namespace, metric name, /// or metric dimension. For metric math anomaly detectors, you can list them by adding /// <code>METRIC_MATH</code> to the <code>AnomalyDetectorTypes</code> array. This will /// return all metric math anomaly detectors in your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAnomalyDetectors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAnomalyDetectors service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeAnomalyDetectors">REST API Reference for DescribeAnomalyDetectors Operation</seealso> Task<DescribeAnomalyDetectorsResponse> DescribeAnomalyDetectorsAsync(DescribeAnomalyDetectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeInsightRules /// <summary> /// Returns a list of all the Contributor Insights rules in your account. /// /// /// <para> /// For more information about Contributor Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules">REST API Reference for DescribeInsightRules Operation</seealso> Task<DescribeInsightRulesResponse> DescribeInsightRulesAsync(DescribeInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisableAlarmActions /// <summary> /// Disables the actions for the specified alarms. When an alarm's actions are disabled, /// the alarm actions do not execute when the alarm state changes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableAlarmActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableAlarmActions">REST API Reference for DisableAlarmActions Operation</seealso> Task<DisableAlarmActionsResponse> DisableAlarmActionsAsync(DisableAlarmActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisableInsightRules /// <summary> /// Disables the specified Contributor Insights rules. When rules are disabled, they do /// not analyze log groups and do not incur costs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DisableInsightRules">REST API Reference for DisableInsightRules Operation</seealso> Task<DisableInsightRulesResponse> DisableInsightRulesAsync(DisableInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnableAlarmActions /// <summary> /// Enables the actions for the specified alarms. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableAlarmActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableAlarmActions service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableAlarmActions">REST API Reference for EnableAlarmActions Operation</seealso> Task<EnableAlarmActionsResponse> EnableAlarmActionsAsync(EnableAlarmActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnableInsightRules /// <summary> /// Enables the specified Contributor Insights rules. When rules are enabled, they immediately /// begin analyzing log data. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/EnableInsightRules">REST API Reference for EnableInsightRules Operation</seealso> Task<EnableInsightRulesResponse> EnableInsightRulesAsync(EnableInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDashboard /// <summary> /// Displays the details of the dashboard that you specify. /// /// /// <para> /// To copy an existing dashboard, use <code>GetDashboard</code>, and then use the data /// returned within <code>DashboardBody</code> as the template for the new dashboard when /// you call <code>PutDashboard</code> to create the copy. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDashboard service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardNotFoundErrorException"> /// The specified dashboard does not exist. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetDashboard">REST API Reference for GetDashboard Operation</seealso> Task<GetDashboardResponse> GetDashboardAsync(GetDashboardRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetInsightRuleReport /// <summary> /// This operation returns the time series data collected by a Contributor Insights rule. /// The data includes the identity and number of contributors to the log group. /// /// /// <para> /// You can also optionally return one or more statistics about each data point in the /// time series. These statistics can include the following: /// </para> /// <ul> <li> /// <para> /// <code>UniqueContributors</code> -- the number of unique contributors for each data /// point. /// </para> /// </li> <li> /// <para> /// <code>MaxContributorValue</code> -- the value of the top contributor for each data /// point. The identity of the contributor might change for each data point in the graph. /// </para> /// /// <para> /// If this rule aggregates by COUNT, the top contributor for each data point is the contributor /// with the most occurrences in that period. If the rule aggregates by SUM, the top contributor /// is the contributor with the highest sum in the log field specified by the rule's <code>Value</code>, /// during that period. /// </para> /// </li> <li> /// <para> /// <code>SampleCount</code> -- the number of data points matched by the rule. /// </para> /// </li> <li> /// <para> /// <code>Sum</code> -- the sum of the values from all contributors during the time period /// represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Minimum</code> -- the minimum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Maximum</code> -- the maximum value from a single observation during the time /// period represented by that data point. /// </para> /// </li> <li> /// <para> /// <code>Average</code> -- the average value from all contributors during the time period /// represented by that data point. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetInsightRuleReport service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetInsightRuleReport service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetInsightRuleReport">REST API Reference for GetInsightRuleReport Operation</seealso> Task<GetInsightRuleReportResponse> GetInsightRuleReportAsync(GetInsightRuleReportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetMetricData /// <summary> /// You can use the <code>GetMetricData</code> API to retrieve CloudWatch metric values. /// The operation can also include a CloudWatch Metrics Insights query, and one or more /// metric math functions. /// /// /// <para> /// A <code>GetMetricData</code> operation that does not include a query can retrieve /// as many as 500 different metrics in a single request, with a total of as many as 100,800 /// data points. You can also optionally perform metric math expressions on the values /// of the returned statistics, to create new time series that represent new insights /// into your data. For example, using Lambda metrics, you could divide the Errors metric /// by the Invocations metric to get an error rate time series. For more information about /// metric math expressions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax">Metric /// Math Syntax and Functions</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// If you include a Metrics Insights query, each <code>GetMetricData</code> operation /// can include only one query. But the same <code>GetMetricData</code> operation can /// also retrieve other metrics. Metrics Insights queries can query only the most recent /// three hours of metric data. For more information about Metrics Insights, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/query_with_cloudwatch-metrics-insights.html">Query /// your metrics with CloudWatch Metrics Insights</a>. /// </para> /// /// <para> /// Calls to the <code>GetMetricData</code> API have a different pricing structure than /// calls to <code>GetMetricStatistics</code>. For more information about pricing, see /// <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon CloudWatch Pricing</a>. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// If you omit <code>Unit</code> in your request, all data that was collected with any /// unit is returned, along with the corresponding units that were specified when the /// data was reported to CloudWatch. If you specify a unit, the operation returns only /// data that was collected with that unit specified. If you specify a unit that does /// not match the data collected, the results of the operation are null. CloudWatch does /// not perform unit conversions. /// </para> /// /// <para> /// <b>Using Metrics Insights queries with metric math</b> /// </para> /// /// <para> /// You can't mix a Metric Insights query and metric math syntax in the same expression, /// but you can reference results from a Metrics Insights query within other Metric math /// expressions. A Metrics Insights query without a <b>GROUP BY</b> clause returns a single /// time-series (TS), and can be used as input for a metric math expression that expects /// a single time series. A Metrics Insights query with a <b>GROUP BY</b> clause returns /// an array of time-series (TS[]), and can be used as input for a metric math expression /// that expects an array of time series. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricData">REST API Reference for GetMetricData Operation</seealso> Task<GetMetricDataResponse> GetMetricDataAsync(GetMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetMetricStatistics /// <summary> /// Gets statistics for the specified metric. /// /// /// <para> /// The maximum number of data points returned from a single call is 1,440. If you request /// more than 1,440 data points, CloudWatch returns an error. To reduce the number of /// data points, you can narrow the specified time range and make multiple requests across /// adjacent time ranges, or you can increase the specified period. Data points are not /// returned in chronological order. /// </para> /// /// <para> /// CloudWatch aggregates data points based on the length of the period that you specify. /// For example, if you request statistics with a one-hour period, CloudWatch aggregates /// all data points with time stamps that fall within each one-hour period. Therefore, /// the number of values aggregated by CloudWatch is larger than the number of data points /// returned. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The SampleCount value of the statistic set is 1. /// </para> /// </li> <li> /// <para> /// The Min and the Max values of the statistic set are equal. /// </para> /// </li> </ul> /// <para> /// Percentile statistics are not available for metrics when any of the metric values /// are negative numbers. /// </para> /// /// <para> /// Amazon CloudWatch retains metric data as follows: /// </para> /// <ul> <li> /// <para> /// Data points with a period of less than 60 seconds are available for 3 hours. These /// data points are high-resolution metrics and are available only for custom metrics /// that have been defined with a <code>StorageResolution</code> of 1. /// </para> /// </li> <li> /// <para> /// Data points with a period of 60 seconds (1-minute) are available for 15 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 300 seconds (5-minute) are available for 63 days. /// </para> /// </li> <li> /// <para> /// Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 /// months). /// </para> /// </li> </ul> /// <para> /// Data points that are initially published with a shorter period are aggregated together /// for long-term storage. For example, if you collect data using a period of 1 minute, /// the data remains available for 15 days with 1-minute resolution. After 15 days, this /// data is still available, but is aggregated and retrievable only with a resolution /// of 5 minutes. After 63 days, the data is further aggregated and is available with /// a resolution of 1 hour. /// </para> /// /// <para> /// CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016. /// </para> /// /// <para> /// For information about metrics and dimensions supported by Amazon Web Services services, /// see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CW_Support_For_AWS.html">Amazon /// CloudWatch Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStatistics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricStatistics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStatistics">REST API Reference for GetMetricStatistics Operation</seealso> Task<GetMetricStatisticsResponse> GetMetricStatisticsAsync(GetMetricStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetMetricStream /// <summary> /// Returns information about the metric stream that you specify. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream">REST API Reference for GetMetricStream Operation</seealso> Task<GetMetricStreamResponse> GetMetricStreamAsync(GetMetricStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetMetricWidgetImage /// <summary> /// You can use the <code>GetMetricWidgetImage</code> API to retrieve a snapshot graph /// of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this /// image into your services and products, such as wiki pages, reports, and documents. /// You could also retrieve images regularly, such as every minute, and create your own /// custom live dashboard. /// /// /// <para> /// The graph you retrieve can include all CloudWatch metric graph features, including /// metric math and horizontal and vertical annotations. /// </para> /// /// <para> /// There is a limit of 20 transactions per second for this API. Each <code>GetMetricWidgetImage</code> /// action has the following limits: /// </para> /// <ul> <li> /// <para> /// As many as 100 metrics in the graph. /// </para> /// </li> <li> /// <para> /// Up to 100 KB uncompressed payload. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMetricWidgetImage service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetMetricWidgetImage service method, as returned by CloudWatch.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage">REST API Reference for GetMetricWidgetImage Operation</seealso> Task<GetMetricWidgetImageResponse> GetMetricWidgetImageAsync(GetMetricWidgetImageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListDashboards /// <summary> /// Returns a list of the dashboards for your account. If you include <code>DashboardNamePrefix</code>, /// only those dashboards with names starting with the prefix are listed. Otherwise, all /// dashboards in your account are listed. /// /// /// <para> /// <code>ListDashboards</code> returns up to 1000 results on one page. If there are /// more than 1000 dashboards, you can call <code>ListDashboards</code> again and include /// the value you received for <code>NextToken</code> in the first call, to receive the /// next 1000 results. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDashboards service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListDashboards service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListDashboards">REST API Reference for ListDashboards Operation</seealso> Task<ListDashboardsResponse> ListDashboardsAsync(ListDashboardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListManagedInsightRules /// <summary> /// Returns a list that contains the number of managed Contributor Insights rules in /// your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListManagedInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules">REST API Reference for ListManagedInsightRules Operation</seealso> Task<ListManagedInsightRulesResponse> ListManagedInsightRulesAsync(ListManagedInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListMetrics /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> Task<ListMetricsResponse> ListMetricsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// List the specified metrics. You can use the returned metrics with <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// to get statistical data. /// /// /// <para> /// Up to 500 results are returned for any one call. To retrieve additional results, use /// the returned token with subsequent calls. /// </para> /// /// <para> /// After you create a metric, allow up to 15 minutes for the metric to appear. To see /// metric statistics sooner, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability, you can use this operation /// in a monitoring account and view metrics from the linked source accounts. For more /// information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// /// <para> /// <code>ListMetrics</code> doesn't return information about metrics if those metrics /// haven't reported data in the past two weeks. To retrieve those metrics, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetrics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetrics service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetrics">REST API Reference for ListMetrics Operation</seealso> Task<ListMetricsResponse> ListMetricsAsync(ListMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListMetricStreams /// <summary> /// Returns a list of metric streams in this account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidNextTokenException"> /// The next token specified is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams">REST API Reference for ListMetricStreams Operation</seealso> Task<ListMetricStreamsResponse> ListMetricStreamsAsync(ListMetricStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor /// Insights rules support tagging. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutAnomalyDetector /// <summary> /// Creates an anomaly detection model for a CloudWatch metric. You can use the model /// to display a band of expected normal values when the metric is graphed. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html">CloudWatch /// Anomaly Detection</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAnomalyDetector service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutAnomalyDetector service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutAnomalyDetector">REST API Reference for PutAnomalyDetector Operation</seealso> Task<PutAnomalyDetectorResponse> PutAnomalyDetectorAsync(PutAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutCompositeAlarm /// <summary> /// Creates or updates a <i>composite alarm</i>. When you create a composite alarm, you /// specify a rule expression for the alarm that takes into account the alarm states of /// other alarms that you have created. The composite alarm goes into ALARM state only /// if all conditions of the rule are met. /// /// /// <para> /// The alarms specified in a composite alarm's rule expression can include metric alarms /// and other composite alarms. The rule expression of a composite alarm can include as /// many as 100 underlying alarms. Any single alarm can be included in the rule expressions /// of as many as 150 composite alarms. /// </para> /// /// <para> /// Using composite alarms can reduce alarm noise. You can create multiple metric alarms, /// and also create a composite alarm and set up alerts only for the composite alarm. /// For example, you could create a composite alarm that goes into ALARM state only when /// more than one of the underlying metric alarms are in ALARM state. /// </para> /// /// <para> /// Currently, the only alarm actions that can be taken by composite alarms are notifying /// SNS topics. /// </para> /// <note> /// <para> /// It is possible to create a loop or cycle of composite alarms, where composite alarm /// A depends on composite alarm B, and composite alarm B also depends on composite alarm /// A. In this scenario, you can't delete any composite alarm that is part of the cycle /// because there is always still a composite alarm that depends on that alarm that you /// want to delete. /// </para> /// /// <para> /// To get out of such a situation, you must break the cycle by changing the rule of one /// of the composite alarms in the cycle to remove a dependency that creates the cycle. /// The simplest change to make to break a cycle is to change the <code>AlarmRule</code> /// of one of the alarms to <code>false</code>. /// </para> /// /// <para> /// Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle /// in the evaluation path. /// </para> /// </note> /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. For a composite alarm, this initial time after /// creation is the only time that the alarm can be in <code>INSUFFICIENT_DATA</code> /// state. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// To use this operation, you must be signed on with the <code>cloudwatch:PutCompositeAlarm</code> /// permission that is scoped to <code>*</code>. You can't create a composite alarms if /// your <code>cloudwatch:PutCompositeAlarm</code> permission has a narrower scope. /// </para> /// /// <para> /// If you are an IAM user, you must have <code>iam:CreateServiceLinkedRole</code> to /// create a composite alarm that has Systems Manager OpsItem actions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutCompositeAlarm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutCompositeAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm">REST API Reference for PutCompositeAlarm Operation</seealso> Task<PutCompositeAlarmResponse> PutCompositeAlarmAsync(PutCompositeAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutDashboard /// <summary> /// Creates a dashboard if it does not already exist, or updates an existing dashboard. /// If you update a dashboard, the entire contents are replaced with what you specify /// here. /// /// /// <para> /// All dashboards in your account are global, not region-specific. /// </para> /// /// <para> /// A simple way to create a dashboard using <code>PutDashboard</code> is to copy an existing /// dashboard. To copy an existing dashboard using the console, you can load the dashboard /// and then use the View/edit source command in the Actions menu to display the JSON /// block for that dashboard. Another way to copy a dashboard is to use <code>GetDashboard</code>, /// and then use the data returned within <code>DashboardBody</code> as the template for /// the new dashboard when you call <code>PutDashboard</code>. /// </para> /// /// <para> /// When you create a dashboard with <code>PutDashboard</code>, a good practice is to /// add a text widget at the top of the dashboard with a message that the dashboard was /// created by script and should not be changed in the console. This message could also /// point console users to the location of the <code>DashboardBody</code> script or the /// CloudFormation template used to create the dashboard. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutDashboard service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutDashboard service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.DashboardInvalidInputErrorException"> /// Some part of the dashboard data is invalid. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutDashboard">REST API Reference for PutDashboard Operation</seealso> Task<PutDashboardResponse> PutDashboardAsync(PutDashboardRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutInsightRule /// <summary> /// Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs /// log group, enabling you to find contributor data for the log events in that log group. /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using /// Contributor Insights to Analyze High-Cardinality Data</a>. /// /// /// <para> /// If you create a rule, delete it, and then re-create it with the same name, historical /// data from the first time the rule was created might not be available. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutInsightRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutInsightRule service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The operation exceeded one or more limits. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRule">REST API Reference for PutInsightRule Operation</seealso> Task<PutInsightRuleResponse> PutInsightRuleAsync(PutInsightRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutManagedInsightRules /// <summary> /// Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. /// When you enable a managed rule, you create a Contributor Insights rule that collects /// data from Amazon Web Services services. You cannot edit these rules with <code>PutInsightRule</code>. /// The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, /// <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>. If a previously /// created managed rule is currently disabled, a subsequent call to this API will re-enable /// it. Use <code>ListManagedInsightRules</code> to describe all available rules. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutManagedInsightRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutManagedInsightRules service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules">REST API Reference for PutManagedInsightRules Operation</seealso> Task<PutManagedInsightRulesResponse> PutManagedInsightRulesAsync(PutManagedInsightRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutMetricAlarm /// <summary> /// Creates or updates an alarm and associates it with the specified metric, metric math /// expression, anomaly detection model, or Metrics Insights query. For more information /// about using a Metrics Insights query for an alarm, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Metrics_Insights_Alarm.html">Create /// alarms on Metrics Insights queries</a>. /// /// /// <para> /// Alarms based on anomaly detection models cannot have Auto Scaling actions. /// </para> /// /// <para> /// When this operation creates an alarm, the alarm state is immediately set to <code>INSUFFICIENT_DATA</code>. /// The alarm is then evaluated and its state is set appropriately. Any actions associated /// with the new state are then executed. /// </para> /// /// <para> /// When you update an existing alarm, its state is left unchanged, but the update completely /// overwrites the previous configuration of the alarm. /// </para> /// /// <para> /// If you are an IAM user, you must have Amazon EC2 permissions for some alarm operations: /// </para> /// <ul> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions /// </para> /// </li> <li> /// <para> /// The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm with Systems /// Manager OpsItem or response plan actions. /// </para> /// </li> </ul> /// <para> /// The first time you create an alarm in the Amazon Web Services Management Console, /// the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked /// role for you. The service-linked roles are called <code>AWSServiceRoleForCloudWatchEvents</code> /// and <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>. For more information, /// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon /// Web Services service-linked role</a>. /// </para> /// /// <para> /// Each <code>PutMetricAlarm</code> action has a maximum uncompressed payload of 120 /// KB. /// </para> /// /// <para> /// <b>Cross-account alarms</b> /// </para> /// /// <para> /// You can set an alarm on metrics in the current account, or in another account. To /// create a cross-account alarm that watches a metric in a different account, you must /// have completed the following pre-requisites: /// </para> /// <ul> <li> /// <para> /// The account where the metrics are located (the <i>sharing account</i>) must already /// have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not /// already have this role, you must create it using the instructions in <b>Set up a sharing /// account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. The policy for that role must grant /// access to the ID of the account where you are creating the alarm. /// </para> /// </li> <li> /// <para> /// The account where you are creating the alarm (the <i>monitoring account</i>) must /// already have a service-linked role named <b>AWSServiceRoleForCloudWatchCrossAccount</b> /// to allow CloudWatch to assume the sharing role in the sharing account. If it does /// not, you must create it following the directions in <b>Set up a monitoring account</b> /// in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region"> /// Cross-account cross-Region CloudWatch console</a>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricAlarm service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricAlarm service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.LimitExceededException"> /// The quota for alarms for this customer has already been reached. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm">REST API Reference for PutMetricAlarm Operation</seealso> Task<PutMetricAlarmResponse> PutMetricAlarmAsync(PutMetricAlarmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutMetricData /// <summary> /// Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data /// points with the specified metric. If the specified metric does not exist, CloudWatch /// creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes /// for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>. /// /// /// <para> /// You can publish either individual data points in the <code>Value</code> field, or /// arrays of values and the number of times each value occurred during the period by /// using the <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> /// structure. Using the <code>Values</code> and <code>Counts</code> method enables you /// to publish up to 150 values per metric with one <code>PutMetricData</code> request, /// and supports retrieving percentile statistics on this data. /// </para> /// /// <para> /// Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. /// You can send a payload compressed by gzip. Each request is also limited to no more /// than 1000 different metrics. /// </para> /// /// <para> /// Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// CloudWatch rejects values that are either too small or too large. Values must be in /// the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity, /// -Infinity) are not supported. /// </para> /// /// <para> /// You can use up to 30 dimensions per metric to further clarify what data the metric /// collects. Each dimension consists of a Name and Value pair. For more information about /// specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing /// Metrics</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// /// <para> /// You specify the time stamp to be associated with each data point. You can specify /// time stamps that are as much as two weeks before the current date, and as much as /// 2 hours after the current day and time. /// </para> /// /// <para> /// Data points with time stamps from 24 hours ago or longer can take at least 48 hours /// to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> /// from the time they are submitted. Data points with time stamps between 3 and 24 hours /// ago can take as much as 2 hours to become available for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> /// or <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>. /// </para> /// /// <para> /// CloudWatch needs raw data points to calculate percentile statistics. If you publish /// data using a statistic set instead, you can only retrieve percentile statistics for /// this data if one of the following conditions is true: /// </para> /// <ul> <li> /// <para> /// The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>, /// <code>Max</code>, and <code>Sum</code> are all equal. /// </para> /// </li> <li> /// <para> /// The <code>Min</code> and <code>Max</code> are equal, and <code>Sum</code> is equal /// to <code>Min</code> multiplied by <code>SampleCount</code>. /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricData">REST API Reference for PutMetricData Operation</seealso> Task<PutMetricDataResponse> PutMetricDataAsync(PutMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutMetricStream /// <summary> /// Creates or updates a metric stream. Metric streams can automatically stream CloudWatch /// metrics to Amazon Web Services destinations, including Amazon S3, and to many third-party /// solutions. /// /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html"> /// Using Metric Streams</a>. /// </para> /// /// <para> /// To create a metric stream, you must be signed in to an account that has the <code>iam:PassRole</code> /// permission and either the <code>CloudWatchFullAccess</code> policy or the <code>cloudwatch:PutMetricStream</code> /// permission. /// </para> /// /// <para> /// When you create or update a metric stream, you choose one of the following: /// </para> /// <ul> <li> /// <para> /// Stream metrics from all metric namespaces in the account. /// </para> /// </li> <li> /// <para> /// Stream metrics from all metric namespaces in the account, except for the namespaces /// that you list in <code>ExcludeFilters</code>. /// </para> /// </li> <li> /// <para> /// Stream metrics from only the metric namespaces that you list in <code>IncludeFilters</code>. /// </para> /// </li> </ul> /// <para> /// By default, a metric stream always sends the <code>MAX</code>, <code>MIN</code>, <code>SUM</code>, /// and <code>SAMPLECOUNT</code> statistics for each metric that is streamed. You can /// use the <code>StatisticsConfigurations</code> parameter to have the metric stream /// send additional statistics in the stream. Streaming additional statistics incurs additional /// costs. For more information, see <a href="https://aws.amazon.com/cloudwatch/pricing/">Amazon /// CloudWatch Pricing</a>. /// </para> /// /// <para> /// When you use <code>PutMetricStream</code> to create a new metric stream, the stream /// is created in the <code>running</code> state. If you use it to update an existing /// stream, the state of the stream is not changed. /// </para> /// /// <para> /// If you are using CloudWatch cross-account observability and you create a metric stream /// in a monitoring account, you can choose whether to include metrics from source accounts /// in the stream. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch /// cross-account observability</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricStream service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMetricStream service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters were used together that cannot be used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream">REST API Reference for PutMetricStream Operation</seealso> Task<PutMetricStreamResponse> PutMetricStreamAsync(PutMetricStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetAlarmState /// <summary> /// Temporarily sets the state of an alarm for testing purposes. When the updated state /// differs from the previous value, the action configured for the appropriate state is /// invoked. For example, if your alarm is configured to send an Amazon SNS message when /// an alarm is triggered, temporarily changing the alarm state to <code>ALARM</code> /// sends an SNS message. /// /// /// <para> /// Metric alarms returns to their actual state quickly, often within seconds. Because /// the metric alarm state change happens quickly, it is typically only visible in the /// alarm's <b>History</b> tab in the Amazon CloudWatch console or through <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>. /// </para> /// /// <para> /// If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is /// not guaranteed to return to its actual state. It returns to its actual state only /// once any of its children alarms change state. It is also reevaluated if you update /// its configuration. /// </para> /// /// <para> /// If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, /// you must include information in the <code>StateReasonData</code> parameter to enable /// the policy to take the correct action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the SetAlarmState service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetAlarmState service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InvalidFormatException"> /// Data was not syntactically valid JSON. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SetAlarmState">REST API Reference for SetAlarmState Operation</seealso> Task<SetAlarmStateResponse> SetAlarmStateAsync(SetAlarmStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartMetricStreams /// <summary> /// Starts the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams">REST API Reference for StartMetricStreams Operation</seealso> Task<StartMetricStreamsResponse> StartMetricStreamsAsync(StartMetricStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StopMetricStreams /// <summary> /// Stops the streaming of metrics for one or more of your metric streams. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopMetricStreams service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StopMetricStreams service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is required is missing. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams">REST API Reference for StopMetricStreams Operation</seealso> Task<StopMetricStreamsResponse> StopMetricStreamsAsync(StopMetricStreamsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, /// the only CloudWatch resources that can be tagged are alarms and Contributor Insights /// rules. /// /// /// <para> /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// </para> /// /// <para> /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// </para> /// /// <para> /// You can use the <code>TagResource</code> action with an alarm that already has tags. /// If you specify a new tag key for the alarm, this tag is appended to the list of tags /// associated with the alarm. If you specify a tag key that is already associated with /// the alarm, the new tag value that you specify replaces the previous value for that /// tag. /// </para> /// /// <para> /// You can associate as many as 50 tags with a CloudWatch resource. /// </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 CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Removes one or more tags from the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.ConcurrentModificationException"> /// More than one process tried to modify a resource at the same time. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Request processing has failed due to some unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// The value of an input parameter is bad or out-of-range. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.ResourceNotFoundException"> /// The named resource does not exist. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,853
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.CloudWatch")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon CloudWatch. Amazon CloudWatch is a monitoring service for AWS cloud resources and the applications you run on AWS. You can use Amazon CloudWatch to collect and track metrics, collect and monitor log files, and set alarms.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon CloudWatch. Amazon CloudWatch is a monitoring service for AWS cloud resources and the applications you run on AWS. You can use Amazon CloudWatch to collect and track metrics, collect and monitor log files, and set alarms.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon CloudWatch. Amazon CloudWatch is a monitoring service for AWS cloud resources and the applications you run on AWS. You can use Amazon CloudWatch to collect and track metrics, collect and monitor log files, and set alarms.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon CloudWatch. Amazon CloudWatch is a monitoring service for AWS cloud resources and the applications you run on AWS. You can use Amazon CloudWatch to collect and track metrics, collect and monitor log files, and set alarms.")] #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.104.22")] [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 events-2015-10-07.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.CloudWatchEvents.Internal; namespace Amazon.CloudWatchEvents { /// <summary> /// Configuration for accessing Amazon CloudWatchEvents service /// </summary> [AWSSignerType("v4")] public partial class AmazonCloudWatchEventsConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.100.147"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonCloudWatchEventsConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCloudWatchEventsDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "events"; this.EndpointProvider = new AmazonCloudWatchEventsEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "events"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2015-10-07"; } } /// <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 events-2015-10-07.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.CloudWatchEvents { /// <summary> /// Configuration for accessing Amazon CloudWatchEvents service /// </summary> public static class AmazonCloudWatchEventsDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// CloudWatchEvents /// </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 events-2015-10-07.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.CloudWatchEvents.Endpoints { /// <summary> /// Contains parameters used for resolving CloudWatchEvents endpoints /// Parameters can be sourced from client config and service operations /// Used by internal CloudWatchEventsEndpointProvider and CloudWatchEventsEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class CloudWatchEventsEndpointParameters : EndpointParameters { /// <summary> /// CloudWatchEventsEndpointParameters constructor /// </summary> public CloudWatchEventsEndpointParameters() { 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 events-2015-10-07.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.CloudWatchEvents { ///<summary> /// Common exception for the CloudWatchEvents service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonCloudWatchEventsException : AmazonServiceException { /// <summary> /// Construct instance of AmazonCloudWatchEventsException /// </summary> /// <param name="message"></param> public AmazonCloudWatchEventsException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonCloudWatchEventsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonCloudWatchEventsException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonCloudWatchEventsException /// </summary> /// <param name="innerException"></param> public AmazonCloudWatchEventsException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonCloudWatchEventsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCloudWatchEventsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonCloudWatchEventsException /// </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 AmazonCloudWatchEventsException(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 AmazonCloudWatchEventsException 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 AmazonCloudWatchEventsException(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 events-2015-10-07.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.CloudWatchEvents { /// <summary> /// Constants used for properties of type ApiDestinationHttpMethod. /// </summary> public class ApiDestinationHttpMethod : ConstantClass { /// <summary> /// Constant DELETE for ApiDestinationHttpMethod /// </summary> public static readonly ApiDestinationHttpMethod DELETE = new ApiDestinationHttpMethod("DELETE"); /// <summary> /// Constant GET for ApiDestinationHttpMethod /// </summary> public static readonly ApiDestinationHttpMethod GET = new ApiDestinationHttpMethod("GET"); /// <summary> /// Constant HEAD for ApiDestinationHttpMethod /// </summary> public static readonly ApiDestinationHttpMethod HEAD = new ApiDestinationHttpMethod("HEAD"); /// <summary> /// Constant OPTIONS for ApiDestinationHttpMethod /// </summary> public static readonly ApiDestinationHttpMethod OPTIONS = new ApiDestinationHttpMethod("OPTIONS"); /// <summary> /// Constant PATCH for ApiDestinationHttpMethod /// </summary> public static readonly ApiDestinationHttpMethod PATCH = new ApiDestinationHttpMethod("PATCH"); /// <summary> /// Constant POST for ApiDestinationHttpMethod /// </summary> public static readonly ApiDestinationHttpMethod POST = new ApiDestinationHttpMethod("POST"); /// <summary> /// Constant PUT for ApiDestinationHttpMethod /// </summary> public static readonly ApiDestinationHttpMethod PUT = new ApiDestinationHttpMethod("PUT"); /// <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 ApiDestinationHttpMethod(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 ApiDestinationHttpMethod FindValue(string value) { return FindValue<ApiDestinationHttpMethod>(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 ApiDestinationHttpMethod(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ApiDestinationState. /// </summary> public class ApiDestinationState : ConstantClass { /// <summary> /// Constant ACTIVE for ApiDestinationState /// </summary> public static readonly ApiDestinationState ACTIVE = new ApiDestinationState("ACTIVE"); /// <summary> /// Constant INACTIVE for ApiDestinationState /// </summary> public static readonly ApiDestinationState INACTIVE = new ApiDestinationState("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 ApiDestinationState(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 ApiDestinationState FindValue(string value) { return FindValue<ApiDestinationState>(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 ApiDestinationState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ArchiveState. /// </summary> public class ArchiveState : ConstantClass { /// <summary> /// Constant CREATE_FAILED for ArchiveState /// </summary> public static readonly ArchiveState CREATE_FAILED = new ArchiveState("CREATE_FAILED"); /// <summary> /// Constant CREATING for ArchiveState /// </summary> public static readonly ArchiveState CREATING = new ArchiveState("CREATING"); /// <summary> /// Constant DISABLED for ArchiveState /// </summary> public static readonly ArchiveState DISABLED = new ArchiveState("DISABLED"); /// <summary> /// Constant ENABLED for ArchiveState /// </summary> public static readonly ArchiveState ENABLED = new ArchiveState("ENABLED"); /// <summary> /// Constant UPDATE_FAILED for ArchiveState /// </summary> public static readonly ArchiveState UPDATE_FAILED = new ArchiveState("UPDATE_FAILED"); /// <summary> /// Constant UPDATING for ArchiveState /// </summary> public static readonly ArchiveState UPDATING = new ArchiveState("UPDATING"); /// <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 ArchiveState(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 ArchiveState FindValue(string value) { return FindValue<ArchiveState>(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 ArchiveState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AssignPublicIp. /// </summary> public class AssignPublicIp : ConstantClass { /// <summary> /// Constant DISABLED for AssignPublicIp /// </summary> public static readonly AssignPublicIp DISABLED = new AssignPublicIp("DISABLED"); /// <summary> /// Constant ENABLED for AssignPublicIp /// </summary> public static readonly AssignPublicIp ENABLED = new AssignPublicIp("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 AssignPublicIp(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 AssignPublicIp FindValue(string value) { return FindValue<AssignPublicIp>(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 AssignPublicIp(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ConnectionAuthorizationType. /// </summary> public class ConnectionAuthorizationType : ConstantClass { /// <summary> /// Constant API_KEY for ConnectionAuthorizationType /// </summary> public static readonly ConnectionAuthorizationType API_KEY = new ConnectionAuthorizationType("API_KEY"); /// <summary> /// Constant BASIC for ConnectionAuthorizationType /// </summary> public static readonly ConnectionAuthorizationType BASIC = new ConnectionAuthorizationType("BASIC"); /// <summary> /// Constant OAUTH_CLIENT_CREDENTIALS for ConnectionAuthorizationType /// </summary> public static readonly ConnectionAuthorizationType OAUTH_CLIENT_CREDENTIALS = new ConnectionAuthorizationType("OAUTH_CLIENT_CREDENTIALS"); /// <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 ConnectionAuthorizationType(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 ConnectionAuthorizationType FindValue(string value) { return FindValue<ConnectionAuthorizationType>(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 ConnectionAuthorizationType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ConnectionOAuthHttpMethod. /// </summary> public class ConnectionOAuthHttpMethod : ConstantClass { /// <summary> /// Constant GET for ConnectionOAuthHttpMethod /// </summary> public static readonly ConnectionOAuthHttpMethod GET = new ConnectionOAuthHttpMethod("GET"); /// <summary> /// Constant POST for ConnectionOAuthHttpMethod /// </summary> public static readonly ConnectionOAuthHttpMethod POST = new ConnectionOAuthHttpMethod("POST"); /// <summary> /// Constant PUT for ConnectionOAuthHttpMethod /// </summary> public static readonly ConnectionOAuthHttpMethod PUT = new ConnectionOAuthHttpMethod("PUT"); /// <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 ConnectionOAuthHttpMethod(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 ConnectionOAuthHttpMethod FindValue(string value) { return FindValue<ConnectionOAuthHttpMethod>(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 ConnectionOAuthHttpMethod(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ConnectionState. /// </summary> public class ConnectionState : ConstantClass { /// <summary> /// Constant AUTHORIZED for ConnectionState /// </summary> public static readonly ConnectionState AUTHORIZED = new ConnectionState("AUTHORIZED"); /// <summary> /// Constant AUTHORIZING for ConnectionState /// </summary> public static readonly ConnectionState AUTHORIZING = new ConnectionState("AUTHORIZING"); /// <summary> /// Constant CREATING for ConnectionState /// </summary> public static readonly ConnectionState CREATING = new ConnectionState("CREATING"); /// <summary> /// Constant DEAUTHORIZED for ConnectionState /// </summary> public static readonly ConnectionState DEAUTHORIZED = new ConnectionState("DEAUTHORIZED"); /// <summary> /// Constant DEAUTHORIZING for ConnectionState /// </summary> public static readonly ConnectionState DEAUTHORIZING = new ConnectionState("DEAUTHORIZING"); /// <summary> /// Constant DELETING for ConnectionState /// </summary> public static readonly ConnectionState DELETING = new ConnectionState("DELETING"); /// <summary> /// Constant UPDATING for ConnectionState /// </summary> public static readonly ConnectionState UPDATING = new ConnectionState("UPDATING"); /// <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 ConnectionState(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 ConnectionState FindValue(string value) { return FindValue<ConnectionState>(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 ConnectionState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EventSourceState. /// </summary> public class EventSourceState : ConstantClass { /// <summary> /// Constant ACTIVE for EventSourceState /// </summary> public static readonly EventSourceState ACTIVE = new EventSourceState("ACTIVE"); /// <summary> /// Constant DELETED for EventSourceState /// </summary> public static readonly EventSourceState DELETED = new EventSourceState("DELETED"); /// <summary> /// Constant PENDING for EventSourceState /// </summary> public static readonly EventSourceState PENDING = new EventSourceState("PENDING"); /// <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 EventSourceState(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 EventSourceState FindValue(string value) { return FindValue<EventSourceState>(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 EventSourceState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type LaunchType. /// </summary> public class LaunchType : ConstantClass { /// <summary> /// Constant EC2 for LaunchType /// </summary> public static readonly LaunchType EC2 = new LaunchType("EC2"); /// <summary> /// Constant EXTERNAL for LaunchType /// </summary> public static readonly LaunchType EXTERNAL = new LaunchType("EXTERNAL"); /// <summary> /// Constant FARGATE for LaunchType /// </summary> public static readonly LaunchType FARGATE = new LaunchType("FARGATE"); /// <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 LaunchType(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 LaunchType FindValue(string value) { return FindValue<LaunchType>(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 LaunchType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PlacementConstraintType. /// </summary> public class PlacementConstraintType : ConstantClass { /// <summary> /// Constant DistinctInstance for PlacementConstraintType /// </summary> public static readonly PlacementConstraintType DistinctInstance = new PlacementConstraintType("distinctInstance"); /// <summary> /// Constant MemberOf for PlacementConstraintType /// </summary> public static readonly PlacementConstraintType MemberOf = new PlacementConstraintType("memberOf"); /// <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 PlacementConstraintType(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 PlacementConstraintType FindValue(string value) { return FindValue<PlacementConstraintType>(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 PlacementConstraintType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PlacementStrategyType. /// </summary> public class PlacementStrategyType : ConstantClass { /// <summary> /// Constant Binpack for PlacementStrategyType /// </summary> public static readonly PlacementStrategyType Binpack = new PlacementStrategyType("binpack"); /// <summary> /// Constant Random for PlacementStrategyType /// </summary> public static readonly PlacementStrategyType Random = new PlacementStrategyType("random"); /// <summary> /// Constant Spread for PlacementStrategyType /// </summary> public static readonly PlacementStrategyType Spread = new PlacementStrategyType("spread"); /// <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 PlacementStrategyType(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 PlacementStrategyType FindValue(string value) { return FindValue<PlacementStrategyType>(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 PlacementStrategyType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PropagateTags. /// </summary> public class PropagateTags : ConstantClass { /// <summary> /// Constant TASK_DEFINITION for PropagateTags /// </summary> public static readonly PropagateTags TASK_DEFINITION = new PropagateTags("TASK_DEFINITION"); /// <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 PropagateTags(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 PropagateTags FindValue(string value) { return FindValue<PropagateTags>(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 PropagateTags(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ReplayState. /// </summary> public class ReplayState : ConstantClass { /// <summary> /// Constant CANCELLED for ReplayState /// </summary> public static readonly ReplayState CANCELLED = new ReplayState("CANCELLED"); /// <summary> /// Constant CANCELLING for ReplayState /// </summary> public static readonly ReplayState CANCELLING = new ReplayState("CANCELLING"); /// <summary> /// Constant COMPLETED for ReplayState /// </summary> public static readonly ReplayState COMPLETED = new ReplayState("COMPLETED"); /// <summary> /// Constant FAILED for ReplayState /// </summary> public static readonly ReplayState FAILED = new ReplayState("FAILED"); /// <summary> /// Constant RUNNING for ReplayState /// </summary> public static readonly ReplayState RUNNING = new ReplayState("RUNNING"); /// <summary> /// Constant STARTING for ReplayState /// </summary> public static readonly ReplayState STARTING = new ReplayState("STARTING"); /// <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 ReplayState(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 ReplayState FindValue(string value) { return FindValue<ReplayState>(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 ReplayState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RuleState. /// </summary> public class RuleState : ConstantClass { /// <summary> /// Constant DISABLED for RuleState /// </summary> public static readonly RuleState DISABLED = new RuleState("DISABLED"); /// <summary> /// Constant ENABLED for RuleState /// </summary> public static readonly RuleState ENABLED = new RuleState("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 RuleState(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 RuleState FindValue(string value) { return FindValue<RuleState>(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 RuleState(string value) { return FindValue(value); } } }
814
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Internal { /// <summary> /// Amazon CloudWatchEvents endpoint provider. /// Resolves endpoint for given set of CloudWatchEventsEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonCloudWatchEventsEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for CloudWatchEventsEndpointParameters /// </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://events-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"))) { if (Equals(refs["Region"], "us-gov-west-1")) { return new Endpoint("https://events.us-gov-west-1.amazonaws.com", InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (Equals(refs["Region"], "us-gov-east-1")) { return new Endpoint("https://events.us-gov-east-1.amazonaws.com", InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://events-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://events.{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://events.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
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 events-2015-10-07.normal.json service model. */ using System; using Amazon.CloudWatchEvents.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.CloudWatchEvents.Endpoints; #pragma warning disable 1591 namespace Amazon.CloudWatchEvents.Internal { /// <summary> /// Amazon CloudWatchEvents endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CloudWatchEvents service requests. /// Collects values for CloudWatchEventsEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CloudWatchEventsEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonCloudWatchEventsEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonCloudWatchEventsConfig)requestContext.ClientConfig; var result = new CloudWatchEventsEndpointParameters(); 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 events-2015-10-07.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.CloudWatchEvents.Internal { /// <summary> /// Service metadata for Amazon CloudWatchEvents service /// </summary> public partial class AmazonCloudWatchEventsMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "CloudWatch Events"; } } /// <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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the ActivateEventSource operation. /// Activates a partner event source that has been deactivated. Once activated, your matching /// event bus will start receiving events from the event source. /// </summary> public partial class ActivateEventSourceRequest : AmazonCloudWatchEventsRequest { private string _name; /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the partner event source to activate. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the ActivateEventSource operation. /// </summary> public partial class ActivateEventSourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudWatchEvents { /// <summary> /// Base class for CloudWatchEvents operation requests. /// </summary> public partial class AmazonCloudWatchEventsRequest : 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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains details about an API destination. /// </summary> public partial class ApiDestination { private string _apiDestinationArn; private ApiDestinationState _apiDestinationState; private string _connectionArn; private DateTime? _creationTime; private ApiDestinationHttpMethod _httpMethod; private string _invocationEndpoint; private int? _invocationRateLimitPerSecond; private DateTime? _lastModifiedTime; private string _name; /// <summary> /// Gets and sets the property ApiDestinationArn. /// <para> /// The ARN of the API destination. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string ApiDestinationArn { get { return this._apiDestinationArn; } set { this._apiDestinationArn = value; } } // Check to see if ApiDestinationArn property is set internal bool IsSetApiDestinationArn() { return this._apiDestinationArn != null; } /// <summary> /// Gets and sets the property ApiDestinationState. /// <para> /// The state of the API destination. /// </para> /// </summary> public ApiDestinationState ApiDestinationState { get { return this._apiDestinationState; } set { this._apiDestinationState = value; } } // Check to see if ApiDestinationState property is set internal bool IsSetApiDestinationState() { return this._apiDestinationState != null; } /// <summary> /// Gets and sets the property ConnectionArn. /// <para> /// The ARN of the connection specified for the API destination. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string ConnectionArn { get { return this._connectionArn; } set { this._connectionArn = value; } } // Check to see if ConnectionArn property is set internal bool IsSetConnectionArn() { return this._connectionArn != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// A time stamp for the time that the API destination was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// The method to use to connect to the HTTP endpoint. /// </para> /// </summary> public ApiDestinationHttpMethod HttpMethod { get { return this._httpMethod; } set { this._httpMethod = value; } } // Check to see if HttpMethod property is set internal bool IsSetHttpMethod() { return this._httpMethod != null; } /// <summary> /// Gets and sets the property InvocationEndpoint. /// <para> /// The URL to the endpoint for the API destination. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string InvocationEndpoint { get { return this._invocationEndpoint; } set { this._invocationEndpoint = value; } } // Check to see if InvocationEndpoint property is set internal bool IsSetInvocationEndpoint() { return this._invocationEndpoint != null; } /// <summary> /// Gets and sets the property InvocationRateLimitPerSecond. /// <para> /// The maximum number of invocations per second to send to the HTTP endpoint. /// </para> /// </summary> [AWSProperty(Min=1)] public int InvocationRateLimitPerSecond { get { return this._invocationRateLimitPerSecond.GetValueOrDefault(); } set { this._invocationRateLimitPerSecond = value; } } // Check to see if InvocationRateLimitPerSecond property is set internal bool IsSetInvocationRateLimitPerSecond() { return this._invocationRateLimitPerSecond.HasValue; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// A time stamp for the time that the API destination was last modified. /// </para> /// </summary> public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the API destination. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
214
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// An <code>Archive</code> object that contains details about an archive. /// </summary> public partial class Archive { private string _archiveName; private DateTime? _creationTime; private long? _eventCount; private string _eventSourceArn; private int? _retentionDays; private long? _sizeBytes; private ArchiveState _state; private string _stateReason; /// <summary> /// Gets and sets the property ArchiveName. /// <para> /// The name of the archive. /// </para> /// </summary> [AWSProperty(Min=1, Max=48)] public string ArchiveName { get { return this._archiveName; } set { this._archiveName = value; } } // Check to see if ArchiveName property is set internal bool IsSetArchiveName() { return this._archiveName != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// The time stamp for the time that the archive was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property EventCount. /// <para> /// The number of events in the archive. /// </para> /// </summary> public long EventCount { get { return this._eventCount.GetValueOrDefault(); } set { this._eventCount = value; } } // Check to see if EventCount property is set internal bool IsSetEventCount() { return this._eventCount.HasValue; } /// <summary> /// Gets and sets the property EventSourceArn. /// <para> /// The ARN of the event bus associated with the archive. Only events from this event /// bus are sent to the archive. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string EventSourceArn { get { return this._eventSourceArn; } set { this._eventSourceArn = value; } } // Check to see if EventSourceArn property is set internal bool IsSetEventSourceArn() { return this._eventSourceArn != null; } /// <summary> /// Gets and sets the property RetentionDays. /// <para> /// The number of days to retain events in the archive before they are deleted. /// </para> /// </summary> [AWSProperty(Min=0)] public int RetentionDays { get { return this._retentionDays.GetValueOrDefault(); } set { this._retentionDays = value; } } // Check to see if RetentionDays property is set internal bool IsSetRetentionDays() { return this._retentionDays.HasValue; } /// <summary> /// Gets and sets the property SizeBytes. /// <para> /// The size of the archive, in bytes. /// </para> /// </summary> public long SizeBytes { get { return this._sizeBytes.GetValueOrDefault(); } set { this._sizeBytes = value; } } // Check to see if SizeBytes property is set internal bool IsSetSizeBytes() { return this._sizeBytes.HasValue; } /// <summary> /// Gets and sets the property State. /// <para> /// The current state of the archive. /// </para> /// </summary> public ArchiveState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// <summary> /// Gets and sets the property StateReason. /// <para> /// A description for the reason that the archive is in the current state. /// </para> /// </summary> [AWSProperty(Max=512)] public string StateReason { get { return this._stateReason; } set { this._stateReason = value; } } // Check to see if StateReason property is set internal bool IsSetStateReason() { return this._stateReason != null; } } }
195
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This structure specifies the VPC subnets and security groups for the task, and whether /// a public IP address is to be used. This structure is relevant only for ECS tasks that /// use the <code>awsvpc</code> network mode. /// </summary> public partial class AwsVpcConfiguration { private AssignPublicIp _assignPublicIp; private List<string> _securityGroups = new List<string>(); private List<string> _subnets = new List<string>(); /// <summary> /// Gets and sets the property AssignPublicIp. /// <para> /// Specifies whether the task's elastic network interface receives a public IP address. /// You can specify <code>ENABLED</code> only when <code>LaunchType</code> in <code>EcsParameters</code> /// is set to <code>FARGATE</code>. /// </para> /// </summary> public AssignPublicIp AssignPublicIp { get { return this._assignPublicIp; } set { this._assignPublicIp = value; } } // Check to see if AssignPublicIp property is set internal bool IsSetAssignPublicIp() { return this._assignPublicIp != null; } /// <summary> /// Gets and sets the property SecurityGroups. /// <para> /// Specifies the security groups associated with the task. These security groups must /// all be in the same VPC. You can specify as many as five security groups. If you do /// not specify a security group, the default security group for the VPC is used. /// </para> /// </summary> public List<string> SecurityGroups { get { return this._securityGroups; } set { this._securityGroups = value; } } // Check to see if SecurityGroups property is set internal bool IsSetSecurityGroups() { return this._securityGroups != null && this._securityGroups.Count > 0; } /// <summary> /// Gets and sets the property Subnets. /// <para> /// Specifies the subnets associated with the task. These subnets must all be in the same /// VPC. You can specify as many as 16 subnets. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> Subnets { get { return this._subnets; } set { this._subnets = value; } } // Check to see if Subnets property is set internal bool IsSetSubnets() { return this._subnets != null && this._subnets.Count > 0; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// The array properties for the submitted job, such as the size of the array. The array /// size can be between 2 and 10,000. If you specify array properties for a job, it becomes /// an array job. This parameter is used only if the target is an Batch job. /// </summary> public partial class BatchArrayProperties { private int? _size; /// <summary> /// Gets and sets the property Size. /// <para> /// The size of the array, if this is an array batch job. Valid values are integers between /// 2 and 10,000. /// </para> /// </summary> public int Size { get { return this._size.GetValueOrDefault(); } set { this._size = value; } } // Check to see if Size property is set internal bool IsSetSize() { return this._size.HasValue; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// The custom parameters to be used when the target is an Batch job. /// </summary> public partial class BatchParameters { private BatchArrayProperties _arrayProperties; private string _jobDefinition; private string _jobName; private BatchRetryStrategy _retryStrategy; /// <summary> /// Gets and sets the property ArrayProperties. /// <para> /// The array properties for the submitted job, such as the size of the array. The array /// size can be between 2 and 10,000. If you specify array properties for a job, it becomes /// an array job. This parameter is used only if the target is an Batch job. /// </para> /// </summary> public BatchArrayProperties ArrayProperties { get { return this._arrayProperties; } set { this._arrayProperties = value; } } // Check to see if ArrayProperties property is set internal bool IsSetArrayProperties() { return this._arrayProperties != null; } /// <summary> /// Gets and sets the property JobDefinition. /// <para> /// The ARN or name of the job definition to use if the event target is an Batch job. /// This job definition must already exist. /// </para> /// </summary> [AWSProperty(Required=true)] public string JobDefinition { get { return this._jobDefinition; } set { this._jobDefinition = value; } } // Check to see if JobDefinition property is set internal bool IsSetJobDefinition() { return this._jobDefinition != null; } /// <summary> /// Gets and sets the property JobName. /// <para> /// The name to use for this execution of the job, if the target is an Batch job. /// </para> /// </summary> [AWSProperty(Required=true)] public string JobName { get { return this._jobName; } set { this._jobName = value; } } // Check to see if JobName property is set internal bool IsSetJobName() { return this._jobName != null; } /// <summary> /// Gets and sets the property RetryStrategy. /// <para> /// The retry strategy to use for failed jobs, if the target is an Batch job. The retry /// strategy is the number of times to retry the failed job execution. Valid values are /// 1–10. When you specify a retry strategy here, it overrides the retry strategy defined /// in the job definition. /// </para> /// </summary> public BatchRetryStrategy RetryStrategy { get { return this._retryStrategy; } set { this._retryStrategy = value; } } // Check to see if RetryStrategy property is set internal bool IsSetRetryStrategy() { return this._retryStrategy != 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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// The retry strategy to use for failed jobs, if the target is an Batch job. If you specify /// a retry strategy here, it overrides the retry strategy defined in the job definition. /// </summary> public partial class BatchRetryStrategy { private int? _attempts; /// <summary> /// Gets and sets the property Attempts. /// <para> /// The number of times to attempt to retry, if the job fails. Valid values are 1–10. /// </para> /// </summary> public int Attempts { get { return this._attempts.GetValueOrDefault(); } set { this._attempts = value; } } // Check to see if Attempts property is set internal bool IsSetAttempts() { return this._attempts.HasValue; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the CancelReplay operation. /// Cancels the specified replay. /// </summary> public partial class CancelReplayRequest : AmazonCloudWatchEventsRequest { private string _replayName; /// <summary> /// Gets and sets the property ReplayName. /// <para> /// The name of the replay to cancel. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string ReplayName { get { return this._replayName; } set { this._replayName = value; } } // Check to see if ReplayName property is set internal bool IsSetReplayName() { return this._replayName != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the CancelReplay operation. /// </summary> public partial class CancelReplayResponse : AmazonWebServiceResponse { private string _replayArn; private ReplayState _state; private string _stateReason; /// <summary> /// Gets and sets the property ReplayArn. /// <para> /// The ARN of the replay to cancel. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string ReplayArn { get { return this._replayArn; } set { this._replayArn = value; } } // Check to see if ReplayArn property is set internal bool IsSetReplayArn() { return this._replayArn != null; } /// <summary> /// Gets and sets the property State. /// <para> /// The current state of the replay. /// </para> /// </summary> public ReplayState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// <summary> /// Gets and sets the property StateReason. /// <para> /// The reason that the replay is in the current state. /// </para> /// </summary> [AWSProperty(Max=512)] public string StateReason { get { return this._stateReason; } set { this._stateReason = value; } } // Check to see if StateReason property is set internal bool IsSetStateReason() { return this._stateReason != null; } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// The details of a capacity provider strategy. To learn more, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CapacityProviderStrategyItem.html">CapacityProviderStrategyItem</a> /// in the Amazon ECS API Reference. /// </summary> public partial class CapacityProviderStrategyItem { private int? _base; private string _capacityProvider; private int? _weight; /// <summary> /// Gets and sets the property Base. /// <para> /// The base value designates how many tasks, at a minimum, to run on the specified capacity /// provider. Only one capacity provider in a capacity provider strategy can have a base /// defined. If no value is specified, the default value of 0 is used. /// </para> /// </summary> [AWSProperty(Min=0, Max=100000)] public int Base { get { return this._base.GetValueOrDefault(); } set { this._base = value; } } // Check to see if Base property is set internal bool IsSetBase() { return this._base.HasValue; } /// <summary> /// Gets and sets the property CapacityProvider. /// <para> /// The short name of the capacity provider. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=255)] public string CapacityProvider { get { return this._capacityProvider; } set { this._capacityProvider = value; } } // Check to see if CapacityProvider property is set internal bool IsSetCapacityProvider() { return this._capacityProvider != null; } /// <summary> /// Gets and sets the property Weight. /// <para> /// The weight value designates the relative percentage of the total number of tasks launched /// that should use the specified capacity provider. The weight value is taken into consideration /// after the base value, if defined, is satisfied. /// </para> /// </summary> [AWSProperty(Min=0, Max=1000)] public int Weight { get { return this._weight.GetValueOrDefault(); } set { this._weight = value; } } // Check to see if Weight property is set internal bool IsSetWeight() { return this._weight.HasValue; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// There is concurrent modification on a rule, target, archive, or replay. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConcurrentModificationException : AmazonCloudWatchEventsException { /// <summary> /// Constructs a new ConcurrentModificationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConcurrentModificationException(string message) : base(message) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConcurrentModificationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="innerException"></param> public ConcurrentModificationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </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 ConcurrentModificationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConcurrentModificationException(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 ConcurrentModificationException 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 ConcurrentModificationException(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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// A JSON string which you can use to limit the event bus permissions you are granting /// to only accounts that fulfill the condition. Currently, the only supported condition /// is membership in a certain Amazon Web Services organization. The string must contain /// <code>Type</code>, <code>Key</code>, and <code>Value</code> fields. The <code>Value</code> /// field specifies the ID of the Amazon Web Services organization. Following is an example /// value for <code>Condition</code>: /// /// /// <para> /// <code>'{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'</code> /// /// </para> /// </summary> public partial class Condition { private string _key; private string _type; private string _value; /// <summary> /// Gets and sets the property Key. /// <para> /// Specifies the key for the condition. Currently the only supported key is <code>aws:PrincipalOrgID</code>. /// </para> /// </summary> [AWSProperty(Required=true)] 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 Type. /// <para> /// Specifies the type of condition. Currently the only supported value is <code>StringEquals</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// Specifies the value for the key. Currently, this must be the ID of the organization. /// </para> /// </summary> [AWSProperty(Required=true)] 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; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains information about a connection. /// </summary> public partial class Connection { private ConnectionAuthorizationType _authorizationType; private string _connectionArn; private ConnectionState _connectionState; private DateTime? _creationTime; private DateTime? _lastAuthorizedTime; private DateTime? _lastModifiedTime; private string _name; private string _stateReason; /// <summary> /// Gets and sets the property AuthorizationType. /// <para> /// The authorization type specified for the connection. /// </para> /// </summary> public ConnectionAuthorizationType AuthorizationType { get { return this._authorizationType; } set { this._authorizationType = value; } } // Check to see if AuthorizationType property is set internal bool IsSetAuthorizationType() { return this._authorizationType != null; } /// <summary> /// Gets and sets the property ConnectionArn. /// <para> /// The ARN of the connection. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string ConnectionArn { get { return this._connectionArn; } set { this._connectionArn = value; } } // Check to see if ConnectionArn property is set internal bool IsSetConnectionArn() { return this._connectionArn != null; } /// <summary> /// Gets and sets the property ConnectionState. /// <para> /// The state of the connection. /// </para> /// </summary> public ConnectionState ConnectionState { get { return this._connectionState; } set { this._connectionState = value; } } // Check to see if ConnectionState property is set internal bool IsSetConnectionState() { return this._connectionState != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// A time stamp for the time that the connection was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property LastAuthorizedTime. /// <para> /// A time stamp for the time that the connection was last authorized. /// </para> /// </summary> public DateTime LastAuthorizedTime { get { return this._lastAuthorizedTime.GetValueOrDefault(); } set { this._lastAuthorizedTime = value; } } // Check to see if LastAuthorizedTime property is set internal bool IsSetLastAuthorizedTime() { return this._lastAuthorizedTime.HasValue; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// A time stamp for the time that the connection was last modified. /// </para> /// </summary> public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the connection. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property StateReason. /// <para> /// The reason that the connection is in the connection state. /// </para> /// </summary> [AWSProperty(Max=512)] public string StateReason { get { return this._stateReason; } set { this._stateReason = value; } } // Check to see if StateReason property is set internal bool IsSetStateReason() { return this._stateReason != null; } } }
193
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the authorization parameters for the connection if API Key is specified as /// the authorization type. /// </summary> public partial class ConnectionApiKeyAuthResponseParameters { private string _apiKeyName; /// <summary> /// Gets and sets the property ApiKeyName. /// <para> /// The name of the header to use for the <code>APIKeyValue</code> used for authorization. /// </para> /// </summary> [AWSProperty(Min=1, Max=512)] public string ApiKeyName { get { return this._apiKeyName; } set { this._apiKeyName = value; } } // Check to see if ApiKeyName property is set internal bool IsSetApiKeyName() { return this._apiKeyName != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the authorization parameters to use for the connection. /// </summary> public partial class ConnectionAuthResponseParameters { private ConnectionApiKeyAuthResponseParameters _apiKeyAuthParameters; private ConnectionBasicAuthResponseParameters _basicAuthParameters; private ConnectionHttpParameters _invocationHttpParameters; private ConnectionOAuthResponseParameters _oAuthParameters; /// <summary> /// Gets and sets the property ApiKeyAuthParameters. /// <para> /// The API Key parameters to use for authorization. /// </para> /// </summary> public ConnectionApiKeyAuthResponseParameters ApiKeyAuthParameters { get { return this._apiKeyAuthParameters; } set { this._apiKeyAuthParameters = value; } } // Check to see if ApiKeyAuthParameters property is set internal bool IsSetApiKeyAuthParameters() { return this._apiKeyAuthParameters != null; } /// <summary> /// Gets and sets the property BasicAuthParameters. /// <para> /// The authorization parameters for Basic authorization. /// </para> /// </summary> public ConnectionBasicAuthResponseParameters BasicAuthParameters { get { return this._basicAuthParameters; } set { this._basicAuthParameters = value; } } // Check to see if BasicAuthParameters property is set internal bool IsSetBasicAuthParameters() { return this._basicAuthParameters != null; } /// <summary> /// Gets and sets the property InvocationHttpParameters. /// <para> /// Additional parameters for the connection that are passed through with every invocation /// to the HTTP endpoint. /// </para> /// </summary> public ConnectionHttpParameters InvocationHttpParameters { get { return this._invocationHttpParameters; } set { this._invocationHttpParameters = value; } } // Check to see if InvocationHttpParameters property is set internal bool IsSetInvocationHttpParameters() { return this._invocationHttpParameters != null; } /// <summary> /// Gets and sets the property OAuthParameters. /// <para> /// The OAuth parameters to use for authorization. /// </para> /// </summary> public ConnectionOAuthResponseParameters OAuthParameters { get { return this._oAuthParameters; } set { this._oAuthParameters = value; } } // Check to see if OAuthParameters property is set internal bool IsSetOAuthParameters() { return this._oAuthParameters != null; } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the authorization parameters for the connection if Basic is specified as /// the authorization type. /// </summary> public partial class ConnectionBasicAuthResponseParameters { private string _username; /// <summary> /// Gets and sets the property Username. /// <para> /// The user name to use for Basic authorization. /// </para> /// </summary> [AWSProperty(Min=1, Max=512)] public string Username { get { return this._username; } set { this._username = value; } } // Check to see if Username property is set internal bool IsSetUsername() { return this._username != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Additional parameter included in the body. You can include up to 100 additional body /// parameters per request. An event payload cannot exceed 64 KB. /// </summary> public partial class ConnectionBodyParameter { private bool? _isValueSecret; private string _key; private string _value; /// <summary> /// Gets and sets the property IsValueSecret. /// <para> /// Specified whether the value is secret. /// </para> /// </summary> public bool IsValueSecret { get { return this._isValueSecret.GetValueOrDefault(); } set { this._isValueSecret = value; } } // Check to see if IsValueSecret property is set internal bool IsSetIsValueSecret() { return this._isValueSecret.HasValue; } /// <summary> /// Gets and sets the property Key. /// <para> /// The key for the parameter. /// </para> /// </summary> 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 associated with the key. /// </para> /// </summary> public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Additional parameter included in the header. You can include up to 100 additional /// header parameters per request. An event payload cannot exceed 64 KB. /// </summary> public partial class ConnectionHeaderParameter { private bool? _isValueSecret; private string _key; private string _value; /// <summary> /// Gets and sets the property IsValueSecret. /// <para> /// Specified whether the value is a secret. /// </para> /// </summary> public bool IsValueSecret { get { return this._isValueSecret.GetValueOrDefault(); } set { this._isValueSecret = value; } } // Check to see if IsValueSecret property is set internal bool IsSetIsValueSecret() { return this._isValueSecret.HasValue; } /// <summary> /// Gets and sets the property Key. /// <para> /// The key for the parameter. /// </para> /// </summary> [AWSProperty(Max=512)] 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 associated with the key. /// </para> /// </summary> [AWSProperty(Max=512)] 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; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains additional parameters for the connection. /// </summary> public partial class ConnectionHttpParameters { private List<ConnectionBodyParameter> _bodyParameters = new List<ConnectionBodyParameter>(); private List<ConnectionHeaderParameter> _headerParameters = new List<ConnectionHeaderParameter>(); private List<ConnectionQueryStringParameter> _queryStringParameters = new List<ConnectionQueryStringParameter>(); /// <summary> /// Gets and sets the property BodyParameters. /// <para> /// Contains additional body string parameters for the connection. /// </para> /// </summary> [AWSProperty(Min=0, Max=100)] public List<ConnectionBodyParameter> BodyParameters { get { return this._bodyParameters; } set { this._bodyParameters = value; } } // Check to see if BodyParameters property is set internal bool IsSetBodyParameters() { return this._bodyParameters != null && this._bodyParameters.Count > 0; } /// <summary> /// Gets and sets the property HeaderParameters. /// <para> /// Contains additional header parameters for the connection. /// </para> /// </summary> [AWSProperty(Min=0, Max=100)] public List<ConnectionHeaderParameter> HeaderParameters { get { return this._headerParameters; } set { this._headerParameters = value; } } // Check to see if HeaderParameters property is set internal bool IsSetHeaderParameters() { return this._headerParameters != null && this._headerParameters.Count > 0; } /// <summary> /// Gets and sets the property QueryStringParameters. /// <para> /// Contains additional query string parameters for the connection. /// </para> /// </summary> [AWSProperty(Min=0, Max=100)] public List<ConnectionQueryStringParameter> QueryStringParameters { get { return this._queryStringParameters; } set { this._queryStringParameters = value; } } // Check to see if QueryStringParameters property is set internal bool IsSetQueryStringParameters() { return this._queryStringParameters != null && this._queryStringParameters.Count > 0; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the client response parameters for the connection when OAuth is specified /// as the authorization type. /// </summary> public partial class ConnectionOAuthClientResponseParameters { private string _clientID; /// <summary> /// Gets and sets the property ClientID. /// <para> /// The client ID associated with the response to the connection request. /// </para> /// </summary> [AWSProperty(Min=1, Max=512)] public string ClientID { get { return this._clientID; } set { this._clientID = value; } } // Check to see if ClientID property is set internal bool IsSetClientID() { return this._clientID != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the response parameters when OAuth is specified as the authorization type. /// </summary> public partial class ConnectionOAuthResponseParameters { private string _authorizationEndpoint; private ConnectionOAuthClientResponseParameters _clientParameters; private ConnectionOAuthHttpMethod _httpMethod; private ConnectionHttpParameters _oAuthHttpParameters; /// <summary> /// Gets and sets the property AuthorizationEndpoint. /// <para> /// The URL to the HTTP endpoint that authorized the request. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string AuthorizationEndpoint { get { return this._authorizationEndpoint; } set { this._authorizationEndpoint = value; } } // Check to see if AuthorizationEndpoint property is set internal bool IsSetAuthorizationEndpoint() { return this._authorizationEndpoint != null; } /// <summary> /// Gets and sets the property ClientParameters. /// <para> /// A <code>ConnectionOAuthClientResponseParameters</code> object that contains details /// about the client parameters returned when OAuth is specified as the authorization /// type. /// </para> /// </summary> public ConnectionOAuthClientResponseParameters ClientParameters { get { return this._clientParameters; } set { this._clientParameters = value; } } // Check to see if ClientParameters property is set internal bool IsSetClientParameters() { return this._clientParameters != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// The method used to connect to the HTTP endpoint. /// </para> /// </summary> public ConnectionOAuthHttpMethod HttpMethod { get { return this._httpMethod; } set { this._httpMethod = value; } } // Check to see if HttpMethod property is set internal bool IsSetHttpMethod() { return this._httpMethod != null; } /// <summary> /// Gets and sets the property OAuthHttpParameters. /// <para> /// The additional HTTP parameters used for the OAuth authorization request. /// </para> /// </summary> public ConnectionHttpParameters OAuthHttpParameters { get { return this._oAuthHttpParameters; } set { this._oAuthHttpParameters = value; } } // Check to see if OAuthHttpParameters property is set internal bool IsSetOAuthHttpParameters() { return this._oAuthHttpParameters != null; } } }
117
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Additional query string parameter for the connection. You can include up to 100 additional /// query string parameters per request. Each additional parameter counts towards the /// event payload size, which cannot exceed 64 KB. /// </summary> public partial class ConnectionQueryStringParameter { private bool? _isValueSecret; private string _key; private string _value; /// <summary> /// Gets and sets the property IsValueSecret. /// <para> /// Specifies whether the value is secret. /// </para> /// </summary> public bool IsValueSecret { get { return this._isValueSecret.GetValueOrDefault(); } set { this._isValueSecret = value; } } // Check to see if IsValueSecret property is set internal bool IsSetIsValueSecret() { return this._isValueSecret.HasValue; } /// <summary> /// Gets and sets the property Key. /// <para> /// The key for a query string parameter. /// </para> /// </summary> [AWSProperty(Max=512)] 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 associated with the key for the query string parameter. /// </para> /// </summary> [AWSProperty(Max=512)] 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; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the CreateApiDestination operation. /// Creates an API destination, which is an HTTP invocation endpoint configured as a target /// for events. /// </summary> public partial class CreateApiDestinationRequest : AmazonCloudWatchEventsRequest { private string _connectionArn; private string _description; private ApiDestinationHttpMethod _httpMethod; private string _invocationEndpoint; private int? _invocationRateLimitPerSecond; private string _name; /// <summary> /// Gets and sets the property ConnectionArn. /// <para> /// The ARN of the connection to use for the API destination. The destination endpoint /// must support the authorization type specified for the connection. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1600)] public string ConnectionArn { get { return this._connectionArn; } set { this._connectionArn = value; } } // Check to see if ConnectionArn property is set internal bool IsSetConnectionArn() { return this._connectionArn != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// A description for the API destination to create. /// </para> /// </summary> [AWSProperty(Max=512)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// The method to use for the request to the HTTP invocation endpoint. /// </para> /// </summary> [AWSProperty(Required=true)] public ApiDestinationHttpMethod HttpMethod { get { return this._httpMethod; } set { this._httpMethod = value; } } // Check to see if HttpMethod property is set internal bool IsSetHttpMethod() { return this._httpMethod != null; } /// <summary> /// Gets and sets the property InvocationEndpoint. /// <para> /// The URL to the HTTP invocation endpoint for the API destination. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=2048)] public string InvocationEndpoint { get { return this._invocationEndpoint; } set { this._invocationEndpoint = value; } } // Check to see if InvocationEndpoint property is set internal bool IsSetInvocationEndpoint() { return this._invocationEndpoint != null; } /// <summary> /// Gets and sets the property InvocationRateLimitPerSecond. /// <para> /// The maximum number of requests per second to send to the HTTP invocation endpoint. /// </para> /// </summary> [AWSProperty(Min=1)] public int InvocationRateLimitPerSecond { get { return this._invocationRateLimitPerSecond.GetValueOrDefault(); } set { this._invocationRateLimitPerSecond = value; } } // Check to see if InvocationRateLimitPerSecond property is set internal bool IsSetInvocationRateLimitPerSecond() { return this._invocationRateLimitPerSecond.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name for the API destination to create. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
161
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the CreateApiDestination operation. /// </summary> public partial class CreateApiDestinationResponse : AmazonWebServiceResponse { private string _apiDestinationArn; private ApiDestinationState _apiDestinationState; private DateTime? _creationTime; private DateTime? _lastModifiedTime; /// <summary> /// Gets and sets the property ApiDestinationArn. /// <para> /// The ARN of the API destination that was created by the request. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string ApiDestinationArn { get { return this._apiDestinationArn; } set { this._apiDestinationArn = value; } } // Check to see if ApiDestinationArn property is set internal bool IsSetApiDestinationArn() { return this._apiDestinationArn != null; } /// <summary> /// Gets and sets the property ApiDestinationState. /// <para> /// The state of the API destination that was created by the request. /// </para> /// </summary> public ApiDestinationState ApiDestinationState { get { return this._apiDestinationState; } set { this._apiDestinationState = value; } } // Check to see if ApiDestinationState property is set internal bool IsSetApiDestinationState() { return this._apiDestinationState != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// A time stamp indicating the time that the API destination was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// A time stamp indicating the time that the API destination was last modified. /// </para> /// </summary> public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the CreateArchive operation. /// Creates an archive of events with the specified settings. When you create an archive, /// incoming events might not immediately start being sent to the archive. Allow a short /// period of time for changes to take effect. If you do not specify a pattern to filter /// events sent to the archive, all events are sent to the archive except replayed events. /// Replayed events are not sent to an archive. /// </summary> public partial class CreateArchiveRequest : AmazonCloudWatchEventsRequest { private string _archiveName; private string _description; private string _eventPattern; private string _eventSourceArn; private int? _retentionDays; /// <summary> /// Gets and sets the property ArchiveName. /// <para> /// The name for the archive to create. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=48)] public string ArchiveName { get { return this._archiveName; } set { this._archiveName = value; } } // Check to see if ArchiveName property is set internal bool IsSetArchiveName() { return this._archiveName != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// A description for the archive. /// </para> /// </summary> [AWSProperty(Max=512)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property EventPattern. /// <para> /// An event pattern to use to filter events sent to the archive. /// </para> /// </summary> public string EventPattern { get { return this._eventPattern; } set { this._eventPattern = value; } } // Check to see if EventPattern property is set internal bool IsSetEventPattern() { return this._eventPattern != null; } /// <summary> /// Gets and sets the property EventSourceArn. /// <para> /// The ARN of the event bus that sends events to the archive. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1600)] public string EventSourceArn { get { return this._eventSourceArn; } set { this._eventSourceArn = value; } } // Check to see if EventSourceArn property is set internal bool IsSetEventSourceArn() { return this._eventSourceArn != null; } /// <summary> /// Gets and sets the property RetentionDays. /// <para> /// The number of days to retain events for. Default value is 0. If set to 0, events are /// retained indefinitely /// </para> /// </summary> [AWSProperty(Min=0)] public int RetentionDays { get { return this._retentionDays.GetValueOrDefault(); } set { this._retentionDays = value; } } // Check to see if RetentionDays property is set internal bool IsSetRetentionDays() { return this._retentionDays.HasValue; } } }
143
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the CreateArchive operation. /// </summary> public partial class CreateArchiveResponse : AmazonWebServiceResponse { private string _archiveArn; private DateTime? _creationTime; private ArchiveState _state; private string _stateReason; /// <summary> /// Gets and sets the property ArchiveArn. /// <para> /// The ARN of the archive that was created. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string ArchiveArn { get { return this._archiveArn; } set { this._archiveArn = value; } } // Check to see if ArchiveArn property is set internal bool IsSetArchiveArn() { return this._archiveArn != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// The time at which the archive was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property State. /// <para> /// The state of the archive that was created. /// </para> /// </summary> public ArchiveState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// <summary> /// Gets and sets the property StateReason. /// <para> /// The reason that the archive is in the state. /// </para> /// </summary> [AWSProperty(Max=512)] public string StateReason { get { return this._stateReason; } set { this._stateReason = value; } } // Check to see if StateReason property is set internal bool IsSetStateReason() { return this._stateReason != 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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the API key authorization parameters for the connection. /// </summary> public partial class CreateConnectionApiKeyAuthRequestParameters { private string _apiKeyName; private string _apiKeyValue; /// <summary> /// Gets and sets the property ApiKeyName. /// <para> /// The name of the API key to use for authorization. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=512)] public string ApiKeyName { get { return this._apiKeyName; } set { this._apiKeyName = value; } } // Check to see if ApiKeyName property is set internal bool IsSetApiKeyName() { return this._apiKeyName != null; } /// <summary> /// Gets and sets the property ApiKeyValue. /// <para> /// The value for the API key to use for authorization. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=512)] public string ApiKeyValue { get { return this._apiKeyValue; } set { this._apiKeyValue = value; } } // Check to see if ApiKeyValue property is set internal bool IsSetApiKeyValue() { return this._apiKeyValue != null; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the authorization parameters for the connection. /// </summary> public partial class CreateConnectionAuthRequestParameters { private CreateConnectionApiKeyAuthRequestParameters _apiKeyAuthParameters; private CreateConnectionBasicAuthRequestParameters _basicAuthParameters; private ConnectionHttpParameters _invocationHttpParameters; private CreateConnectionOAuthRequestParameters _oAuthParameters; /// <summary> /// Gets and sets the property ApiKeyAuthParameters. /// <para> /// A <code>CreateConnectionApiKeyAuthRequestParameters</code> object that contains the /// API key authorization parameters to use for the connection. /// </para> /// </summary> public CreateConnectionApiKeyAuthRequestParameters ApiKeyAuthParameters { get { return this._apiKeyAuthParameters; } set { this._apiKeyAuthParameters = value; } } // Check to see if ApiKeyAuthParameters property is set internal bool IsSetApiKeyAuthParameters() { return this._apiKeyAuthParameters != null; } /// <summary> /// Gets and sets the property BasicAuthParameters. /// <para> /// A <code>CreateConnectionBasicAuthRequestParameters</code> object that contains the /// Basic authorization parameters to use for the connection. /// </para> /// </summary> public CreateConnectionBasicAuthRequestParameters BasicAuthParameters { get { return this._basicAuthParameters; } set { this._basicAuthParameters = value; } } // Check to see if BasicAuthParameters property is set internal bool IsSetBasicAuthParameters() { return this._basicAuthParameters != null; } /// <summary> /// Gets and sets the property InvocationHttpParameters. /// <para> /// A <code>ConnectionHttpParameters</code> object that contains the API key authorization /// parameters to use for the connection. Note that if you include additional parameters /// for the target of a rule via <code>HttpParameters</code>, including query strings, /// the parameters added for the connection take precedence. /// </para> /// </summary> public ConnectionHttpParameters InvocationHttpParameters { get { return this._invocationHttpParameters; } set { this._invocationHttpParameters = value; } } // Check to see if InvocationHttpParameters property is set internal bool IsSetInvocationHttpParameters() { return this._invocationHttpParameters != null; } /// <summary> /// Gets and sets the property OAuthParameters. /// <para> /// A <code>CreateConnectionOAuthRequestParameters</code> object that contains the OAuth /// authorization parameters to use for the connection. /// </para> /// </summary> public CreateConnectionOAuthRequestParameters OAuthParameters { get { return this._oAuthParameters; } set { this._oAuthParameters = value; } } // Check to see if OAuthParameters property is set internal bool IsSetOAuthParameters() { return this._oAuthParameters != null; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the Basic authorization parameters to use for the connection. /// </summary> public partial class CreateConnectionBasicAuthRequestParameters { private string _password; private string _username; /// <summary> /// Gets and sets the property Password. /// <para> /// The password associated with the user name to use for Basic authorization. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=512)] public string Password { get { return this._password; } set { this._password = value; } } // Check to see if Password property is set internal bool IsSetPassword() { return this._password != null; } /// <summary> /// Gets and sets the property Username. /// <para> /// The user name to use for Basic authorization. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=512)] public string Username { get { return this._username; } set { this._username = value; } } // Check to see if Username property is set internal bool IsSetUsername() { return this._username != null; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the Basic authorization parameters to use for the connection. /// </summary> public partial class CreateConnectionOAuthClientRequestParameters { private string _clientID; private string _clientSecret; /// <summary> /// Gets and sets the property ClientID. /// <para> /// The client ID to use for OAuth authorization for the connection. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=512)] public string ClientID { get { return this._clientID; } set { this._clientID = value; } } // Check to see if ClientID property is set internal bool IsSetClientID() { return this._clientID != null; } /// <summary> /// Gets and sets the property ClientSecret. /// <para> /// The client secret associated with the client ID to use for OAuth authorization for /// the connection. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=512)] public string ClientSecret { get { return this._clientSecret; } set { this._clientSecret = value; } } // Check to see if ClientSecret property is set internal bool IsSetClientSecret() { return this._clientSecret != 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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Contains the OAuth authorization parameters to use for the connection. /// </summary> public partial class CreateConnectionOAuthRequestParameters { private string _authorizationEndpoint; private CreateConnectionOAuthClientRequestParameters _clientParameters; private ConnectionOAuthHttpMethod _httpMethod; private ConnectionHttpParameters _oAuthHttpParameters; /// <summary> /// Gets and sets the property AuthorizationEndpoint. /// <para> /// The URL to the authorization endpoint when OAuth is specified as the authorization /// type. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=2048)] public string AuthorizationEndpoint { get { return this._authorizationEndpoint; } set { this._authorizationEndpoint = value; } } // Check to see if AuthorizationEndpoint property is set internal bool IsSetAuthorizationEndpoint() { return this._authorizationEndpoint != null; } /// <summary> /// Gets and sets the property ClientParameters. /// <para> /// A <code>CreateConnectionOAuthClientRequestParameters</code> object that contains the /// client parameters for OAuth authorization. /// </para> /// </summary> [AWSProperty(Required=true)] public CreateConnectionOAuthClientRequestParameters ClientParameters { get { return this._clientParameters; } set { this._clientParameters = value; } } // Check to see if ClientParameters property is set internal bool IsSetClientParameters() { return this._clientParameters != null; } /// <summary> /// Gets and sets the property HttpMethod. /// <para> /// The method to use for the authorization request. /// </para> /// </summary> [AWSProperty(Required=true)] public ConnectionOAuthHttpMethod HttpMethod { get { return this._httpMethod; } set { this._httpMethod = value; } } // Check to see if HttpMethod property is set internal bool IsSetHttpMethod() { return this._httpMethod != null; } /// <summary> /// Gets and sets the property OAuthHttpParameters. /// <para> /// A <code>ConnectionHttpParameters</code> object that contains details about the additional /// parameters to use for the connection. /// </para> /// </summary> public ConnectionHttpParameters OAuthHttpParameters { get { return this._oAuthHttpParameters; } set { this._oAuthHttpParameters = value; } } // Check to see if OAuthHttpParameters property is set internal bool IsSetOAuthHttpParameters() { return this._oAuthHttpParameters != null; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the CreateConnection operation. /// Creates a connection. A connection defines the authorization type and credentials /// to use for authorization with an API destination HTTP endpoint. /// </summary> public partial class CreateConnectionRequest : AmazonCloudWatchEventsRequest { private ConnectionAuthorizationType _authorizationType; private CreateConnectionAuthRequestParameters _authParameters; private string _description; private string _name; /// <summary> /// Gets and sets the property AuthorizationType. /// <para> /// The type of authorization to use for the connection. /// </para> /// </summary> [AWSProperty(Required=true)] public ConnectionAuthorizationType AuthorizationType { get { return this._authorizationType; } set { this._authorizationType = value; } } // Check to see if AuthorizationType property is set internal bool IsSetAuthorizationType() { return this._authorizationType != null; } /// <summary> /// Gets and sets the property AuthParameters. /// <para> /// A <code>CreateConnectionAuthRequestParameters</code> object that contains the authorization /// parameters to use to authorize with the endpoint. /// </para> /// </summary> [AWSProperty(Required=true)] public CreateConnectionAuthRequestParameters AuthParameters { get { return this._authParameters; } set { this._authParameters = value; } } // Check to see if AuthParameters property is set internal bool IsSetAuthParameters() { return this._authParameters != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// A description for the connection to create. /// </para> /// </summary> [AWSProperty(Max=512)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name for the connection to create. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the CreateConnection operation. /// </summary> public partial class CreateConnectionResponse : AmazonWebServiceResponse { private string _connectionArn; private ConnectionState _connectionState; private DateTime? _creationTime; private DateTime? _lastModifiedTime; /// <summary> /// Gets and sets the property ConnectionArn. /// <para> /// The ARN of the connection that was created by the request. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string ConnectionArn { get { return this._connectionArn; } set { this._connectionArn = value; } } // Check to see if ConnectionArn property is set internal bool IsSetConnectionArn() { return this._connectionArn != null; } /// <summary> /// Gets and sets the property ConnectionState. /// <para> /// The state of the connection that was created by the request. /// </para> /// </summary> public ConnectionState ConnectionState { get { return this._connectionState; } set { this._connectionState = value; } } // Check to see if ConnectionState property is set internal bool IsSetConnectionState() { return this._connectionState != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// A time stamp for the time that the connection was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// A time stamp for the time that the connection was last updated. /// </para> /// </summary> public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the CreateEventBus operation. /// Creates a new event bus within your account. This can be a custom event bus which /// you can use to receive events from your custom applications and services, or it can /// be a partner event bus which can be matched to a partner event source. /// </summary> public partial class CreateEventBusRequest : AmazonCloudWatchEventsRequest { private string _eventSourceName; private string _name; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property EventSourceName. /// <para> /// If you are creating a partner event bus, this specifies the partner event source that /// the new event bus will be matched with. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string EventSourceName { get { return this._eventSourceName; } set { this._eventSourceName = value; } } // Check to see if EventSourceName property is set internal bool IsSetEventSourceName() { return this._eventSourceName != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the new event bus. /// </para> /// /// <para> /// Event bus names cannot contain the / character. You can't use the name <code>default</code> /// for a custom event bus, as this name is already used for your account's default event /// bus. /// </para> /// /// <para> /// If this is a partner event bus, the name must exactly match the name of the partner /// event source that this event bus is matched to. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Tags to associate with the event bus. /// </para> /// </summary> public List<Tag> 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; } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the CreateEventBus operation. /// </summary> public partial class CreateEventBusResponse : AmazonWebServiceResponse { private string _eventBusArn; /// <summary> /// Gets and sets the property EventBusArn. /// <para> /// The ARN of the new event bus. /// </para> /// </summary> public string EventBusArn { get { return this._eventBusArn; } set { this._eventBusArn = value; } } // Check to see if EventBusArn property is set internal bool IsSetEventBusArn() { return this._eventBusArn != 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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the CreatePartnerEventSource operation. /// Called by an SaaS partner to create a partner event source. This operation is not /// used by Amazon Web Services customers. /// /// /// <para> /// Each partner event source can be used by one Amazon Web Services account to create /// a matching partner event bus in that Amazon Web Services account. A SaaS partner must /// create one partner event source for each Amazon Web Services account that wants to /// receive those event types. /// </para> /// /// <para> /// A partner event source creates events based on resources within the SaaS partner's /// service or application. /// </para> /// /// <para> /// An Amazon Web Services account that creates a partner event bus that matches the partner /// event source can use that event bus to receive events from the partner, and then process /// them using Amazon Web Services Events rules and targets. /// </para> /// /// <para> /// Partner event source names follow this format: /// </para> /// /// <para> /// <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code> /// </para> /// /// <para> /// <i>partner_name</i> is determined during partner registration and identifies the /// partner to Amazon Web Services customers. <i>event_namespace</i> is determined by /// the partner and is a way for the partner to categorize their events. <i>event_name</i> /// is determined by the partner, and should uniquely identify an event-generating resource /// within the partner system. The combination of <i>event_namespace</i> and <i>event_name</i> /// should help Amazon Web Services customers decide whether to create an event bus to /// receive these events. /// </para> /// </summary> public partial class CreatePartnerEventSourceRequest : AmazonCloudWatchEventsRequest { private string _account; private string _name; /// <summary> /// Gets and sets the property Account. /// <para> /// The Amazon Web Services account ID that is permitted to create a matching partner /// event bus for this partner event source. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string Account { get { return this._account; } set { this._account = value; } } // Check to see if Account property is set internal bool IsSetAccount() { return this._account != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the partner event source. This name must be unique and must be in the /// format <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i> </code>. /// The Amazon Web Services account that wants to use this partner event source must create /// a partner event bus with a name that matches the name of the partner event source. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the CreatePartnerEventSource operation. /// </summary> public partial class CreatePartnerEventSourceResponse : AmazonWebServiceResponse { private string _eventSourceArn; /// <summary> /// Gets and sets the property EventSourceArn. /// <para> /// The ARN of the partner event source. /// </para> /// </summary> public string EventSourceArn { get { return this._eventSourceArn; } set { this._eventSourceArn = value; } } // Check to see if EventSourceArn property is set internal bool IsSetEventSourceArn() { return this._eventSourceArn != 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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the DeactivateEventSource operation. /// You can use this operation to temporarily stop receiving events from the specified /// partner event source. The matching event bus is not deleted. /// /// /// <para> /// When you deactivate a partner event source, the source goes into PENDING state. If /// it remains in PENDING state for more than two weeks, it is deleted. /// </para> /// /// <para> /// To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>. /// </para> /// </summary> public partial class DeactivateEventSourceRequest : AmazonCloudWatchEventsRequest { private string _name; /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the partner event source to deactivate. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
70
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the DeactivateEventSource operation. /// </summary> public partial class DeactivateEventSourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// A <code>DeadLetterConfig</code> object that contains information about a dead-letter /// queue configuration. /// </summary> public partial class DeadLetterConfig { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The ARN of the SQS queue specified as the target for the dead-letter queue. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the DeauthorizeConnection operation. /// Removes all authorization parameters from the connection. This lets you remove the /// secret from the connection so you can reuse it without having to create a new connection. /// </summary> public partial class DeauthorizeConnectionRequest : AmazonCloudWatchEventsRequest { private string _name; /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the connection to remove authorization from. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the DeauthorizeConnection operation. /// </summary> public partial class DeauthorizeConnectionResponse : AmazonWebServiceResponse { private string _connectionArn; private ConnectionState _connectionState; private DateTime? _creationTime; private DateTime? _lastAuthorizedTime; private DateTime? _lastModifiedTime; /// <summary> /// Gets and sets the property ConnectionArn. /// <para> /// The ARN of the connection that authorization was removed from. /// </para> /// </summary> [AWSProperty(Min=1, Max=1600)] public string ConnectionArn { get { return this._connectionArn; } set { this._connectionArn = value; } } // Check to see if ConnectionArn property is set internal bool IsSetConnectionArn() { return this._connectionArn != null; } /// <summary> /// Gets and sets the property ConnectionState. /// <para> /// The state of the connection. /// </para> /// </summary> public ConnectionState ConnectionState { get { return this._connectionState; } set { this._connectionState = value; } } // Check to see if ConnectionState property is set internal bool IsSetConnectionState() { return this._connectionState != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// A time stamp for the time that the connection was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property LastAuthorizedTime. /// <para> /// A time stamp for the time that the connection was last authorized. /// </para> /// </summary> public DateTime LastAuthorizedTime { get { return this._lastAuthorizedTime.GetValueOrDefault(); } set { this._lastAuthorizedTime = value; } } // Check to see if LastAuthorizedTime property is set internal bool IsSetLastAuthorizedTime() { return this._lastAuthorizedTime.HasValue; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// A time stamp for the time that the connection was last updated. /// </para> /// </summary> public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } } }
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 events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the DeleteApiDestination operation. /// Deletes the specified API destination. /// </summary> public partial class DeleteApiDestinationRequest : AmazonCloudWatchEventsRequest { private string _name; /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the destination to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// This is the response object from the DeleteApiDestination operation. /// </summary> public partial class DeleteApiDestinationResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the events-2015-10-07.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.CloudWatchEvents.Model { /// <summary> /// Container for the parameters to the DeleteArchive operation. /// Deletes the specified archive. /// </summary> public partial class DeleteArchiveRequest : AmazonCloudWatchEventsRequest { private string _archiveName; /// <summary> /// Gets and sets the property ArchiveName. /// <para> /// The name of the archive to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=48)] public string ArchiveName { get { return this._archiveName; } set { this._archiveName = value; } } // Check to see if ArchiveName property is set internal bool IsSetArchiveName() { return this._archiveName != null; } } }
59