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

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SSM::GetDocument;
3 use Moose;
4 has DocumentFormat => (is => 'ro', isa => 'Str');
5 has DocumentVersion => (is => 'ro', isa => 'Str');
6 has Name => (is => 'ro', isa => 'Str', required => 1);
7 has VersionName => (is => 'ro', isa => 'Str');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetDocument');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::GetDocumentResult');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::SSM::GetDocument - Arguments for method GetDocument on L<Paws::SSM>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method GetDocument on the
25 L<Amazon Simple Systems Manager (SSM)|Paws::SSM> service. Use the attributes of this class
26 as arguments to method GetDocument.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetDocument.
29  
30 =head1 SYNOPSIS
31  
32 my $ssm = Paws->service('SSM');
33 my $GetDocumentResult = $ssm->GetDocument(
34 Name => 'MyDocumentARN',
35 DocumentFormat => 'YAML', # OPTIONAL
36 DocumentVersion => 'MyDocumentVersion', # OPTIONAL
37 VersionName => 'MyDocumentVersionName', # OPTIONAL
38 );
39  
40 # Results:
41 my $AttachmentsContent = $GetDocumentResult->AttachmentsContent;
42 my $Content = $GetDocumentResult->Content;
43 my $CreatedDate = $GetDocumentResult->CreatedDate;
44 my $DisplayName = $GetDocumentResult->DisplayName;
45 my $DocumentFormat = $GetDocumentResult->DocumentFormat;
46 my $DocumentType = $GetDocumentResult->DocumentType;
47 my $DocumentVersion = $GetDocumentResult->DocumentVersion;
48 my $Name = $GetDocumentResult->Name;
49 my $Requires = $GetDocumentResult->Requires;
50 my $ReviewStatus = $GetDocumentResult->ReviewStatus;
51 my $Status = $GetDocumentResult->Status;
52 my $StatusInformation = $GetDocumentResult->StatusInformation;
53 my $VersionName = $GetDocumentResult->VersionName;
54  
55 # Returns a L<Paws::SSM::GetDocumentResult> object.
56  
57 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.
58 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm/GetDocument>
59  
60 =head1 ATTRIBUTES
61  
62  
63 =head2 DocumentFormat => Str
64  
65 Returns the document in the specified format. The document format can
66 be either JSON or YAML. JSON is the default format.
67  
68 Valid values are: C<"YAML">, C<"JSON">, C<"TEXT">
69  
70 =head2 DocumentVersion => Str
71  
72 The document version for which you want information.
73  
74  
75  
76 =head2 B<REQUIRED> Name => Str
77  
78 The name of the Systems Manager document.
79  
80  
81  
82 =head2 VersionName => Str
83  
84 An optional field specifying the version of the artifact associated
85 with the document. For example, "Release 12, Update 6". This value is
86 unique across all versions of a document and can't be changed.
87  
88  
89  
90  
91 =head1 SEE ALSO
92  
93 This class forms part of L<Paws>, documenting arguments for method GetDocument in L<Paws::SSM>
94  
95 =head1 BUGS and CONTRIBUTIONS
96  
97 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
98  
99 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
100  
101 =cut
102