/* * 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 opsworks-2013-02-18.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.OpsWorks.Model { /// /// Container for the parameters to the CreateDeployment operation. /// Runs deployment or stack commands. For more information, see Deploying /// Apps and Run /// Stack Commands. /// /// /// /// Required Permissions: To use this action, an IAM user must have a Deploy or /// Manage permissions level for the stack, or an attached policy that explicitly grants /// permissions. For more information on user permissions, see Managing /// User Permissions. /// /// public partial class CreateDeploymentRequest : AmazonOpsWorksRequest { private string _appId; private DeploymentCommand _command; private string _comment; private string _customJson; private List _instanceIds = new List(); private List _layerIds = new List(); private string _stackId; /// /// Gets and sets the property AppId. /// /// The app ID. This parameter is required for app deployments, but not for other deployment /// commands. /// /// public string AppId { get { return this._appId; } set { this._appId = value; } } // Check to see if AppId property is set internal bool IsSetAppId() { return this._appId != null; } /// /// Gets and sets the property Command. /// /// A DeploymentCommand object that specifies the deployment command and /// any associated arguments. /// /// [AWSProperty(Required=true)] public DeploymentCommand Command { get { return this._command; } set { this._command = value; } } // Check to see if Command property is set internal bool IsSetCommand() { return this._command != null; } /// /// Gets and sets the property Comment. /// /// A user-defined comment. /// /// public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// /// Gets and sets the property CustomJson. /// /// A string that contains user-defined, custom JSON. You can use this parameter to override /// some corresponding default stack configuration JSON values. The string should be in /// the following format: /// /// /// /// "{\"key1\": \"value1\", \"key2\": \"value2\",...}" /// /// /// /// For more information about custom JSON, see Use /// Custom JSON to Modify the Stack Configuration Attributes and Overriding /// Attributes With Custom JSON. /// /// public string CustomJson { get { return this._customJson; } set { this._customJson = value; } } // Check to see if CustomJson property is set internal bool IsSetCustomJson() { return this._customJson != null; } /// /// Gets and sets the property InstanceIds. /// /// The instance IDs for the deployment targets. /// /// public List InstanceIds { get { return this._instanceIds; } set { this._instanceIds = value; } } // Check to see if InstanceIds property is set internal bool IsSetInstanceIds() { return this._instanceIds != null && this._instanceIds.Count > 0; } /// /// Gets and sets the property LayerIds. /// /// The layer IDs for the deployment targets. /// /// public List LayerIds { get { return this._layerIds; } set { this._layerIds = value; } } // Check to see if LayerIds property is set internal bool IsSetLayerIds() { return this._layerIds != null && this._layerIds.Count > 0; } /// /// Gets and sets the property StackId. /// /// The stack ID. /// /// [AWSProperty(Required=true)] public string StackId { get { return this._stackId; } set { this._stackId = value; } } // Check to see if StackId property is set internal bool IsSetStackId() { return this._stackId != null; } } }