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

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SSM::GetDeployablePatchSnapshotForInstance;
3 use Moose;
4 has BaselineOverride => (is => 'ro', isa => 'Paws::SSM::BaselineOverride');
5 has InstanceId => (is => 'ro', isa => 'Str', required => 1);
6 has SnapshotId => (is => 'ro', isa => 'Str', required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetDeployablePatchSnapshotForInstance');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::GetDeployablePatchSnapshotForInstanceResult');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::SSM::GetDeployablePatchSnapshotForInstance - Arguments for method GetDeployablePatchSnapshotForInstance on L<Paws::SSM>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method GetDeployablePatchSnapshotForInstance on the
24 L<Amazon Simple Systems Manager (SSM)|Paws::SSM> service. Use the attributes of this class
25 as arguments to method GetDeployablePatchSnapshotForInstance.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetDeployablePatchSnapshotForInstance.
28  
29 =head1 SYNOPSIS
30  
31 my $ssm = Paws->service('SSM');
32 my $GetDeployablePatchSnapshotForInstanceResult =
33 $ssm->GetDeployablePatchSnapshotForInstance(
34 InstanceId => 'MyInstanceId',
35 SnapshotId => 'MySnapshotId',
36 BaselineOverride => {
37 ApprovalRules => {
38 PatchRules => [
39 {
40 PatchFilterGroup => {
41 PatchFilters => [
42 {
43 Key => 'ARCH'
44 , # values: ARCH, ADVISORY_ID, BUGZILLA_ID, PATCH_SET, PRODUCT, PRODUCT_FAMILY, CLASSIFICATION, CVE_ID, EPOCH, MSRC_SEVERITY, NAME, PATCH_ID, SECTION, PRIORITY, REPOSITORY, RELEASE, SEVERITY, SECURITY, VERSION
45 Values => [
46 'MyPatchFilterValue', ... # min: 1, max: 64
47 ], # min: 1, max: 20
48  
49 },
50 ...
51 ], # max: 4
52  
53 },
54 ApproveAfterDays => 1, # max: 360; OPTIONAL
55 ApproveUntilDate =>
56 'MyPatchStringDateTime', # min: 1, max: 10; OPTIONAL
57 ComplianceLevel => 'CRITICAL'
58 , # values: CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED; OPTIONAL
59 EnableNonSecurity => 1, # OPTIONAL
60 },
61 ...
62 ], # max: 10
63  
64 }, # OPTIONAL
65 ApprovedPatches => [
66 'MyPatchId', ... # min: 1, max: 100
67 ], # max: 50; OPTIONAL
68 ApprovedPatchesComplianceLevel => 'CRITICAL'
69 , # values: CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED; OPTIONAL
70 ApprovedPatchesEnableNonSecurity => 1, # OPTIONAL
71 GlobalFilters => {
72 PatchFilters => [
73 {
74 Key => 'ARCH'
75 , # values: ARCH, ADVISORY_ID, BUGZILLA_ID, PATCH_SET, PRODUCT, PRODUCT_FAMILY, CLASSIFICATION, CVE_ID, EPOCH, MSRC_SEVERITY, NAME, PATCH_ID, SECTION, PRIORITY, REPOSITORY, RELEASE, SEVERITY, SECURITY, VERSION
76 Values => [
77 'MyPatchFilterValue', ... # min: 1, max: 64
78 ], # min: 1, max: 20
79  
80 },
81 ...
82 ], # max: 4
83  
84 },
85 OperatingSystem => 'WINDOWS'
86 , # values: WINDOWS, AMAZON_LINUX, AMAZON_LINUX_2, UBUNTU, REDHAT_ENTERPRISE_LINUX, SUSE, CENTOS, ORACLE_LINUX, DEBIAN, MACOS; OPTIONAL
87 RejectedPatches => [
88 'MyPatchId', ... # min: 1, max: 100
89 ], # max: 50; OPTIONAL
90 RejectedPatchesAction =>
91 'ALLOW_AS_DEPENDENCY', # values: ALLOW_AS_DEPENDENCY, BLOCK; OPTIONAL
92 Sources => [
93 {
94 Configuration => 'MyPatchSourceConfiguration', # min: 1, max: 1024
95 Name => 'MyPatchSourceName',
96 Products => [
97 'MyPatchSourceProduct', ... # min: 1, max: 128
98 ], # min: 1, max: 20
99  
100 },
101 ...
102 ], # max: 20; OPTIONAL
103 }, # OPTIONAL
104 );
105  
106 # Results:
107 my $InstanceId = $GetDeployablePatchSnapshotForInstanceResult->InstanceId;
108 my $Product = $GetDeployablePatchSnapshotForInstanceResult->Product;
109 my $SnapshotDownloadUrl =
110 $GetDeployablePatchSnapshotForInstanceResult->SnapshotDownloadUrl;
111 my $SnapshotId = $GetDeployablePatchSnapshotForInstanceResult->SnapshotId;
112  
113 # Returns a L<Paws::SSM::GetDeployablePatchSnapshotForInstanceResult> object.
114  
115 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.
116 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm/GetDeployablePatchSnapshotForInstance>
117  
118 =head1 ATTRIBUTES
119  
120  
121 =head2 BaselineOverride => L<Paws::SSM::BaselineOverride>
122  
123 Defines the basic information about a patch baseline override.
124  
125  
126  
127 =head2 B<REQUIRED> InstanceId => Str
128  
129 The ID of the instance for which the appropriate patch snapshot should
130 be retrieved.
131  
132  
133  
134 =head2 B<REQUIRED> SnapshotId => Str
135  
136 The user-defined snapshot ID.
137  
138  
139  
140  
141 =head1 SEE ALSO
142  
143 This class forms part of L<Paws>, documenting arguments for method GetDeployablePatchSnapshotForInstance in L<Paws::SSM>
144  
145 =head1 BUGS and CONTRIBUTIONS
146  
147 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
148  
149 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
150  
151 =cut
152