/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the rum-2018-05-10.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.CloudWatchRUM.Model { /// /// Container for the parameters to the UpdateAppMonitor operation. /// Updates the configuration of an existing app monitor. When you use this operation, /// only the parts of the app monitor configuration that you specify in this operation /// are changed. For any parameters that you omit, the existing values are kept. /// /// /// /// You can't use this operation to change the tags of an existing app monitor. To change /// the tags of an existing app monitor, use TagResource. /// /// /// /// To create a new app monitor, use CreateAppMonitor. /// /// /// /// After you update an app monitor, sign in to the CloudWatch RUM console to get the /// updated JavaScript code snippet to add to your web application. For more information, /// see How /// do I find a code snippet that I've already generated? /// /// public partial class UpdateAppMonitorRequest : AmazonCloudWatchRUMRequest { private AppMonitorConfiguration _appMonitorConfiguration; private CustomEvents _customEvents; private bool? _cwLogEnabled; private string _domain; private string _name; /// /// Gets and sets the property AppMonitorConfiguration. /// /// A structure that contains much of the configuration data for the app monitor. If you /// are using Amazon Cognito for authorization, you must include this structure in your /// request, and it must include the ID of the Amazon Cognito identity pool to use for /// authorization. If you don't include AppMonitorConfiguration, you must /// set up your own authorization method. For more information, see Authorize /// your application to send data to Amazon Web Services. /// /// public AppMonitorConfiguration AppMonitorConfiguration { get { return this._appMonitorConfiguration; } set { this._appMonitorConfiguration = value; } } // Check to see if AppMonitorConfiguration property is set internal bool IsSetAppMonitorConfiguration() { return this._appMonitorConfiguration != null; } /// /// Gets and sets the property CustomEvents. /// /// Specifies whether this app monitor allows the web client to define and send custom /// events. The default is for custom events to be DISABLED. /// /// /// /// For more information about custom events, see Send /// custom events. /// /// public CustomEvents CustomEvents { get { return this._customEvents; } set { this._customEvents = value; } } // Check to see if CustomEvents property is set internal bool IsSetCustomEvents() { return this._customEvents != null; } /// /// Gets and sets the property CwLogEnabled. /// /// Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter /// specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs /// in your account. This enables you to keep the telemetry data for more than 30 days, /// but it does incur Amazon CloudWatch Logs charges. /// /// public bool CwLogEnabled { get { return this._cwLogEnabled.GetValueOrDefault(); } set { this._cwLogEnabled = value; } } // Check to see if CwLogEnabled property is set internal bool IsSetCwLogEnabled() { return this._cwLogEnabled.HasValue; } /// /// Gets and sets the property Domain. /// /// The top-level internet domain name for which your application has administrative authority. /// /// [AWSProperty(Min=1, Max=253)] public string Domain { get { return this._domain; } set { this._domain = value; } } // Check to see if Domain property is set internal bool IsSetDomain() { return this._domain != null; } /// /// Gets and sets the property Name. /// /// The name of the app monitor to update. /// /// [AWSProperty(Required=true, Min=1, Max=255)] 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; } } }