AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::OpsWorks::Types::CreateDeploymentRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb

Overview

Note:

When making an API call, you may pass CreateDeploymentRequest data as a hash:

{
  stack_id: "String", # required
  app_id: "String",
  instance_ids: ["String"],
  layer_ids: ["String"],
  command: { # required
    name: "install_dependencies", # required, accepts install_dependencies, update_dependencies, update_custom_cookbooks, execute_recipes, configure, setup, deploy, rollback, start, stop, restart, undeploy
    args: {
      "String" => ["String"],
    },
  },
  comment: "String",
  custom_json: "String",
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#app_idString

The app ID. This parameter is required for app deployments, but not for other deployment commands.

Returns:

  • (String)


1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 1283

class CreateDeploymentRequest < Struct.new(
  :stack_id,
  :app_id,
  :instance_ids,
  :layer_ids,
  :command,
  :comment,
  :custom_json)
  SENSITIVE = []
  include Aws::Structure
end

#commandTypes::DeploymentCommand

A DeploymentCommand object that specifies the deployment command and any associated arguments.



1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 1283

class CreateDeploymentRequest < Struct.new(
  :stack_id,
  :app_id,
  :instance_ids,
  :layer_ids,
  :command,
  :comment,
  :custom_json)
  SENSITIVE = []
  include Aws::Structure
end

#commentString

A user-defined comment.

Returns:

  • (String)


1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 1283

class CreateDeploymentRequest < Struct.new(
  :stack_id,
  :app_id,
  :instance_ids,
  :layer_ids,
  :command,
  :comment,
  :custom_json)
  SENSITIVE = []
  include Aws::Structure
end

#custom_jsonString

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.

Returns:

  • (String)


1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 1283

class CreateDeploymentRequest < Struct.new(
  :stack_id,
  :app_id,
  :instance_ids,
  :layer_ids,
  :command,
  :comment,
  :custom_json)
  SENSITIVE = []
  include Aws::Structure
end

#instance_idsArray<String>

The instance IDs for the deployment targets.

Returns:

  • (Array<String>)


1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 1283

class CreateDeploymentRequest < Struct.new(
  :stack_id,
  :app_id,
  :instance_ids,
  :layer_ids,
  :command,
  :comment,
  :custom_json)
  SENSITIVE = []
  include Aws::Structure
end

#layer_idsArray<String>

The layer IDs for the deployment targets.

Returns:

  • (Array<String>)


1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 1283

class CreateDeploymentRequest < Struct.new(
  :stack_id,
  :app_id,
  :instance_ids,
  :layer_ids,
  :command,
  :comment,
  :custom_json)
  SENSITIVE = []
  include Aws::Structure
end

#stack_idString

The stack ID.

Returns:

  • (String)


1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 1283

class CreateDeploymentRequest < Struct.new(
  :stack_id,
  :app_id,
  :instance_ids,
  :layer_ids,
  :command,
  :comment,
  :custom_json)
  SENSITIVE = []
  include Aws::Structure
end