File Coverage

blib/lib/Paws/CodeBuild.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::CodeBuild;
2 1     1   694 use Moose;
  1         3  
  1         7  
3             sub service { 'codebuild' }
4             sub version { '2016-10-06' }
5             sub target_prefix { 'CodeBuild_20161006' }
6             sub json_version { "1.1" }
7             has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8             has retry => (is => 'ro', isa => 'HashRef', default => sub {
9             { base => 'rand', type => 'exponential', growth_factor => 2 }
10             });
11             has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
12             ] });
13              
14             with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller', 'Paws::Net::JsonResponse';
15              
16            
17             sub BatchDeleteBuilds {
18             my $self = shift;
19             my $call_object = $self->new_with_coercions('Paws::CodeBuild::BatchDeleteBuilds', @_);
20             return $self->caller->do_call($self, $call_object);
21             }
22             sub BatchGetBuilds {
23             my $self = shift;
24             my $call_object = $self->new_with_coercions('Paws::CodeBuild::BatchGetBuilds', @_);
25             return $self->caller->do_call($self, $call_object);
26             }
27             sub BatchGetProjects {
28             my $self = shift;
29             my $call_object = $self->new_with_coercions('Paws::CodeBuild::BatchGetProjects', @_);
30             return $self->caller->do_call($self, $call_object);
31             }
32             sub CreateProject {
33             my $self = shift;
34             my $call_object = $self->new_with_coercions('Paws::CodeBuild::CreateProject', @_);
35             return $self->caller->do_call($self, $call_object);
36             }
37             sub CreateWebhook {
38             my $self = shift;
39             my $call_object = $self->new_with_coercions('Paws::CodeBuild::CreateWebhook', @_);
40             return $self->caller->do_call($self, $call_object);
41             }
42             sub DeleteProject {
43             my $self = shift;
44             my $call_object = $self->new_with_coercions('Paws::CodeBuild::DeleteProject', @_);
45             return $self->caller->do_call($self, $call_object);
46             }
47             sub DeleteWebhook {
48             my $self = shift;
49             my $call_object = $self->new_with_coercions('Paws::CodeBuild::DeleteWebhook', @_);
50             return $self->caller->do_call($self, $call_object);
51             }
52             sub ListBuilds {
53             my $self = shift;
54             my $call_object = $self->new_with_coercions('Paws::CodeBuild::ListBuilds', @_);
55             return $self->caller->do_call($self, $call_object);
56             }
57             sub ListBuildsForProject {
58             my $self = shift;
59             my $call_object = $self->new_with_coercions('Paws::CodeBuild::ListBuildsForProject', @_);
60             return $self->caller->do_call($self, $call_object);
61             }
62             sub ListCuratedEnvironmentImages {
63             my $self = shift;
64             my $call_object = $self->new_with_coercions('Paws::CodeBuild::ListCuratedEnvironmentImages', @_);
65             return $self->caller->do_call($self, $call_object);
66             }
67             sub ListProjects {
68             my $self = shift;
69             my $call_object = $self->new_with_coercions('Paws::CodeBuild::ListProjects', @_);
70             return $self->caller->do_call($self, $call_object);
71             }
72             sub StartBuild {
73             my $self = shift;
74             my $call_object = $self->new_with_coercions('Paws::CodeBuild::StartBuild', @_);
75             return $self->caller->do_call($self, $call_object);
76             }
77             sub StopBuild {
78             my $self = shift;
79             my $call_object = $self->new_with_coercions('Paws::CodeBuild::StopBuild', @_);
80             return $self->caller->do_call($self, $call_object);
81             }
82             sub UpdateProject {
83             my $self = shift;
84             my $call_object = $self->new_with_coercions('Paws::CodeBuild::UpdateProject', @_);
85             return $self->caller->do_call($self, $call_object);
86             }
87            
88              
89              
90             sub operations { qw/BatchDeleteBuilds BatchGetBuilds BatchGetProjects CreateProject CreateWebhook DeleteProject DeleteWebhook ListBuilds ListBuildsForProject ListCuratedEnvironmentImages ListProjects StartBuild StopBuild UpdateProject / }
91              
92             1;
93              
94             ### main pod documentation begin ###
95              
96             =head1 NAME
97              
98             Paws::CodeBuild - Perl Interface to AWS AWS CodeBuild
99              
100             =head1 SYNOPSIS
101              
102             use Paws;
103              
104             my $obj = Paws->service('CodeBuild');
105             my $res = $obj->Method(
106             Arg1 => $val1,
107             Arg2 => [ 'V1', 'V2' ],
108             # if Arg3 is an object, the HashRef will be used as arguments to the constructor
109             # of the arguments type
110             Arg3 => { Att1 => 'Val1' },
111             # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
112             # the constructor of the arguments type
113             Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
114             );
115              
116             =head1 DESCRIPTION
117              
118             AWS CodeBuild
119              
120             AWS CodeBuild is a fully managed build service in the cloud. AWS
121             CodeBuild compiles your source code, runs unit tests, and produces
122             artifacts that are ready to deploy. AWS CodeBuild eliminates the need
123             to provision, manage, and scale your own build servers. It provides
124             prepackaged build environments for the most popular programming
125             languages and build tools, such as Apache Maven, Gradle, and more. You
126             can also fully customize build environments in AWS CodeBuild to use
127             your own build tools. AWS CodeBuild scales automatically to meet peak
128             build requests, and you pay only for the build time you consume. For
129             more information about AWS CodeBuild, see the I<AWS CodeBuild User
130             Guide>.
131              
132             AWS CodeBuild supports these operations:
133              
134             =over
135              
136             =item *
137              
138             C<BatchDeleteBuilds>: Deletes one or more builds.
139              
140             =item *
141              
142             C<BatchGetProjects>: Gets information about one or more build projects.
143             A I<build project> defines how AWS CodeBuild will run a build. This
144             includes information such as where to get the source code to build, the
145             build environment to use, the build commands to run, and where to store
146             the build output. A I<build environment> represents a combination of
147             operating system, programming language runtime, and tools that AWS
148             CodeBuild will use to run a build. Also, you can add tags to build
149             projects to help manage your resources and costs.
150              
151             =item *
152              
153             C<CreateProject>: Creates a build project.
154              
155             =item *
156              
157             C<CreateWebhook>: For an existing AWS CodeBuild build project that has
158             its source code stored in a GitHub repository, enables AWS CodeBuild to
159             begin automatically rebuilding the source code every time a code change
160             is pushed to the repository.
161              
162             =item *
163              
164             C<DeleteProject>: Deletes a build project.
165              
166             =item *
167              
168             C<DeleteWebhook>: For an existing AWS CodeBuild build project that has
169             its source code stored in a GitHub repository, stops AWS CodeBuild from
170             automatically rebuilding the source code every time a code change is
171             pushed to the repository.
172              
173             =item *
174              
175             C<ListProjects>: Gets a list of build project names, with each build
176             project name representing a single build project.
177              
178             =item *
179              
180             C<UpdateProject>: Changes the settings of an existing build project.
181              
182             =item *
183              
184             C<BatchGetBuilds>: Gets information about one or more builds.
185              
186             =item *
187              
188             C<ListBuilds>: Gets a list of build IDs, with each build ID
189             representing a single build.
190              
191             =item *
192              
193             C<ListBuildsForProject>: Gets a list of build IDs for the specified
194             build project, with each build ID representing a single build.
195              
196             =item *
197              
198             C<StartBuild>: Starts running a build.
199              
200             =item *
201              
202             C<StopBuild>: Attempts to stop running a build.
203              
204             =item *
205              
206             C<ListCuratedEnvironmentImages>: Gets information about Docker images
207             that are managed by AWS CodeBuild.
208              
209             =back
210              
211              
212             =head1 METHODS
213              
214             =head2 BatchDeleteBuilds(Ids => ArrayRef[Str|Undef])
215              
216             Each argument is described in detail in: L<Paws::CodeBuild::BatchDeleteBuilds>
217              
218             Returns: a L<Paws::CodeBuild::BatchDeleteBuildsOutput> instance
219              
220             Deletes one or more builds.
221              
222              
223             =head2 BatchGetBuilds(Ids => ArrayRef[Str|Undef])
224              
225             Each argument is described in detail in: L<Paws::CodeBuild::BatchGetBuilds>
226              
227             Returns: a L<Paws::CodeBuild::BatchGetBuildsOutput> instance
228              
229             Gets information about builds.
230              
231              
232             =head2 BatchGetProjects(Names => ArrayRef[Str|Undef])
233              
234             Each argument is described in detail in: L<Paws::CodeBuild::BatchGetProjects>
235              
236             Returns: a L<Paws::CodeBuild::BatchGetProjectsOutput> instance
237              
238             Gets information about build projects.
239              
240              
241             =head2 CreateProject(Artifacts => L<Paws::CodeBuild::ProjectArtifacts>, Environment => L<Paws::CodeBuild::ProjectEnvironment>, Name => Str, Source => L<Paws::CodeBuild::ProjectSource>, [Description => Str, EncryptionKey => Str, ServiceRole => Str, Tags => ArrayRef[L<Paws::CodeBuild::Tag>], TimeoutInMinutes => Int])
242              
243             Each argument is described in detail in: L<Paws::CodeBuild::CreateProject>
244              
245             Returns: a L<Paws::CodeBuild::CreateProjectOutput> instance
246              
247             Creates a build project.
248              
249              
250             =head2 CreateWebhook(ProjectName => Str)
251              
252             Each argument is described in detail in: L<Paws::CodeBuild::CreateWebhook>
253              
254             Returns: a L<Paws::CodeBuild::CreateWebhookOutput> instance
255              
256             For an existing AWS CodeBuild build project that has its source code
257             stored in a GitHub repository, enables AWS CodeBuild to begin
258             automatically rebuilding the source code every time a code change is
259             pushed to the repository.
260              
261             If you enable webhooks for an AWS CodeBuild project, and the project is
262             used as a build step in AWS CodePipeline, then two identical builds
263             will be created for each commit. One build is triggered through
264             webhooks, and one through AWS CodePipeline. Because billing is on a
265             per-build basis, you will be billed for both builds. Therefore, if you
266             are using AWS CodePipeline, we recommend that you disable webhooks in
267             CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For
268             more information, see step 9 in Change a Build ProjectE<rsquo>s
269             Settings.
270              
271              
272             =head2 DeleteProject(Name => Str)
273              
274             Each argument is described in detail in: L<Paws::CodeBuild::DeleteProject>
275              
276             Returns: a L<Paws::CodeBuild::DeleteProjectOutput> instance
277              
278             Deletes a build project.
279              
280              
281             =head2 DeleteWebhook(ProjectName => Str)
282              
283             Each argument is described in detail in: L<Paws::CodeBuild::DeleteWebhook>
284              
285             Returns: a L<Paws::CodeBuild::DeleteWebhookOutput> instance
286              
287             For an existing AWS CodeBuild build project that has its source code
288             stored in a GitHub repository, stops AWS CodeBuild from automatically
289             rebuilding the source code every time a code change is pushed to the
290             repository.
291              
292              
293             =head2 ListBuilds([NextToken => Str, SortOrder => Str])
294              
295             Each argument is described in detail in: L<Paws::CodeBuild::ListBuilds>
296              
297             Returns: a L<Paws::CodeBuild::ListBuildsOutput> instance
298              
299             Gets a list of build IDs, with each build ID representing a single
300             build.
301              
302              
303             =head2 ListBuildsForProject(ProjectName => Str, [NextToken => Str, SortOrder => Str])
304              
305             Each argument is described in detail in: L<Paws::CodeBuild::ListBuildsForProject>
306              
307             Returns: a L<Paws::CodeBuild::ListBuildsForProjectOutput> instance
308              
309             Gets a list of build IDs for the specified build project, with each
310             build ID representing a single build.
311              
312              
313             =head2 ListCuratedEnvironmentImages()
314              
315             Each argument is described in detail in: L<Paws::CodeBuild::ListCuratedEnvironmentImages>
316              
317             Returns: a L<Paws::CodeBuild::ListCuratedEnvironmentImagesOutput> instance
318              
319             Gets information about Docker images that are managed by AWS CodeBuild.
320              
321              
322             =head2 ListProjects([NextToken => Str, SortBy => Str, SortOrder => Str])
323              
324             Each argument is described in detail in: L<Paws::CodeBuild::ListProjects>
325              
326             Returns: a L<Paws::CodeBuild::ListProjectsOutput> instance
327              
328             Gets a list of build project names, with each build project name
329             representing a single build project.
330              
331              
332             =head2 StartBuild(ProjectName => Str, [ArtifactsOverride => L<Paws::CodeBuild::ProjectArtifacts>, BuildspecOverride => Str, EnvironmentVariablesOverride => ArrayRef[L<Paws::CodeBuild::EnvironmentVariable>], SourceVersion => Str, TimeoutInMinutesOverride => Int])
333              
334             Each argument is described in detail in: L<Paws::CodeBuild::StartBuild>
335              
336             Returns: a L<Paws::CodeBuild::StartBuildOutput> instance
337              
338             Starts running a build.
339              
340              
341             =head2 StopBuild(Id => Str)
342              
343             Each argument is described in detail in: L<Paws::CodeBuild::StopBuild>
344              
345             Returns: a L<Paws::CodeBuild::StopBuildOutput> instance
346              
347             Attempts to stop running a build.
348              
349              
350             =head2 UpdateProject(Name => Str, [Artifacts => L<Paws::CodeBuild::ProjectArtifacts>, Description => Str, EncryptionKey => Str, Environment => L<Paws::CodeBuild::ProjectEnvironment>, ServiceRole => Str, Source => L<Paws::CodeBuild::ProjectSource>, Tags => ArrayRef[L<Paws::CodeBuild::Tag>], TimeoutInMinutes => Int])
351              
352             Each argument is described in detail in: L<Paws::CodeBuild::UpdateProject>
353              
354             Returns: a L<Paws::CodeBuild::UpdateProjectOutput> instance
355              
356             Changes the settings of a build project.
357              
358              
359              
360              
361             =head1 PAGINATORS
362              
363             Paginator methods are helpers that repetively call methods that return partial results
364              
365              
366              
367              
368             =head1 SEE ALSO
369              
370             This service class forms part of L<Paws>
371              
372             =head1 BUGS and CONTRIBUTIONS
373              
374             The source code is located here: https://github.com/pplu/aws-sdk-perl
375              
376             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
377              
378             =cut
379