blib/lib/Paws/SSM/ListCommands.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SSM::ListCommands;
3 use Moose;
4 has CommandId => (is => 'ro', isa => 'Str');
5 has Filters => (is => 'ro', isa => 'ArrayRef[Paws::SSM::CommandFilter]');
6 has InstanceId => (is => 'ro', isa => 'Str');
7 has MaxResults => (is => 'ro', isa => 'Int');
8 has NextToken => (is => 'ro', isa => 'Str');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListCommands');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::ListCommandsResult');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::SSM::ListCommands - Arguments for method ListCommands on L<Paws::SSM>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method ListCommands on the
26 L<Amazon Simple Systems Manager (SSM)|Paws::SSM> service. Use the attributes of this class
27 as arguments to method ListCommands.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListCommands.
30  
31 =head1 SYNOPSIS
32  
33 my $ssm = Paws->service('SSM');
34 my $ListCommandsResult = $ssm->ListCommands(
35 CommandId => 'MyCommandId', # OPTIONAL
36 Filters => [
37 {
38 Key => 'InvokedAfter'
39 , # values: InvokedAfter, InvokedBefore, Status, ExecutionStage, DocumentName
40 Value => 'MyCommandFilterValue', # min: 1, max: 128
41  
42 },
43 ...
44 ], # OPTIONAL
45 InstanceId => 'MyInstanceId', # OPTIONAL
46 MaxResults => 1, # OPTIONAL
47 NextToken => 'MyNextToken', # OPTIONAL
48 );
49  
50 # Results:
51 my $Commands = $ListCommandsResult->Commands;
52 my $NextToken = $ListCommandsResult->NextToken;
53  
54 # Returns a L<Paws::SSM::ListCommandsResult> object.
55  
56 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.
57 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm/ListCommands>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 CommandId => Str
63  
64 (Optional) If provided, lists only the specified command.
65  
66  
67  
68 =head2 Filters => ArrayRef[L<Paws::SSM::CommandFilter>]
69  
70 (Optional) One or more filters. Use a filter to return a more specific
71 list of results.
72  
73  
74  
75 =head2 InstanceId => Str
76  
77 (Optional) Lists commands issued against this instance ID.
78  
79 You can't specify an instance ID in the same command that you specify
80 C<Status> = C<Pending>. This is because the command has not reached the
81 instance yet.
82  
83  
84  
85 =head2 MaxResults => Int
86  
87 (Optional) The maximum number of items to return for this call. The
88 call also returns a token that you can specify in a subsequent call to
89 get the next set of results.
90  
91  
92  
93 =head2 NextToken => Str
94  
95 (Optional) The token for the next set of items to return. (You received
96 this token from a previous call.)
97  
98  
99  
100  
101 =head1 SEE ALSO
102  
103 This class forms part of L<Paws>, documenting arguments for method ListCommands in L<Paws::SSM>
104  
105 =head1 BUGS and CONTRIBUTIONS
106  
107 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
108  
109 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
110  
111 =cut
112