blib/lib/Paws/ImageBuilder/ImportComponent.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 36 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ImageBuilder::ImportComponent;
3 use Moose;
4 has ChangeDescription => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'changeDescription');
5 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken', required => 1);
6 has Data => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'data');
7 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
8 has Format => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'format', required => 1);
9 has KmsKeyId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'kmsKeyId');
10 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
11 has Platform => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'platform', required => 1);
12 has SemanticVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'semanticVersion', required => 1);
13 has Tags => (is => 'ro', isa => 'Paws::ImageBuilder::TagMap', traits => ['NameInRequest'], request_name => 'tags');
14 has Type => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'type', required => 1);
15 has Uri => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'uri');
16  
17 use MooseX::ClassAttribute;
18  
19 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ImportComponent');
20 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/ImportComponent');
21 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
22 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ImageBuilder::ImportComponentResponse');
23 1;
24  
25 ### main pod documentation begin ###
26  
27 =head1 NAME
28  
29 Paws::ImageBuilder::ImportComponent - Arguments for method ImportComponent on L<Paws::ImageBuilder>
30  
31 =head1 DESCRIPTION
32  
33 This class represents the parameters used for calling the method ImportComponent on the
34 L<EC2 Image Builder|Paws::ImageBuilder> service. Use the attributes of this class
35 as arguments to method ImportComponent.
36  
37 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ImportComponent.
38  
39 =head1 SYNOPSIS
40  
41 my $imagebuilder = Paws->service('ImageBuilder');
42 my $ImportComponentResponse = $imagebuilder->ImportComponent(
43 ClientToken => 'MyClientToken',
44 Format => 'SHELL',
45 Name => 'MyResourceName',
46 Platform => 'Windows',
47 SemanticVersion => 'MyVersionNumber',
48 Type => 'BUILD',
49 ChangeDescription => 'MyNonEmptyString', # OPTIONAL
50 Data => 'MyNonEmptyString', # OPTIONAL
51 Description => 'MyNonEmptyString', # OPTIONAL
52 KmsKeyId => 'MyNonEmptyString', # OPTIONAL
53 Tags => {
54 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
55 }, # OPTIONAL
56 Uri => 'MyUri', # OPTIONAL
57 );
58  
59 # Results:
60 my $ClientToken = $ImportComponentResponse->ClientToken;
61 my $ComponentBuildVersionArn =
62 $ImportComponentResponse->ComponentBuildVersionArn;
63 my $RequestId = $ImportComponentResponse->RequestId;
64  
65 # Returns a L<Paws::ImageBuilder::ImportComponentResponse> object.
66  
67 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.
68 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/imagebuilder/ImportComponent>
69  
70 =head1 ATTRIBUTES
71  
72  
73 =head2 ChangeDescription => Str
74  
75 The change description of the component. Describes what change has been
76 made in this version, or what makes this version different from other
77 versions of this component.
78  
79  
80  
81 =head2 B<REQUIRED> ClientToken => Str
82  
83 The idempotency token of the component.
84  
85  
86  
87 =head2 Data => Str
88  
89 The data of the component. Used to specify the data inline. Either
90 C<data> or C<uri> can be used to specify the data within the component.
91  
92  
93  
94 =head2 Description => Str
95  
96 The description of the component. Describes the contents of the
97 component.
98  
99  
100  
101 =head2 B<REQUIRED> Format => Str
102  
103 The format of the resource that you want to import as a component.
104  
105 Valid values are: C<"SHELL">
106  
107 =head2 KmsKeyId => Str
108  
109 The ID of the KMS key that should be used to encrypt this component.
110  
111  
112  
113 =head2 B<REQUIRED> Name => Str
114  
115 The name of the component.
116  
117  
118  
119 =head2 B<REQUIRED> Platform => Str
120  
121 The platform of the component.
122  
123 Valid values are: C<"Windows">, C<"Linux">
124  
125 =head2 B<REQUIRED> SemanticVersion => Str
126  
127 The semantic version of the component. This version follows the
128 semantic version syntax. For example, major.minor.patch. This could be
129 versioned like software (2.0.1) or like a date (2019.12.01).
130  
131  
132  
133 =head2 Tags => L<Paws::ImageBuilder::TagMap>
134  
135 The tags of the component.
136  
137  
138  
139 =head2 B<REQUIRED> Type => Str
140  
141 The type of the component denotes whether the component is used to
142 build the image or only to test it.
143  
144 Valid values are: C<"BUILD">, C<"TEST">
145  
146 =head2 Uri => Str
147  
148 The uri of the component. Must be an Amazon S3 URL and the requester
149 must have permission to access the Amazon S3 bucket. If you use Amazon
150 S3, you can specify component content up to your service quota. Either
151 C<data> or C<uri> can be used to specify the data within the component.
152  
153  
154  
155  
156 =head1 SEE ALSO
157  
158 This class forms part of L<Paws>, documenting arguments for method ImportComponent in L<Paws::ImageBuilder>
159  
160 =head1 BUGS and CONTRIBUTIONS
161  
162 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
163  
164 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
165  
166 =cut
167