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