File Coverage

blib/lib/Paws/SSM/CreateAssociation.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::SSM::CreateAssociation;
3 1     1   829 use Moose;
  1         4  
  1         14  
4             has DocumentVersion => (is => 'ro', isa => 'Str');
5             has InstanceId => (is => 'ro', isa => 'Str');
6             has Name => (is => 'ro', isa => 'Str', required => 1);
7             has OutputLocation => (is => 'ro', isa => 'Paws::SSM::InstanceAssociationOutputLocation');
8             has Parameters => (is => 'ro', isa => 'Paws::SSM::Parameters');
9             has ScheduleExpression => (is => 'ro', isa => 'Str');
10             has Targets => (is => 'ro', isa => 'ArrayRef[Paws::SSM::Target]');
11              
12 1     1   7574 use MooseX::ClassAttribute;
  1         3  
  1         10  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAssociation');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::CreateAssociationResult');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::SSM::CreateAssociation - Arguments for method CreateAssociation on Paws::SSM
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method CreateAssociation on the
28             Amazon Simple Systems Manager (SSM) service. Use the attributes of this class
29             as arguments to method CreateAssociation.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAssociation.
32              
33             As an example:
34              
35             $service_obj->CreateAssociation(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 DocumentVersion => Str
43              
44             The document version you want to associate with the target(s). Can be a
45             specific version or the default version.
46              
47              
48              
49             =head2 InstanceId => Str
50              
51             The instance ID.
52              
53              
54              
55             =head2 B<REQUIRED> Name => Str
56              
57             The name of the Systems Manager document.
58              
59              
60              
61             =head2 OutputLocation => L<Paws::SSM::InstanceAssociationOutputLocation>
62              
63             An Amazon S3 bucket where you want to store the output details of the
64             request.
65              
66              
67              
68             =head2 Parameters => L<Paws::SSM::Parameters>
69              
70             The parameters for the documents runtime configuration.
71              
72              
73              
74             =head2 ScheduleExpression => Str
75              
76             A cron expression when the association will be applied to the
77             target(s).
78              
79              
80              
81             =head2 Targets => ArrayRef[L<Paws::SSM::Target>]
82              
83             The targets (either instances or tags) for the association.
84              
85              
86              
87              
88             =head1 SEE ALSO
89              
90             This class forms part of L<Paws>, documenting arguments for method CreateAssociation in L<Paws::SSM>
91              
92             =head1 BUGS and CONTRIBUTIONS
93              
94             The source code is located here: https://github.com/pplu/aws-sdk-perl
95              
96             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
97              
98             =cut
99