File Coverage

blib/lib/Paws/SSM/SendCommand.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::SSM::SendCommand;
3 1     1   280 use Moose;
  1     1   4  
  1         6  
  1         585  
  1         4  
  1         8  
4             has Comment => (is => 'ro', isa => 'Str');
5             has DocumentHash => (is => 'ro', isa => 'Str');
6             has DocumentHashType => (is => 'ro', isa => 'Str');
7             has DocumentName => (is => 'ro', isa => 'Str', required => 1);
8             has InstanceIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
9             has MaxConcurrency => (is => 'ro', isa => 'Str');
10             has MaxErrors => (is => 'ro', isa => 'Str');
11             has NotificationConfig => (is => 'ro', isa => 'Paws::SSM::NotificationConfig');
12             has OutputS3BucketName => (is => 'ro', isa => 'Str');
13             has OutputS3KeyPrefix => (is => 'ro', isa => 'Str');
14             has OutputS3Region => (is => 'ro', isa => 'Str');
15             has Parameters => (is => 'ro', isa => 'Paws::SSM::Parameters');
16             has ServiceRoleArn => (is => 'ro', isa => 'Str');
17             has Targets => (is => 'ro', isa => 'ArrayRef[Paws::SSM::Target]');
18             has TimeoutSeconds => (is => 'ro', isa => 'Int');
19              
20 1     1   5457 use MooseX::ClassAttribute;
  1     1   2  
  1         10  
  1         6279  
  1         3  
  1         13  
21              
22             class_has _api_call => (isa => 'Str', is => 'ro', default => 'SendCommand');
23             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::SendCommandResult');
24             class_has _result_key => (isa => 'Str', is => 'ro');
25             1;
26              
27             ### main pod documentation begin ###
28              
29             =head1 NAME
30              
31             Paws::SSM::SendCommand - Arguments for method SendCommand on Paws::SSM
32              
33             =head1 DESCRIPTION
34              
35             This class represents the parameters used for calling the method SendCommand on the
36             Amazon Simple Systems Manager (SSM) service. Use the attributes of this class
37             as arguments to method SendCommand.
38              
39             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendCommand.
40              
41             As an example:
42              
43             $service_obj->SendCommand(Att1 => $value1, Att2 => $value2, ...);
44              
45             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.
46              
47             =head1 ATTRIBUTES
48              
49              
50             =head2 Comment => Str
51              
52             User-specified information about the command, such as a brief
53             description of what the command should do.
54              
55              
56              
57             =head2 DocumentHash => Str
58              
59             The Sha256 or Sha1 hash created by the system when the document was
60             created.
61              
62             Sha1 hashes have been deprecated.
63              
64              
65              
66             =head2 DocumentHashType => Str
67              
68             Sha256 or Sha1.
69              
70             Sha1 hashes have been deprecated.
71              
72             Valid values are: C<"Sha256">, C<"Sha1">
73              
74             =head2 B<REQUIRED> DocumentName => Str
75              
76             Required. The name of the Systems Manager document to execute. This can
77             be a public document or a custom document.
78              
79              
80              
81             =head2 InstanceIds => ArrayRef[Str|Undef]
82              
83             The instance IDs where the command should execute. You can specify a
84             maximum of 50 IDs. If you prefer not to list individual instance IDs,
85             you can instead send commands to a fleet of instances using the Targets
86             parameter, which accepts EC2 tags. For more information about how to
87             use Targets, see Sending Commands to a Fleet.
88              
89              
90              
91             =head2 MaxConcurrency => Str
92              
93             (Optional) The maximum number of instances that are allowed to execute
94             the command at the same time. You can specify a number such as 10 or a
95             percentage such as 10%. The default value is 50. For more information
96             about how to use MaxConcurrency, see Using Concurrency Controls.
97              
98              
99              
100             =head2 MaxErrors => Str
101              
102             The maximum number of errors allowed without the command failing. When
103             the command fails one more time beyond the value of MaxErrors, the
104             systems stops sending the command to additional targets. You can
105             specify a number like 10 or a percentage like 10%. The default value is
106             50. For more information about how to use MaxErrors, see Using Error
107             Controls.
108              
109              
110              
111             =head2 NotificationConfig => L<Paws::SSM::NotificationConfig>
112              
113             Configurations for sending notifications.
114              
115              
116              
117             =head2 OutputS3BucketName => Str
118              
119             The name of the S3 bucket where command execution responses should be
120             stored.
121              
122              
123              
124             =head2 OutputS3KeyPrefix => Str
125              
126             The directory structure within the S3 bucket where the responses should
127             be stored.
128              
129              
130              
131             =head2 OutputS3Region => Str
132              
133             (Deprecated) You can no longer specify this parameter. The system
134             ignores it. Instead, Systems Manager automatically determines the
135             Amazon S3 bucket region.
136              
137              
138              
139             =head2 Parameters => L<Paws::SSM::Parameters>
140              
141             The required and optional parameters specified in the document being
142             executed.
143              
144              
145              
146             =head2 ServiceRoleArn => Str
147              
148             The IAM role that Systems Manager uses to send notifications.
149              
150              
151              
152             =head2 Targets => ArrayRef[L<Paws::SSM::Target>]
153              
154             (Optional) An array of search criteria that targets instances using a
155             Key,Value combination that you specify. Targets is required if you
156             don't provide one or more instance IDs in the call. For more
157             information about how to use Targets, see Sending Commands to a Fleet.
158              
159              
160              
161             =head2 TimeoutSeconds => Int
162              
163             If this time is reached and the command has not already started
164             executing, it will not execute.
165              
166              
167              
168              
169             =head1 SEE ALSO
170              
171             This class forms part of L<Paws>, documenting arguments for method SendCommand in L<Paws::SSM>
172              
173             =head1 BUGS and CONTRIBUTIONS
174              
175             The source code is located here: https://github.com/pplu/aws-sdk-perl
176              
177             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
178              
179             =cut
180