/* * 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 opsworkscm-2016-11-01.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.OpsWorksCM.Model { /// /// Container for the parameters to the DisassociateNode operation. /// Disassociates a node from an AWS OpsWorks CM server, and removes the node from the /// server's managed nodes. After a node is disassociated, the node key pair is no longer /// valid for accessing the configuration manager's API. For more information about how /// to associate a node, see AssociateNode. /// /// /// /// A node can can only be disassociated from a server that is in a HEALTHY /// state. Otherwise, an InvalidStateException is thrown. A ResourceNotFoundException /// is thrown when the server does not exist. A ValidationException is raised /// when parameters of the request are not valid. /// /// public partial class DisassociateNodeRequest : AmazonOpsWorksCMRequest { private List _engineAttributes = new List(); private string _nodeName; private string _serverName; /// /// Gets and sets the property EngineAttributes. /// /// Engine attributes that are used for disassociating the node. No attributes are required /// for Puppet. /// ///

Attributes required in a DisassociateNode request for Chef /// /// ///

  • /// /// CHEF_ORGANIZATION: The Chef organization with which the node was associated. /// By default only one organization named default can exist. /// ///
///
public List EngineAttributes { get { return this._engineAttributes; } set { this._engineAttributes = value; } } // Check to see if EngineAttributes property is set internal bool IsSetEngineAttributes() { return this._engineAttributes != null && this._engineAttributes.Count > 0; } /// /// Gets and sets the property NodeName. /// /// The name of the client node. /// /// [AWSProperty(Required=true, Max=10000)] public string NodeName { get { return this._nodeName; } set { this._nodeName = value; } } // Check to see if NodeName property is set internal bool IsSetNodeName() { return this._nodeName != null; } /// /// Gets and sets the property ServerName. /// /// The name of the server from which to disassociate the node. /// /// [AWSProperty(Required=true, Min=1, Max=40)] public string ServerName { get { return this._serverName; } set { this._serverName = value; } } // Check to see if ServerName property is set internal bool IsSetServerName() { return this._serverName != null; } } }