blib/lib/Paws/Config/PutConformancePack.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Config::PutConformancePack;
3 use Moose;
4 has ConformancePackInputParameters => (is => 'ro', isa => 'ArrayRef[Paws::Config::ConformancePackInputParameter]');
5 has ConformancePackName => (is => 'ro', isa => 'Str', required => 1);
6 has DeliveryS3Bucket => (is => 'ro', isa => 'Str');
7 has DeliveryS3KeyPrefix => (is => 'ro', isa => 'Str');
8 has TemplateBody => (is => 'ro', isa => 'Str');
9 has TemplateS3Uri => (is => 'ro', isa => 'Str');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutConformancePack');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Config::PutConformancePackResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Config::PutConformancePack - Arguments for method PutConformancePack on L<Paws::Config>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method PutConformancePack on the
27 L<AWS Config|Paws::Config> service. Use the attributes of this class
28 as arguments to method PutConformancePack.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutConformancePack.
31  
32 =head1 SYNOPSIS
33  
34 my $config = Paws->service('Config');
35 my $PutConformancePackResponse = $config->PutConformancePack(
36 ConformancePackName => 'MyConformancePackName',
37 ConformancePackInputParameters => [
38 {
39 ParameterName => 'MyParameterName', # max: 255
40 ParameterValue => 'MyParameterValue', # max: 4096
41  
42 },
43 ...
44 ], # OPTIONAL
45 DeliveryS3Bucket => 'MyDeliveryS3Bucket', # OPTIONAL
46 DeliveryS3KeyPrefix => 'MyDeliveryS3KeyPrefix', # OPTIONAL
47 TemplateBody => 'MyTemplateBody', # OPTIONAL
48 TemplateS3Uri => 'MyTemplateS3Uri', # OPTIONAL
49 );
50  
51 # Results:
52 my $ConformancePackArn = $PutConformancePackResponse->ConformancePackArn;
53  
54 # Returns a L<Paws::Config::PutConformancePackResponse> object.
55  
56 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.
57 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/config/PutConformancePack>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 ConformancePackInputParameters => ArrayRef[L<Paws::Config::ConformancePackInputParameter>]
63  
64 A list of C<ConformancePackInputParameter> objects.
65  
66  
67  
68 =head2 B<REQUIRED> ConformancePackName => Str
69  
70 Name of the conformance pack you want to create.
71  
72  
73  
74 =head2 DeliveryS3Bucket => Str
75  
76 Amazon S3 bucket where AWS Config stores conformance pack templates.
77  
78 This field is optional.
79  
80  
81  
82 =head2 DeliveryS3KeyPrefix => Str
83  
84 The prefix for the Amazon S3 bucket.
85  
86 This field is optional.
87  
88  
89  
90 =head2 TemplateBody => Str
91  
92 A string containing full conformance pack template body. Structure
93 containing the template body with a minimum length of 1 byte and a
94 maximum length of 51,200 bytes.
95  
96 You can only use a YAML template with one resource type, that is,
97 config rule and a remediation action.
98  
99  
100  
101 =head2 TemplateS3Uri => Str
102  
103 Location of file containing the template body
104 (C<s3://bucketname/prefix>). The uri must point to the conformance pack
105 template (max size: 300 KB) that is located in an Amazon S3 bucket in
106 the same region as the conformance pack.
107  
108 You must have access to read Amazon S3 bucket.
109  
110  
111  
112  
113 =head1 SEE ALSO
114  
115 This class forms part of L<Paws>, documenting arguments for method PutConformancePack in L<Paws::Config>
116  
117 =head1 BUGS and CONTRIBUTIONS
118  
119 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
120  
121 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
122  
123 =cut
124