File Coverage

blib/lib/Paws/AppStream.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::AppStream;
2 1     1   4369 use Moose;
  1         3  
  1         7  
3             sub service { 'appstream2' }
4             sub version { '2016-12-01' }
5             sub target_prefix { 'PhotonAdminProxyService' }
6             sub json_version { "1.1" }
7             has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8             has retry => (is => 'ro', isa => 'HashRef', default => sub {
9             { base => 'rand', type => 'exponential', growth_factor => 2 }
10             });
11             has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
12             ] });
13              
14             with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller', 'Paws::Net::JsonResponse';
15              
16            
17             sub AssociateFleet {
18             my $self = shift;
19             my $call_object = $self->new_with_coercions('Paws::AppStream::AssociateFleet', @_);
20             return $self->caller->do_call($self, $call_object);
21             }
22             sub CreateFleet {
23             my $self = shift;
24             my $call_object = $self->new_with_coercions('Paws::AppStream::CreateFleet', @_);
25             return $self->caller->do_call($self, $call_object);
26             }
27             sub CreateStack {
28             my $self = shift;
29             my $call_object = $self->new_with_coercions('Paws::AppStream::CreateStack', @_);
30             return $self->caller->do_call($self, $call_object);
31             }
32             sub CreateStreamingURL {
33             my $self = shift;
34             my $call_object = $self->new_with_coercions('Paws::AppStream::CreateStreamingURL', @_);
35             return $self->caller->do_call($self, $call_object);
36             }
37             sub DeleteFleet {
38             my $self = shift;
39             my $call_object = $self->new_with_coercions('Paws::AppStream::DeleteFleet', @_);
40             return $self->caller->do_call($self, $call_object);
41             }
42             sub DeleteStack {
43             my $self = shift;
44             my $call_object = $self->new_with_coercions('Paws::AppStream::DeleteStack', @_);
45             return $self->caller->do_call($self, $call_object);
46             }
47             sub DescribeFleets {
48             my $self = shift;
49             my $call_object = $self->new_with_coercions('Paws::AppStream::DescribeFleets', @_);
50             return $self->caller->do_call($self, $call_object);
51             }
52             sub DescribeImages {
53             my $self = shift;
54             my $call_object = $self->new_with_coercions('Paws::AppStream::DescribeImages', @_);
55             return $self->caller->do_call($self, $call_object);
56             }
57             sub DescribeSessions {
58             my $self = shift;
59             my $call_object = $self->new_with_coercions('Paws::AppStream::DescribeSessions', @_);
60             return $self->caller->do_call($self, $call_object);
61             }
62             sub DescribeStacks {
63             my $self = shift;
64             my $call_object = $self->new_with_coercions('Paws::AppStream::DescribeStacks', @_);
65             return $self->caller->do_call($self, $call_object);
66             }
67             sub DisassociateFleet {
68             my $self = shift;
69             my $call_object = $self->new_with_coercions('Paws::AppStream::DisassociateFleet', @_);
70             return $self->caller->do_call($self, $call_object);
71             }
72             sub ExpireSession {
73             my $self = shift;
74             my $call_object = $self->new_with_coercions('Paws::AppStream::ExpireSession', @_);
75             return $self->caller->do_call($self, $call_object);
76             }
77             sub ListAssociatedFleets {
78             my $self = shift;
79             my $call_object = $self->new_with_coercions('Paws::AppStream::ListAssociatedFleets', @_);
80             return $self->caller->do_call($self, $call_object);
81             }
82             sub ListAssociatedStacks {
83             my $self = shift;
84             my $call_object = $self->new_with_coercions('Paws::AppStream::ListAssociatedStacks', @_);
85             return $self->caller->do_call($self, $call_object);
86             }
87             sub StartFleet {
88             my $self = shift;
89             my $call_object = $self->new_with_coercions('Paws::AppStream::StartFleet', @_);
90             return $self->caller->do_call($self, $call_object);
91             }
92             sub StopFleet {
93             my $self = shift;
94             my $call_object = $self->new_with_coercions('Paws::AppStream::StopFleet', @_);
95             return $self->caller->do_call($self, $call_object);
96             }
97             sub UpdateFleet {
98             my $self = shift;
99             my $call_object = $self->new_with_coercions('Paws::AppStream::UpdateFleet', @_);
100             return $self->caller->do_call($self, $call_object);
101             }
102             sub UpdateStack {
103             my $self = shift;
104             my $call_object = $self->new_with_coercions('Paws::AppStream::UpdateStack', @_);
105             return $self->caller->do_call($self, $call_object);
106             }
107            
108              
109              
110             sub operations { qw/AssociateFleet CreateFleet CreateStack CreateStreamingURL DeleteFleet DeleteStack DescribeFleets DescribeImages DescribeSessions DescribeStacks DisassociateFleet ExpireSession ListAssociatedFleets ListAssociatedStacks StartFleet StopFleet UpdateFleet UpdateStack / }
111              
112             1;
113              
114             ### main pod documentation begin ###
115              
116             =head1 NAME
117              
118             Paws::AppStream - Perl Interface to AWS Amazon AppStream
119              
120             =head1 SYNOPSIS
121              
122             use Paws;
123              
124             my $obj = Paws->service('AppStream');
125             my $res = $obj->Method(
126             Arg1 => $val1,
127             Arg2 => [ 'V1', 'V2' ],
128             # if Arg3 is an object, the HashRef will be used as arguments to the constructor
129             # of the arguments type
130             Arg3 => { Att1 => 'Val1' },
131             # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
132             # the constructor of the arguments type
133             Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
134             );
135              
136             =head1 DESCRIPTION
137              
138             Amazon AppStream 2.0
139              
140             API documentation for Amazon AppStream 2.0.
141              
142             =head1 METHODS
143              
144             =head2 AssociateFleet(FleetName => Str, StackName => Str)
145              
146             Each argument is described in detail in: L<Paws::AppStream::AssociateFleet>
147              
148             Returns: a L<Paws::AppStream::AssociateFleetResult> instance
149              
150             Associate a fleet to a stack.
151              
152              
153             =head2 CreateFleet(ComputeCapacity => L<Paws::AppStream::ComputeCapacity>, ImageName => Str, InstanceType => Str, Name => Str, [Description => Str, DisconnectTimeoutInSeconds => Int, DisplayName => Str, EnableDefaultInternetAccess => Bool, MaxUserDurationInSeconds => Int, VpcConfig => L<Paws::AppStream::VpcConfig>])
154              
155             Each argument is described in detail in: L<Paws::AppStream::CreateFleet>
156              
157             Returns: a L<Paws::AppStream::CreateFleetResult> instance
158              
159             Creates a new fleet.
160              
161              
162             =head2 CreateStack(Name => Str, [Description => Str, DisplayName => Str, StorageConnectors => ArrayRef[L<Paws::AppStream::StorageConnector>]])
163              
164             Each argument is described in detail in: L<Paws::AppStream::CreateStack>
165              
166             Returns: a L<Paws::AppStream::CreateStackResult> instance
167              
168             Create a new stack.
169              
170              
171             =head2 CreateStreamingURL(FleetName => Str, StackName => Str, UserId => Str, [ApplicationId => Str, SessionContext => Str, Validity => Int])
172              
173             Each argument is described in detail in: L<Paws::AppStream::CreateStreamingURL>
174              
175             Returns: a L<Paws::AppStream::CreateStreamingURLResult> instance
176              
177             Creates a URL to start an AppStream 2.0 streaming session for a user.
178             By default, the URL is valid only for 1 minute from the time that it is
179             generated.
180              
181              
182             =head2 DeleteFleet(Name => Str)
183              
184             Each argument is described in detail in: L<Paws::AppStream::DeleteFleet>
185              
186             Returns: a L<Paws::AppStream::DeleteFleetResult> instance
187              
188             Deletes a fleet.
189              
190              
191             =head2 DeleteStack(Name => Str)
192              
193             Each argument is described in detail in: L<Paws::AppStream::DeleteStack>
194              
195             Returns: a L<Paws::AppStream::DeleteStackResult> instance
196              
197             Deletes the stack. After this operation completes, the environment can
198             no longer be activated, and any reservations made for the stack are
199             released.
200              
201              
202             =head2 DescribeFleets([Names => ArrayRef[Str|Undef], NextToken => Str])
203              
204             Each argument is described in detail in: L<Paws::AppStream::DescribeFleets>
205              
206             Returns: a L<Paws::AppStream::DescribeFleetsResult> instance
207              
208             If fleet names are provided, this operation describes the specified
209             fleets; otherwise, all the fleets in the account are described.
210              
211              
212             =head2 DescribeImages([Names => ArrayRef[Str|Undef]])
213              
214             Each argument is described in detail in: L<Paws::AppStream::DescribeImages>
215              
216             Returns: a L<Paws::AppStream::DescribeImagesResult> instance
217              
218             Describes the images. If a list of names is not provided, all images in
219             your account are returned. This operation does not return a paginated
220             result.
221              
222              
223             =head2 DescribeSessions(FleetName => Str, StackName => Str, [AuthenticationType => Str, Limit => Int, NextToken => Str, UserId => Str])
224              
225             Each argument is described in detail in: L<Paws::AppStream::DescribeSessions>
226              
227             Returns: a L<Paws::AppStream::DescribeSessionsResult> instance
228              
229             Describes the streaming sessions for a stack and a fleet. If a user ID
230             is provided, this operation returns streaming sessions for only that
231             user. Pass this value for the C<nextToken> parameter in a subsequent
232             call to this operation to retrieve the next set of items. If an
233             authentication type is not provided, the operation defaults to users
234             authenticated using a streaming URL.
235              
236              
237             =head2 DescribeStacks([Names => ArrayRef[Str|Undef], NextToken => Str])
238              
239             Each argument is described in detail in: L<Paws::AppStream::DescribeStacks>
240              
241             Returns: a L<Paws::AppStream::DescribeStacksResult> instance
242              
243             If stack names are not provided, this operation describes the specified
244             stacks; otherwise, all stacks in the account are described. Pass the
245             C<nextToken> value in a subsequent call to this operation to retrieve
246             the next set of items.
247              
248              
249             =head2 DisassociateFleet(FleetName => Str, StackName => Str)
250              
251             Each argument is described in detail in: L<Paws::AppStream::DisassociateFleet>
252              
253             Returns: a L<Paws::AppStream::DisassociateFleetResult> instance
254              
255             Disassociates a fleet from a stack.
256              
257              
258             =head2 ExpireSession(SessionId => Str)
259              
260             Each argument is described in detail in: L<Paws::AppStream::ExpireSession>
261              
262             Returns: a L<Paws::AppStream::ExpireSessionResult> instance
263              
264             This operation immediately stops a streaming session.
265              
266              
267             =head2 ListAssociatedFleets(StackName => Str, [NextToken => Str])
268              
269             Each argument is described in detail in: L<Paws::AppStream::ListAssociatedFleets>
270              
271             Returns: a L<Paws::AppStream::ListAssociatedFleetsResult> instance
272              
273             Lists all fleets associated with the stack.
274              
275              
276             =head2 ListAssociatedStacks(FleetName => Str, [NextToken => Str])
277              
278             Each argument is described in detail in: L<Paws::AppStream::ListAssociatedStacks>
279              
280             Returns: a L<Paws::AppStream::ListAssociatedStacksResult> instance
281              
282             Lists all stacks to which the specified fleet is associated.
283              
284              
285             =head2 StartFleet(Name => Str)
286              
287             Each argument is described in detail in: L<Paws::AppStream::StartFleet>
288              
289             Returns: a L<Paws::AppStream::StartFleetResult> instance
290              
291             Starts a fleet.
292              
293              
294             =head2 StopFleet(Name => Str)
295              
296             Each argument is described in detail in: L<Paws::AppStream::StopFleet>
297              
298             Returns: a L<Paws::AppStream::StopFleetResult> instance
299              
300             Stops a fleet.
301              
302              
303             =head2 UpdateFleet(Name => Str, [AttributesToDelete => ArrayRef[Str|Undef], ComputeCapacity => L<Paws::AppStream::ComputeCapacity>, DeleteVpcConfig => Bool, Description => Str, DisconnectTimeoutInSeconds => Int, DisplayName => Str, EnableDefaultInternetAccess => Bool, ImageName => Str, InstanceType => Str, MaxUserDurationInSeconds => Int, VpcConfig => L<Paws::AppStream::VpcConfig>])
304              
305             Each argument is described in detail in: L<Paws::AppStream::UpdateFleet>
306              
307             Returns: a L<Paws::AppStream::UpdateFleetResult> instance
308              
309             Updates an existing fleet. All the attributes except the fleet name can
310             be updated in the B<STOPPED> state. When a fleet is in the B<RUNNING>
311             state, only C<DisplayName> and C<ComputeCapacity> can be updated. A
312             fleet cannot be updated in a status of B<STARTING> or B<STOPPING>.
313              
314              
315             =head2 UpdateStack(Name => Str, [DeleteStorageConnectors => Bool, Description => Str, DisplayName => Str, StorageConnectors => ArrayRef[L<Paws::AppStream::StorageConnector>]])
316              
317             Each argument is described in detail in: L<Paws::AppStream::UpdateStack>
318              
319             Returns: a L<Paws::AppStream::UpdateStackResult> instance
320              
321             Updates the specified fields in the stack with the specified name.
322              
323              
324              
325              
326             =head1 PAGINATORS
327              
328             Paginator methods are helpers that repetively call methods that return partial results
329              
330              
331              
332              
333             =head1 SEE ALSO
334              
335             This service class forms part of L<Paws>
336              
337             =head1 BUGS and CONTRIBUTIONS
338              
339             The source code is located here: https://github.com/pplu/aws-sdk-perl
340              
341             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
342              
343             =cut
344