« blib/lib/Paws/WorkSpaces/CreateWorkspaceBundleResult.pm
↑ Summary
blib/lib/Paws/WorkSpaces/CreateWorkspacesResult.pm »
| 1 | |||
| 2 | package Paws::WorkSpaces::CreateWorkspaces; | ||
| 3 | use Moose; | ||
| 4 | has Workspaces => (is => 'ro', isa => 'ArrayRef[Paws::WorkSpaces::WorkspaceRequest]', required => 1); | ||
| 5 | |||
| 6 | use MooseX::ClassAttribute; | ||
| 7 | |||
| 8 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateWorkspaces'); | ||
| 9 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WorkSpaces::CreateWorkspacesResult'); | ||
| 10 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 11 | 1; | ||
| 12 | |||
| 13 | ### main pod documentation begin ### | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Paws::WorkSpaces::CreateWorkspaces - Arguments for method CreateWorkspaces on L<Paws::WorkSpaces> | ||
| 18 | |||
| 19 | =head1 DESCRIPTION | ||
| 20 | |||
| 21 | This class represents the parameters used for calling the method CreateWorkspaces on the | ||
| 22 | L<Amazon WorkSpaces|Paws::WorkSpaces> service. Use the attributes of this class | ||
| 23 | as arguments to method CreateWorkspaces. | ||
| 24 | |||
| 25 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateWorkspaces. | ||
| 26 | |||
| 27 | =head1 SYNOPSIS | ||
| 28 | |||
| 29 | my $workspaces = Paws->service('WorkSpaces'); | ||
| 30 | my $CreateWorkspacesResult = $workspaces->CreateWorkspaces( | ||
| 31 | Workspaces => [ | ||
| 32 | { | ||
| 33 | BundleId => 'MyBundleId', | ||
| 34 | DirectoryId => 'MyDirectoryId', # min: 10, max: 65 | ||
| 35 | UserName => 'MyUserName', # min: 1, max: 63 | ||
| 36 | RootVolumeEncryptionEnabled => 1, # OPTIONAL | ||
| 37 | Tags => [ | ||
| 38 | { | ||
| 39 | Key => 'MyTagKey', # min: 1, max: 127 | ||
| 40 | Value => 'MyTagValue', # max: 255; OPTIONAL | ||
| 41 | }, | ||
| 42 | ... | ||
| 43 | ], # OPTIONAL | ||
| 44 | UserVolumeEncryptionEnabled => 1, # OPTIONAL | ||
| 45 | VolumeEncryptionKey => 'MyVolumeEncryptionKey', # OPTIONAL | ||
| 46 | WorkspaceProperties => { | ||
| 47 | ComputeTypeName => 'VALUE' | ||
| 48 | , # values: VALUE, STANDARD, PERFORMANCE, POWER, GRAPHICS, POWERPRO, GRAPHICSPRO; OPTIONAL | ||
| 49 | RootVolumeSizeGib => 1, # OPTIONAL | ||
| 50 | RunningMode => 'AUTO_STOP', # values: AUTO_STOP, ALWAYS_ON; OPTIONAL | ||
| 51 | RunningModeAutoStopTimeoutInMinutes => 1, # OPTIONAL | ||
| 52 | UserVolumeSizeGib => 1, # OPTIONAL | ||
| 53 | }, # OPTIONAL | ||
| 54 | }, | ||
| 55 | ... | ||
| 56 | ], | ||
| 57 | |||
| 58 | ); | ||
| 59 | |||
| 60 | # Results: | ||
| 61 | my $FailedRequests = $CreateWorkspacesResult->FailedRequests; | ||
| 62 | my $PendingRequests = $CreateWorkspacesResult->PendingRequests; | ||
| 63 | |||
| 64 | # Returns a L<Paws::WorkSpaces::CreateWorkspacesResult> object. | ||
| 65 | |||
| 66 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 67 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/workspaces/CreateWorkspaces> | ||
| 68 | |||
| 69 | =head1 ATTRIBUTES | ||
| 70 | |||
| 71 | |||
| 72 | =head2 B<REQUIRED> Workspaces => ArrayRef[L<Paws::WorkSpaces::WorkspaceRequest>] | ||
| 73 | |||
| 74 | The WorkSpaces to create. You can specify up to 25 WorkSpaces. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head1 SEE ALSO | ||
| 80 | |||
| 81 | This class forms part of L<Paws>, documenting arguments for method CreateWorkspaces in L<Paws::WorkSpaces> | ||
| 82 | |||
| 83 | =head1 BUGS and CONTRIBUTIONS | ||
| 84 | |||
| 85 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 86 | |||
| 87 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 88 | |||
| 89 | =cut | ||
| 90 |