/* * 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 AssociateNode operation. /// Associates a new node with the server. For more information about how to disassociate /// a node, see DisassociateNode. /// /// /// /// On a Chef server: This command is an alternative to knife bootstrap. /// /// /// /// Example (Chef): aws opsworks-cm associate-node --server-name MyServer /// --node-name MyManagedNode --engine-attributes "Name=CHEF_ORGANIZATION,Value=default" /// "Name=CHEF_NODE_PUBLIC_KEY,Value=public-key-pem" /// /// /// /// On a Puppet server, this command is an alternative to the puppet cert sign /// command that signs a Puppet node CSR. /// /// /// /// Example (Puppet): aws opsworks-cm associate-node --server-name MyServer /// --node-name MyManagedNode --engine-attributes "Name=PUPPET_NODE_CSR,Value=csr-pem" /// /// /// /// /// A node can can only be associated with servers that are 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. The AssociateNode API call can be integrated /// into Auto Scaling configurations, AWS Cloudformation templates, or the user data of /// a server's instance. /// /// public partial class AssociateNodeRequest : AmazonOpsWorksCMRequest { private List _engineAttributes = new List(); private string _nodeName; private string _serverName; /// /// Gets and sets the property EngineAttributes. /// /// Engine attributes used for associating the node. /// ///

Attributes accepted in a AssociateNode request for Chef /// /// ///

  • /// /// CHEF_ORGANIZATION: The Chef organization with which the node is associated. /// By default only one organization named default can exist. /// ///
  • /// /// CHEF_NODE_PUBLIC_KEY: A PEM-formatted public key. This key is required /// for the chef-client agent to access the Chef API. /// ///

Attributes accepted in a AssociateNode request for /// Puppet /// ///

  • /// /// PUPPET_NODE_CSR: A PEM-formatted certificate-signing request (CSR) that /// is created by the node. /// ///
///
[AWSProperty(Required=true)] 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 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 with which to associate 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; } } }