blib/lib/Paws/CodeBuild/UpdateProject.pm untested

filter: Statementstmt 0.0% 0 / 51 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 53 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CodeBuild::UpdateProject;
3 use Moose;
4 has Artifacts => (is => 'ro', isa => 'Paws::CodeBuild::ProjectArtifacts', traits => ['NameInRequest'], request_name => 'artifacts' );
5 has BadgeEnabled => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'badgeEnabled' );
6 has BuildBatchConfig => (is => 'ro', isa => 'Paws::CodeBuild::ProjectBuildBatchConfig', traits => ['NameInRequest'], request_name => 'buildBatchConfig' );
7 has Cache => (is => 'ro', isa => 'Paws::CodeBuild::ProjectCache', traits => ['NameInRequest'], request_name => 'cache' );
8 has ConcurrentBuildLimit => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'concurrentBuildLimit' );
9 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
10 has EncryptionKey => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'encryptionKey' );
11 has Environment => (is => 'ro', isa => 'Paws::CodeBuild::ProjectEnvironment', traits => ['NameInRequest'], request_name => 'environment' );
12 has FileSystemLocations => (is => 'ro', isa => 'ArrayRef[Paws::CodeBuild::ProjectFileSystemLocation]', traits => ['NameInRequest'], request_name => 'fileSystemLocations' );
13 has LogsConfig => (is => 'ro', isa => 'Paws::CodeBuild::LogsConfig', traits => ['NameInRequest'], request_name => 'logsConfig' );
14 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
15 has QueuedTimeoutInMinutes => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'queuedTimeoutInMinutes' );
16 has SecondaryArtifacts => (is => 'ro', isa => 'ArrayRef[Paws::CodeBuild::ProjectArtifacts]', traits => ['NameInRequest'], request_name => 'secondaryArtifacts' );
17 has SecondarySources => (is => 'ro', isa => 'ArrayRef[Paws::CodeBuild::ProjectSource]', traits => ['NameInRequest'], request_name => 'secondarySources' );
18 has SecondarySourceVersions => (is => 'ro', isa => 'ArrayRef[Paws::CodeBuild::ProjectSourceVersion]', traits => ['NameInRequest'], request_name => 'secondarySourceVersions' );
19 has ServiceRole => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'serviceRole' );
20 has Source => (is => 'ro', isa => 'Paws::CodeBuild::ProjectSource', traits => ['NameInRequest'], request_name => 'source' );
21 has SourceVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceVersion' );
22 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::CodeBuild::Tag]', traits => ['NameInRequest'], request_name => 'tags' );
23 has TimeoutInMinutes => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'timeoutInMinutes' );
24 has VpcConfig => (is => 'ro', isa => 'Paws::CodeBuild::VpcConfig', traits => ['NameInRequest'], request_name => 'vpcConfig' );
25  
26 use MooseX::ClassAttribute;
27  
28 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateProject');
29 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeBuild::UpdateProjectOutput');
30 class_has _result_key => (isa => 'Str', is => 'ro');
31 1;
32  
33 ### main pod documentation begin ###
34  
35 =head1 NAME
36  
37 Paws::CodeBuild::UpdateProject - Arguments for method UpdateProject on L<Paws::CodeBuild>
38  
39 =head1 DESCRIPTION
40  
41 This class represents the parameters used for calling the method UpdateProject on the
42 L<AWS CodeBuild|Paws::CodeBuild> service. Use the attributes of this class
43 as arguments to method UpdateProject.
44  
45 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateProject.
46  
47 =head1 SYNOPSIS
48  
49 my $codebuild = Paws->service('CodeBuild');
50 my $UpdateProjectOutput = $codebuild->UpdateProject(
51 Name => 'MyNonEmptyString',
52 Artifacts => {
53 Type => 'CODEPIPELINE', # values: CODEPIPELINE, S3, NO_ARTIFACTS
54 ArtifactIdentifier => 'MyString', # OPTIONAL
55 EncryptionDisabled => 1, # OPTIONAL
56 Location => 'MyString', # OPTIONAL
57 Name => 'MyString', # OPTIONAL
58 NamespaceType => 'NONE', # values: NONE, BUILD_ID; OPTIONAL
59 OverrideArtifactName => 1, # OPTIONAL
60 Packaging => 'NONE', # values: NONE, ZIP; OPTIONAL
61 Path => 'MyString', # OPTIONAL
62 }, # OPTIONAL
63 BadgeEnabled => 1, # OPTIONAL
64 BuildBatchConfig => {
65 CombineArtifacts => 1, # OPTIONAL
66 Restrictions => {
67 ComputeTypesAllowed => [
68 'MyNonEmptyString', ... # min: 1
69 ], # OPTIONAL
70 MaximumBuildsAllowed => 1, # OPTIONAL
71 }, # OPTIONAL
72 ServiceRole => 'MyNonEmptyString', # min: 1
73 TimeoutInMins => 1, # OPTIONAL
74 }, # OPTIONAL
75 Cache => {
76 Type => 'NO_CACHE', # values: NO_CACHE, S3, LOCAL
77 Location => 'MyString', # OPTIONAL
78 Modes => [
79 'LOCAL_DOCKER_LAYER_CACHE',
80 ... # values: LOCAL_DOCKER_LAYER_CACHE, LOCAL_SOURCE_CACHE, LOCAL_CUSTOM_CACHE
81 ], # OPTIONAL
82 }, # OPTIONAL
83 ConcurrentBuildLimit => 1, # OPTIONAL
84 Description => 'MyProjectDescription', # OPTIONAL
85 EncryptionKey => 'MyNonEmptyString', # OPTIONAL
86 Environment => {
87 ComputeType => 'BUILD_GENERAL1_SMALL'
88 , # values: BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE, BUILD_GENERAL1_2XLARGE
89 Image => 'MyNonEmptyString', # min: 1
90 Type => 'WINDOWS_CONTAINER'
91 , # values: WINDOWS_CONTAINER, LINUX_CONTAINER, LINUX_GPU_CONTAINER, ARM_CONTAINER, WINDOWS_SERVER_2019_CONTAINER
92 Certificate => 'MyString', # OPTIONAL
93 EnvironmentVariables => [
94 {
95 Name => 'MyNonEmptyString', # min: 1
96 Value => 'MyString', # OPTIONAL
97 Type => 'PLAINTEXT'
98 , # values: PLAINTEXT, PARAMETER_STORE, SECRETS_MANAGER; OPTIONAL
99 },
100 ...
101 ], # OPTIONAL
102 ImagePullCredentialsType =>
103 'CODEBUILD', # values: CODEBUILD, SERVICE_ROLE; OPTIONAL
104 PrivilegedMode => 1, # OPTIONAL
105 RegistryCredential => {
106 Credential => 'MyNonEmptyString', # min: 1
107 CredentialProvider => 'SECRETS_MANAGER', # values: SECRETS_MANAGER
108  
109 }, # OPTIONAL
110 }, # OPTIONAL
111 FileSystemLocations => [
112 {
113 Identifier => 'MyString', # OPTIONAL
114 Location => 'MyString', # OPTIONAL
115 MountOptions => 'MyString', # OPTIONAL
116 MountPoint => 'MyString', # OPTIONAL
117 Type => 'EFS', # values: EFS; OPTIONAL
118 },
119 ...
120 ], # OPTIONAL
121 LogsConfig => {
122 CloudWatchLogs => {
123 Status => 'ENABLED', # values: ENABLED, DISABLED
124 GroupName => 'MyString', # OPTIONAL
125 StreamName => 'MyString', # OPTIONAL
126 }, # OPTIONAL
127 S3Logs => {
128 Status => 'ENABLED', # values: ENABLED, DISABLED
129 EncryptionDisabled => 1, # OPTIONAL
130 Location => 'MyString', # OPTIONAL
131 }, # OPTIONAL
132 }, # OPTIONAL
133 QueuedTimeoutInMinutes => 1, # OPTIONAL
134 SecondaryArtifacts => [
135 {
136 Type => 'CODEPIPELINE', # values: CODEPIPELINE, S3, NO_ARTIFACTS
137 ArtifactIdentifier => 'MyString', # OPTIONAL
138 EncryptionDisabled => 1, # OPTIONAL
139 Location => 'MyString', # OPTIONAL
140 Name => 'MyString', # OPTIONAL
141 NamespaceType => 'NONE', # values: NONE, BUILD_ID; OPTIONAL
142 OverrideArtifactName => 1, # OPTIONAL
143 Packaging => 'NONE', # values: NONE, ZIP; OPTIONAL
144 Path => 'MyString', # OPTIONAL
145 },
146 ...
147 ], # OPTIONAL
148 SecondarySourceVersions => [
149 {
150 SourceIdentifier => 'MyString', # OPTIONAL
151 SourceVersion => 'MyString', # OPTIONAL
152  
153 },
154 ...
155 ], # OPTIONAL
156 SecondarySources => [
157 {
158 Type => 'CODECOMMIT'
159 , # values: CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET, GITHUB_ENTERPRISE, NO_SOURCE
160 Auth => {
161 Type => 'OAUTH', # values: OAUTH
162 Resource => 'MyString', # OPTIONAL
163 }, # OPTIONAL
164 BuildStatusConfig => {
165 Context => 'MyString', # OPTIONAL
166 TargetUrl => 'MyString', # OPTIONAL
167 }, # OPTIONAL
168 Buildspec => 'MyString', # OPTIONAL
169 GitCloneDepth => 1, # OPTIONAL
170 GitSubmodulesConfig => {
171 FetchSubmodules => 1, # OPTIONAL
172  
173 }, # OPTIONAL
174 InsecureSsl => 1, # OPTIONAL
175 Location => 'MyString', # OPTIONAL
176 ReportBuildStatus => 1, # OPTIONAL
177 SourceIdentifier => 'MyString', # OPTIONAL
178 },
179 ...
180 ], # OPTIONAL
181 ServiceRole => 'MyNonEmptyString', # OPTIONAL
182 Source => {
183 Type => 'CODECOMMIT'
184 , # values: CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET, GITHUB_ENTERPRISE, NO_SOURCE
185 Auth => {
186 Type => 'OAUTH', # values: OAUTH
187 Resource => 'MyString', # OPTIONAL
188 }, # OPTIONAL
189 BuildStatusConfig => {
190 Context => 'MyString', # OPTIONAL
191 TargetUrl => 'MyString', # OPTIONAL
192 }, # OPTIONAL
193 Buildspec => 'MyString', # OPTIONAL
194 GitCloneDepth => 1, # OPTIONAL
195 GitSubmodulesConfig => {
196 FetchSubmodules => 1, # OPTIONAL
197  
198 }, # OPTIONAL
199 InsecureSsl => 1, # OPTIONAL
200 Location => 'MyString', # OPTIONAL
201 ReportBuildStatus => 1, # OPTIONAL
202 SourceIdentifier => 'MyString', # OPTIONAL
203 }, # OPTIONAL
204 SourceVersion => 'MyString', # OPTIONAL
205 Tags => [
206 {
207 Key => 'MyKeyInput', # min: 1, max: 127; OPTIONAL
208 Value => 'MyValueInput', # max: 255; OPTIONAL
209 },
210 ...
211 ], # OPTIONAL
212 TimeoutInMinutes => 1, # OPTIONAL
213 VpcConfig => {
214 SecurityGroupIds => [
215 'MyNonEmptyString', ... # min: 1
216 ], # max: 5; OPTIONAL
217 Subnets => [
218 'MyNonEmptyString', ... # min: 1
219 ], # max: 16; OPTIONAL
220 VpcId => 'MyNonEmptyString', # min: 1
221 }, # OPTIONAL
222 );
223  
224 # Results:
225 my $Project = $UpdateProjectOutput->Project;
226  
227 # Returns a L<Paws::CodeBuild::UpdateProjectOutput> object.
228  
229 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.
230 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codebuild/UpdateProject>
231  
232 =head1 ATTRIBUTES
233  
234  
235 =head2 Artifacts => L<Paws::CodeBuild::ProjectArtifacts>
236  
237 Information to be changed about the build output artifacts for the
238 build project.
239  
240  
241  
242 =head2 BadgeEnabled => Bool
243  
244 Set this to true to generate a publicly accessible URL for your
245 project's build badge.
246  
247  
248  
249 =head2 BuildBatchConfig => L<Paws::CodeBuild::ProjectBuildBatchConfig>
250  
251  
252  
253  
254  
255 =head2 Cache => L<Paws::CodeBuild::ProjectCache>
256  
257 Stores recently used information so that it can be quickly accessed at
258 a later time.
259  
260  
261  
262 =head2 ConcurrentBuildLimit => Int
263  
264 The maximum number of concurrent builds that are allowed for this
265 project.
266  
267 New builds are only started if the current number of builds is less
268 than or equal to this limit. If the current build count meets this
269 limit, new builds are throttled and are not run.
270  
271 To remove this limit, set this value to -1.
272  
273  
274  
275 =head2 Description => Str
276  
277 A new or replacement description of the build project.
278  
279  
280  
281 =head2 EncryptionKey => Str
282  
283 The Key Management Service customer master key (CMK) to be used for
284 encrypting the build output artifacts.
285  
286 You can use a cross-account KMS key to encrypt the build output
287 artifacts if your service role has permission to that key.
288  
289 You can specify either the Amazon Resource Name (ARN) of the CMK or, if
290 available, the CMK's alias (using the format
291 C<alias/E<lt>alias-nameE<gt>>).
292  
293  
294  
295 =head2 Environment => L<Paws::CodeBuild::ProjectEnvironment>
296  
297 Information to be changed about the build environment for the build
298 project.
299  
300  
301  
302 =head2 FileSystemLocations => ArrayRef[L<Paws::CodeBuild::ProjectFileSystemLocation>]
303  
304 An array of C<ProjectFileSystemLocation> objects for a CodeBuild build
305 project. A C<ProjectFileSystemLocation> object specifies the
306 C<identifier>, C<location>, C<mountOptions>, C<mountPoint>, and C<type>
307 of a file system created using Amazon Elastic File System.
308  
309  
310  
311 =head2 LogsConfig => L<Paws::CodeBuild::LogsConfig>
312  
313 Information about logs for the build project. A project can create logs
314 in CloudWatch Logs, logs in an S3 bucket, or both.
315  
316  
317  
318 =head2 B<REQUIRED> Name => Str
319  
320 The name of the build project.
321  
322 You cannot change a build project's name.
323  
324  
325  
326 =head2 QueuedTimeoutInMinutes => Int
327  
328 The number of minutes a build is allowed to be queued before it times
329 out.
330  
331  
332  
333 =head2 SecondaryArtifacts => ArrayRef[L<Paws::CodeBuild::ProjectArtifacts>]
334  
335 An array of C<ProjectSource> objects.
336  
337  
338  
339 =head2 SecondarySources => ArrayRef[L<Paws::CodeBuild::ProjectSource>]
340  
341 An array of C<ProjectSource> objects.
342  
343  
344  
345 =head2 SecondarySourceVersions => ArrayRef[L<Paws::CodeBuild::ProjectSourceVersion>]
346  
347 An array of C<ProjectSourceVersion> objects. If
348 C<secondarySourceVersions> is specified at the build level, then they
349 take over these C<secondarySourceVersions> (at the project level).
350  
351  
352  
353 =head2 ServiceRole => Str
354  
355 The replacement ARN of the Identity and Access Management role that
356 enables CodeBuild to interact with dependent Amazon Web Services
357 services on behalf of the Amazon Web Services account.
358  
359  
360  
361 =head2 Source => L<Paws::CodeBuild::ProjectSource>
362  
363 Information to be changed about the build input source code for the
364 build project.
365  
366  
367  
368 =head2 SourceVersion => Str
369  
370 A version of the build input to be built for this project. If not
371 specified, the latest version is used. If specified, it must be one of:
372  
373 =over
374  
375 =item *
376  
377 For CodeCommit: the commit ID, branch, or Git tag to use.
378  
379 =item *
380  
381 For GitHub: the commit ID, pull request ID, branch name, or tag name
382 that corresponds to the version of the source code you want to build.
383 If a pull request ID is specified, it must use the format
384 C<pr/pull-request-ID> (for example C<pr/25>). If a branch name is
385 specified, the branch's HEAD commit ID is used. If not specified, the
386 default branch's HEAD commit ID is used.
387  
388 =item *
389  
390 For Bitbucket: the commit ID, branch name, or tag name that corresponds
391 to the version of the source code you want to build. If a branch name
392 is specified, the branch's HEAD commit ID is used. If not specified,
393 the default branch's HEAD commit ID is used.
394  
395 =item *
396  
397 For Amazon S3: the version ID of the object that represents the build
398 input ZIP file to use.
399  
400 =back
401  
402 If C<sourceVersion> is specified at the build level, then that version
403 takes precedence over this C<sourceVersion> (at the project level).
404  
405 For more information, see Source Version Sample with CodeBuild
406 (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html)
407 in the I<CodeBuild User Guide>.
408  
409  
410  
411 =head2 Tags => ArrayRef[L<Paws::CodeBuild::Tag>]
412  
413 An updated list of tag key and value pairs associated with this build
414 project.
415  
416 These tags are available for use by Amazon Web Services services that
417 support CodeBuild build project tags.
418  
419  
420  
421 =head2 TimeoutInMinutes => Int
422  
423 The replacement value in minutes, from 5 to 480 (8 hours), for
424 CodeBuild to wait before timing out any related build that did not get
425 marked as completed.
426  
427  
428  
429 =head2 VpcConfig => L<Paws::CodeBuild::VpcConfig>
430  
431 VpcConfig enables CodeBuild to access resources in an Amazon VPC.
432  
433  
434  
435  
436 =head1 SEE ALSO
437  
438 This class forms part of L<Paws>, documenting arguments for method UpdateProject in L<Paws::CodeBuild>
439  
440 =head1 BUGS and CONTRIBUTIONS
441  
442 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
443  
444 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
445  
446 =cut
447