/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the internetmonitor-2021-06-03.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.InternetMonitor.Model { /// /// Container for the parameters to the CreateMonitor operation. /// Creates a monitor in Amazon CloudWatch Internet Monitor. A monitor is built based /// on information from the application resources that you add: Amazon Virtual Private /// Clouds (VPCs), Amazon CloudFront distributions, and WorkSpaces directories. Internet /// Monitor then publishes internet measurements from Amazon Web Services that are specific /// to the city-networks, that is, the locations and ASNs (typically internet service /// providers or ISPs), where clients access your application. For more information, see /// Using /// Amazon CloudWatch Internet Monitor in the Amazon CloudWatch User Guide. /// /// /// /// When you create a monitor, you set a maximum limit for the number of city-networks /// where client traffic is monitored. The city-network maximum that you choose is the /// limit, but you only pay for the number of city-networks that are actually monitored. /// You can change the maximum at any time by updating your monitor. For more information, /// see Choosing /// a city-network maximum value in the Amazon CloudWatch User Guide. /// /// public partial class CreateMonitorRequest : AmazonInternetMonitorRequest { private string _clientToken; private HealthEventsConfig _healthEventsConfig; private InternetMeasurementsLogDelivery _internetMeasurementsLogDelivery; private int? _maxCityNetworksToMonitor; private string _monitorName; private List _resources = new List(); private Dictionary _tags = new Dictionary(); private int? _trafficPercentageToMonitor; /// /// Gets and sets the property ClientToken. /// /// A unique, case-sensitive string of up to 64 ASCII characters that you specify to make /// an idempotent API request. Don't reuse the same client token for other API requests. /// /// public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// /// Gets and sets the property HealthEventsConfig. /// /// Defines the health event threshold percentages, for performance score and availability /// score. Internet Monitor creates a health event when there's an internet issue that /// affects your application end users where a health score percentage is at or below /// a set threshold. If you don't set a health event threshold, the default calue is 95%. /// /// public HealthEventsConfig HealthEventsConfig { get { return this._healthEventsConfig; } set { this._healthEventsConfig = value; } } // Check to see if HealthEventsConfig property is set internal bool IsSetHealthEventsConfig() { return this._healthEventsConfig != null; } /// /// Gets and sets the property InternetMeasurementsLogDelivery. /// /// Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition /// to CloudWatch Logs. /// /// public InternetMeasurementsLogDelivery InternetMeasurementsLogDelivery { get { return this._internetMeasurementsLogDelivery; } set { this._internetMeasurementsLogDelivery = value; } } // Check to see if InternetMeasurementsLogDelivery property is set internal bool IsSetInternetMeasurementsLogDelivery() { return this._internetMeasurementsLogDelivery != null; } /// /// Gets and sets the property MaxCityNetworksToMonitor. /// /// The maximum number of city-networks to monitor for your resources. A city-network /// is the location (city) where clients access your application resources from and the /// network or ASN, such as an internet service provider (ISP), that clients access the /// resources through. This limit helps control billing costs. /// /// /// /// To learn more, see Choosing /// a city-network maximum value in the Amazon CloudWatch Internet Monitor section /// of the CloudWatch User Guide. /// /// [AWSProperty(Min=1, Max=500000)] public int MaxCityNetworksToMonitor { get { return this._maxCityNetworksToMonitor.GetValueOrDefault(); } set { this._maxCityNetworksToMonitor = value; } } // Check to see if MaxCityNetworksToMonitor property is set internal bool IsSetMaxCityNetworksToMonitor() { return this._maxCityNetworksToMonitor.HasValue; } /// /// Gets and sets the property MonitorName. /// /// The name of the monitor. /// /// [AWSProperty(Required=true, Min=1, Max=255)] public string MonitorName { get { return this._monitorName; } set { this._monitorName = value; } } // Check to see if MonitorName property is set internal bool IsSetMonitorName() { return this._monitorName != null; } /// /// Gets and sets the property Resources. /// /// The resources to include in a monitor, which you provide as a set of Amazon Resource /// Names (ARNs). /// /// /// /// You can add a combination of Amazon Virtual Private Clouds (VPCs) and Amazon CloudFront /// distributions, or you can add Amazon WorkSpaces directories. You can't add all three /// types of resources. /// /// /// /// If you add only VPC resources, at least one VPC must have an Internet Gateway attached /// to it, to make sure that it has internet connectivity. /// /// /// public List Resources { get { return this._resources; } set { this._resources = value; } } // Check to see if Resources property is set internal bool IsSetResources() { return this._resources != null && this._resources.Count > 0; } /// /// Gets and sets the property Tags. /// /// The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor. /// /// [AWSProperty(Min=0, Max=200)] public Dictionary 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; } /// /// Gets and sets the property TrafficPercentageToMonitor. /// /// The percentage of the internet-facing traffic for your application that you want to /// monitor with this monitor. /// /// [AWSProperty(Min=1, Max=100)] public int TrafficPercentageToMonitor { get { return this._trafficPercentageToMonitor.GetValueOrDefault(); } set { this._trafficPercentageToMonitor = value; } } // Check to see if TrafficPercentageToMonitor property is set internal bool IsSetTrafficPercentageToMonitor() { return this._trafficPercentageToMonitor.HasValue; } } }