/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the synthetics-2017-10-11.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.Synthetics.Model { /// /// Container for the parameters to the DeleteCanary operation. /// Permanently deletes the specified canary. /// /// /// /// If you specify DeleteLambda to true, CloudWatch Synthetics /// also deletes the Lambda functions and layers that are used by the canary. /// /// /// /// Other resources used and created by the canary are not automatically deleted. After /// you delete a canary that you do not intend to use again, you should also delete the /// following: /// /// /// /// Before you delete a canary, you might want to use GetCanary to display /// the information about this canary. Make note of the information returned by this operation /// so that you can delete these resources after you delete the canary. /// /// public partial class DeleteCanaryRequest : AmazonSyntheticsRequest { private bool? _deleteLambda; private string _name; /// /// Gets and sets the property DeleteLambda. /// /// Specifies whether to also delete the Lambda functions and layers used by this canary. /// The default is false. /// /// /// /// Type: Boolean /// /// public bool DeleteLambda { get { return this._deleteLambda.GetValueOrDefault(); } set { this._deleteLambda = value; } } // Check to see if DeleteLambda property is set internal bool IsSetDeleteLambda() { return this._deleteLambda.HasValue; } /// /// Gets and sets the property Name. /// /// The name of the canary that you want to delete. To find the names of your canaries, /// use DescribeCanaries. /// /// [AWSProperty(Required=true, Min=1, Max=21)] 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; } } }