blib/lib/Paws/SSM/GetInventory.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::GetInventory;
3 use Moose;
4 has Aggregators => (is => 'ro', isa => 'ArrayRef[Paws::SSM::InventoryAggregator]');
5 has Filters => (is => 'ro', isa => 'ArrayRef[Paws::SSM::InventoryFilter]');
6 has MaxResults => (is => 'ro', isa => 'Int');
7 has NextToken => (is => 'ro', isa => 'Str');
8 has ResultAttributes => (is => 'ro', isa => 'ArrayRef[Paws::SSM::ResultAttribute]');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetInventory');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::GetInventoryResult');
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::GetInventory - Arguments for method GetInventory on L<Paws::SSM>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method GetInventory on the
26 L<Amazon Simple Systems Manager (SSM)|Paws::SSM> service. Use the attributes of this class
27 as arguments to method GetInventory.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetInventory.
30  
31 =head1 SYNOPSIS
32  
33 my $ssm = Paws->service('SSM');
34 my $GetInventoryResult = $ssm->GetInventory(
35 Aggregators => [
36 {
37 Aggregators => <InventoryAggregatorList>,
38 Expression =>
39 'MyInventoryAggregatorExpression', # min: 1, max: 1000; OPTIONAL
40 Groups => [
41 {
42 Filters => [
43 {
44 Key => 'MyInventoryFilterKey', # min: 1, max: 200
45 Values => [ 'MyInventoryFilterValue', ... ], # min: 1, max: 40
46 Type => 'Equal'
47 , # values: Equal, NotEqual, BeginWith, LessThan, GreaterThan, Exists; OPTIONAL
48 },
49 ...
50 ], # min: 1, max: 5
51 Name => 'MyInventoryGroupName', # min: 1, max: 200
52  
53 },
54 ...
55 ], # min: 1, max: 15; OPTIONAL
56 },
57 ...
58 ], # OPTIONAL
59 Filters => [
60 {
61 Key => 'MyInventoryFilterKey', # min: 1, max: 200
62 Values => [ 'MyInventoryFilterValue', ... ], # min: 1, max: 40
63 Type => 'Equal'
64 , # values: Equal, NotEqual, BeginWith, LessThan, GreaterThan, Exists; OPTIONAL
65 },
66 ...
67 ], # OPTIONAL
68 MaxResults => 1, # OPTIONAL
69 NextToken => 'MyNextToken', # OPTIONAL
70 ResultAttributes => [
71 {
72 TypeName => 'MyInventoryItemTypeName', # min: 1, max: 100
73  
74 },
75 ...
76 ], # OPTIONAL
77 );
78  
79 # Results:
80 my $Entities = $GetInventoryResult->Entities;
81 my $NextToken = $GetInventoryResult->NextToken;
82  
83 # Returns a L<Paws::SSM::GetInventoryResult> object.
84  
85 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.
86 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm/GetInventory>
87  
88 =head1 ATTRIBUTES
89  
90  
91 =head2 Aggregators => ArrayRef[L<Paws::SSM::InventoryAggregator>]
92  
93 Returns counts of inventory types based on one or more expressions. For
94 example, if you aggregate by using an expression that uses the
95 C<AWS:InstanceInformation.PlatformType> type, you can see a count of
96 how many Windows and Linux instances exist in your inventoried fleet.
97  
98  
99  
100 =head2 Filters => ArrayRef[L<Paws::SSM::InventoryFilter>]
101  
102 One or more filters. Use a filter to return a more specific list of
103 results.
104  
105  
106  
107 =head2 MaxResults => Int
108  
109 The maximum number of items to return for this call. The call also
110 returns a token that you can specify in a subsequent call to get the
111 next set of results.
112  
113  
114  
115 =head2 NextToken => Str
116  
117 The token for the next set of items to return. (You received this token
118 from a previous call.)
119  
120  
121  
122 =head2 ResultAttributes => ArrayRef[L<Paws::SSM::ResultAttribute>]
123  
124 The list of inventory item types to return.
125  
126  
127  
128  
129 =head1 SEE ALSO
130  
131 This class forms part of L<Paws>, documenting arguments for method GetInventory in L<Paws::SSM>
132  
133 =head1 BUGS and CONTRIBUTIONS
134  
135 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
136  
137 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
138  
139 =cut
140