blib/lib/Paws/WorkSpaces/ImportWorkspaceImage.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::WorkSpaces::ImportWorkspaceImage;
3 use Moose;
4 has Applications => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5 has Ec2ImageId => (is => 'ro', isa => 'Str', required => 1);
6 has ImageDescription => (is => 'ro', isa => 'Str', required => 1);
7 has ImageName => (is => 'ro', isa => 'Str', required => 1);
8 has IngestionProcess => (is => 'ro', isa => 'Str', required => 1);
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::WorkSpaces::Tag]');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ImportWorkspaceImage');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WorkSpaces::ImportWorkspaceImageResult');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::WorkSpaces::ImportWorkspaceImage - Arguments for method ImportWorkspaceImage on L<Paws::WorkSpaces>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method ImportWorkspaceImage on the
27 L<Amazon WorkSpaces|Paws::WorkSpaces> service. Use the attributes of this class
28 as arguments to method ImportWorkspaceImage.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ImportWorkspaceImage.
31  
32 =head1 SYNOPSIS
33  
34 my $workspaces = Paws->service('WorkSpaces');
35 my $ImportWorkspaceImageResult = $workspaces->ImportWorkspaceImage(
36 Ec2ImageId => 'MyEc2ImageId',
37 ImageDescription => 'MyWorkspaceImageDescription',
38 ImageName => 'MyWorkspaceImageName',
39 IngestionProcess => 'BYOL_REGULAR',
40 Applications => [
41 'Microsoft_Office_2016',
42 ... # values: Microsoft_Office_2016, Microsoft_Office_2019
43 ], # OPTIONAL
44 Tags => [
45 {
46 Key => 'MyTagKey', # min: 1, max: 127
47 Value => 'MyTagValue', # max: 255; OPTIONAL
48 },
49 ...
50 ], # OPTIONAL
51 );
52  
53 # Results:
54 my $ImageId = $ImportWorkspaceImageResult->ImageId;
55  
56 # Returns a L<Paws::WorkSpaces::ImportWorkspaceImageResult> object.
57  
58 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.
59 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/workspaces/ImportWorkspaceImage>
60  
61 =head1 ATTRIBUTES
62  
63  
64 =head2 Applications => ArrayRef[Str|Undef]
65  
66 If specified, the version of Microsoft Office to subscribe to. Valid
67 only for Windows 10 BYOL images. For more information about subscribing
68 to Office for BYOL images, see Bring Your Own Windows Desktop Licenses
69 (https://docs.aws.amazon.com/workspaces/latest/adminguide/byol-windows-images.html).
70  
71 Although this parameter is an array, only one item is allowed at this
72 time.
73  
74  
75  
76 =head2 B<REQUIRED> Ec2ImageId => Str
77  
78 The identifier of the EC2 image.
79  
80  
81  
82 =head2 B<REQUIRED> ImageDescription => Str
83  
84 The description of the WorkSpace image.
85  
86  
87  
88 =head2 B<REQUIRED> ImageName => Str
89  
90 The name of the WorkSpace image.
91  
92  
93  
94 =head2 B<REQUIRED> IngestionProcess => Str
95  
96 The ingestion process to be used when importing the image, depending on
97 which protocol you want to use for your BYOL Workspace image, either
98 PCoIP or WorkSpaces Streaming Protocol (WSP). To use WSP, specify a
99 value that ends in C<_WSP>. To use PCoIP, specify a value that does not
100 end in C<_WSP>.
101  
102 For non-GPU-enabled bundles (bundles other than Graphics or
103 GraphicsPro), specify C<BYOL_REGULAR> or C<BYOL_REGULAR_WSP>, depending
104 on the protocol.
105  
106 Valid values are: C<"BYOL_REGULAR">, C<"BYOL_GRAPHICS">, C<"BYOL_GRAPHICSPRO">, C<"BYOL_REGULAR_WSP">
107  
108 =head2 Tags => ArrayRef[L<Paws::WorkSpaces::Tag>]
109  
110 The tags. Each WorkSpaces resource can have a maximum of 50 tags.
111  
112  
113  
114  
115 =head1 SEE ALSO
116  
117 This class forms part of L<Paws>, documenting arguments for method ImportWorkspaceImage in L<Paws::WorkSpaces>
118  
119 =head1 BUGS and CONTRIBUTIONS
120  
121 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
122  
123 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
124  
125 =cut
126