You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::WorkSpaces::Types::CreateWorkspacesRequest

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

Overview

Note:

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

{
  workspaces: [ # required
    {
      directory_id: "DirectoryId", # required
      user_name: "UserName", # required
      bundle_id: "BundleId", # required
      volume_encryption_key: "VolumeEncryptionKey",
      user_volume_encryption_enabled: false,
      root_volume_encryption_enabled: false,
      workspace_properties: {
        running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
        running_mode_auto_stop_timeout_in_minutes: 1,
      },
      tags: [
        {
          key: "TagKey", # required
          value: "TagValue",
        },
      ],
    },
  ],
}

Contains the inputs for the CreateWorkspaces operation.

Instance Attribute Summary collapse

Instance Attribute Details

#workspacesArray<Types::WorkspaceRequest>

An array of structures that specify the WorkSpaces to create.

Returns:



95
96
97
98
# File 'gems/aws-sdk-workspaces/lib/aws-sdk-workspaces/types.rb', line 95

class CreateWorkspacesRequest < Struct.new(
  :workspaces)
  include Aws::Structure
end