args property

Map<String, List<String>>? args
final

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

{"arg_name1" : "value1", "value2", ..., "arg_name2" : "value1", "value2", ..., ...}

The update_dependencies command takes two arguments:

  • upgrade_os_to - Specifies the desired Amazon Linux version for instances whose OS you want to upgrade, such as Amazon Linux 2016.09. You must also set the allow_reboot argument to true.
  • allow_reboot - Specifies whether to allow AWS OpsWorks Stacks to reboot the instances if necessary, after installing the updates. This argument can be set to either true or false. The default value is false.
For example, to upgrade an instance to Amazon Linux 2016.09, set Args to the following.

{ "upgrade_os_to":"Amazon Linux 2016.09", "allow_reboot":"true" }

Implementation

final Map<String, List<String>>? args;