AWS SDK for .NET Documentation
DeploymentCommand Class
AmazonAmazon.OpsWorks.ModelDeploymentCommand Did this page help you?   Yes   No    Tell us about it...
Used to specify a deployment operation.
Declaration Syntax
C#
public class DeploymentCommand
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
DeploymentCommand()()()()
Initializes a new instance of the DeploymentCommand class

Args
Gets and sets the property Args.

The arguments of those commands that take arguments. It should be set to a JSON object with the following format:

CopyC#
{"arg_name":["value1", "value2", ...]}


Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
Name
Gets and sets the property Name.

Specifies the operation. You can specify only one command.

For stacks, the following commands are available:

  • CopyC#
    execute_recipes
    : Execute one or more recipes. To specify the recipes, set an
    CopyC#
    Args
    parameter named
    CopyC#
    recipes
    to the list of recipes to be executed. For example, to execute
    CopyC#
    phpapp::appsetup
    , set
    CopyC#
    Args
    to
    CopyC#
    {"recipes":["phpapp::appsetup"]}
    .
  • CopyC#
    install_dependencies
    : Install the stack's dependencies.
  • CopyC#
    update_custom_cookbooks
    : Update the stack's custom cookbooks.
  • CopyC#
    update_dependencies
    : Update the stack's dependencies.

For apps, the following commands are available:

  • CopyC#
    deploy
    : Deploy an app. Rails apps have an optional
    CopyC#
    Args
    parameter named
    CopyC#
    migrate
    . Set
    CopyC#
    Args
    to {"migrate":["true"]} to migrate the database. The default setting is {"migrate":["false"]}.
  • CopyC#
    rollback
    Roll the app back to the previous version. When you update an app, AWS OpsWorks stores the previous version, up to a maximum of five versions. You can use this command to roll an app back as many as four versions.
  • CopyC#
    start
    : Start the app's web or application server.
  • CopyC#
    stop
    : Stop the app's web or application server.
  • CopyC#
    restart
    : Restart the app's web or application server.
  • CopyC#
    undeploy
    : Undeploy the app.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithArgs(array<KeyValuePair<(Of <<'(String, List<(Of <<'(String>)>>)>)>>)>[]()[][]) Obsolete.
Adds the KeyValuePairs to the Args dictionary.

WithName(String) Obsolete.
Sets the Name property

Inheritance Hierarchy
Object
DeploymentCommand

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)