aws-sdk-codebuild 1.0.0.rc2 → 1.0.0.rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codebuild.rb +1 -1
- data/lib/aws-sdk-codebuild/client.rb +890 -807
- data/lib/aws-sdk-codebuild/client_api.rb +418 -420
- data/lib/aws-sdk-codebuild/errors.rb +4 -13
- data/lib/aws-sdk-codebuild/resource.rb +12 -14
- data/lib/aws-sdk-codebuild/types.rb +1328 -1274
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5778f98d37812bb0d7ad918fca87f5ec6a4182d2
|
4
|
+
data.tar.gz: 496875f64cc57a4bb22f391daa2900cda0c2ee82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e9df6f6d479786836fd1ae5189c505d1fe2eaabe794d865bdb898d29862d06641e8519ffcdda660b11414bbb134eda415e4eb6b1c9f016b86f035c7bc10d58a
|
7
|
+
data.tar.gz: cbbed4a22ccd478803ec9d85fe7c12ada0a0d1f8c1b72ad56ceb15d39d464343b869877f84c8a457042e7dabde19e8160e375be62a1e80899a30f9d4e1415e44
|
data/lib/aws-sdk-codebuild.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -23,836 +23,919 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
|
23
23
|
|
24
24
|
Aws::Plugins::GlobalConfiguration.add_identifier(:codebuild)
|
25
25
|
|
26
|
-
module Aws
|
27
|
-
|
28
|
-
class Client < Seahorse::Client::Base
|
26
|
+
module Aws::CodeBuild
|
27
|
+
class Client < Seahorse::Client::Base
|
29
28
|
|
30
|
-
|
29
|
+
include Aws::ClientStubs
|
31
30
|
|
32
|
-
|
31
|
+
@identifier = :codebuild
|
33
32
|
|
34
|
-
|
33
|
+
set_api(ClientApi::API)
|
35
34
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
35
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
36
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
37
|
+
add_plugin(Aws::Plugins::Logging)
|
38
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
39
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
40
|
+
add_plugin(Aws::Plugins::UserAgent)
|
41
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
42
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
43
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
44
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
45
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
46
|
+
add_plugin(Aws::Plugins::StubResponses)
|
47
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
48
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
49
|
+
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
51
50
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
51
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
52
|
+
# Your AWS credentials. This can be an instance of any one of the
|
53
|
+
# following classes:
|
54
|
+
#
|
55
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
56
|
+
# credentials.
|
57
|
+
#
|
58
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
59
|
+
# from an EC2 IMDS on an EC2 instance.
|
60
|
+
#
|
61
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
62
|
+
# shared file, such as `~/.aws/config`.
|
63
|
+
#
|
64
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
65
|
+
#
|
66
|
+
# When `:credentials` are not configured directly, the following
|
67
|
+
# locations will be searched for credentials:
|
68
|
+
#
|
69
|
+
# * `Aws.config[:credentials]`
|
70
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
71
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
72
|
+
# * `~/.aws/credentials`
|
73
|
+
# * `~/.aws/config`
|
74
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
75
|
+
# very aggressive. Construct and pass an instance of
|
76
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
77
|
+
# timeouts.
|
78
|
+
#
|
79
|
+
# @option options [required, String] :region
|
80
|
+
# The AWS region to connect to. The configured `:region` is
|
81
|
+
# used to determine the service `:endpoint`. When not passed,
|
82
|
+
# a default `:region` is search for in the following locations:
|
83
|
+
#
|
84
|
+
# * `Aws.config[:region]`
|
85
|
+
# * `ENV['AWS_REGION']`
|
86
|
+
# * `ENV['AMAZON_REGION']`
|
87
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
88
|
+
# * `~/.aws/credentials`
|
89
|
+
# * `~/.aws/config`
|
90
|
+
#
|
91
|
+
# @option options [String] :access_key_id
|
92
|
+
#
|
93
|
+
# @option options [Boolean] :convert_params (true)
|
94
|
+
# When `true`, an attempt is made to coerce request parameters into
|
95
|
+
# the required types.
|
96
|
+
#
|
97
|
+
# @option options [String] :endpoint
|
98
|
+
# The client endpoint is normally constructed from the `:region`
|
99
|
+
# option. You should only configure an `:endpoint` when connecting
|
100
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
101
|
+
#
|
102
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
103
|
+
# The log formatter.
|
104
|
+
#
|
105
|
+
# @option options [Symbol] :log_level (:info)
|
106
|
+
# The log level to send messages to the `:logger` at.
|
107
|
+
#
|
108
|
+
# @option options [Logger] :logger
|
109
|
+
# The Logger instance to send log messages to. If this option
|
110
|
+
# is not set, logging will be disabled.
|
111
|
+
#
|
112
|
+
# @option options [String] :profile ("default")
|
113
|
+
# Used when loading credentials from the shared credentials file
|
114
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
115
|
+
#
|
116
|
+
# @option options [Integer] :retry_limit (3)
|
117
|
+
# The maximum number of times to retry failed requests. Only
|
118
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
119
|
+
# are retried. Generally, these are throttling errors, data
|
120
|
+
# checksum errors, networking errors, timeout errors and auth
|
121
|
+
# errors from expired credentials.
|
122
|
+
#
|
123
|
+
# @option options [String] :secret_access_key
|
124
|
+
#
|
125
|
+
# @option options [String] :session_token
|
126
|
+
#
|
127
|
+
# @option options [Boolean] :simple_json (false)
|
128
|
+
# Disables request parameter conversion, validation, and formatting.
|
129
|
+
# Also disable response data type conversions. This option is useful
|
130
|
+
# when you want to ensure the highest level of performance by
|
131
|
+
# avoiding overhead of walking request parameters and response data
|
132
|
+
# structures.
|
133
|
+
#
|
134
|
+
# When `:simple_json` is enabled, the request parameters hash must
|
135
|
+
# be formatted exactly as the DynamoDB API expects.
|
136
|
+
#
|
137
|
+
# @option options [Boolean] :stub_responses (false)
|
138
|
+
# Causes the client to return stubbed responses. By default
|
139
|
+
# fake responses are generated and returned. You can specify
|
140
|
+
# the response data to return or errors to raise by calling
|
141
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
142
|
+
#
|
143
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
144
|
+
# requests are made, and retries are disabled.
|
145
|
+
#
|
146
|
+
# @option options [Boolean] :validate_params (true)
|
147
|
+
# When `true`, request parameters are validated before
|
148
|
+
# sending the request.
|
149
|
+
#
|
150
|
+
def initialize(*args)
|
151
|
+
super
|
152
|
+
end
|
139
153
|
|
140
|
-
|
154
|
+
# @!group API Operations
|
141
155
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
#
|
208
|
-
# * {Types::BatchGetProjectsOutput#projects #projects} => Array<Types::Project>
|
209
|
-
# * {Types::BatchGetProjectsOutput#projects_not_found #projectsNotFound} => Array<String>
|
210
|
-
#
|
211
|
-
# @example Request syntax with placeholder values
|
212
|
-
# resp = client.batch_get_projects({
|
213
|
-
# names: ["NonEmptyString"], # required
|
214
|
-
# })
|
215
|
-
#
|
216
|
-
# @example Response structure
|
217
|
-
# resp.projects #=> Array
|
218
|
-
# resp.projects[0].name #=> String
|
219
|
-
# resp.projects[0].arn #=> String
|
220
|
-
# resp.projects[0].description #=> String
|
221
|
-
# resp.projects[0].source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
222
|
-
# resp.projects[0].source.location #=> String
|
223
|
-
# resp.projects[0].source.buildspec #=> String
|
224
|
-
# resp.projects[0].source.auth.type #=> String, one of "OAUTH"
|
225
|
-
# resp.projects[0].source.auth.resource #=> String
|
226
|
-
# resp.projects[0].artifacts.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
|
227
|
-
# resp.projects[0].artifacts.location #=> String
|
228
|
-
# resp.projects[0].artifacts.path #=> String
|
229
|
-
# resp.projects[0].artifacts.namespace_type #=> String, one of "NONE", "BUILD_ID"
|
230
|
-
# resp.projects[0].artifacts.name #=> String
|
231
|
-
# resp.projects[0].artifacts.packaging #=> String, one of "NONE", "ZIP"
|
232
|
-
# resp.projects[0].environment.type #=> String, one of "LINUX_CONTAINER"
|
233
|
-
# resp.projects[0].environment.image #=> String
|
234
|
-
# resp.projects[0].environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
235
|
-
# resp.projects[0].environment.environment_variables #=> Array
|
236
|
-
# resp.projects[0].environment.environment_variables[0].name #=> String
|
237
|
-
# resp.projects[0].environment.environment_variables[0].value #=> String
|
238
|
-
# resp.projects[0].service_role #=> String
|
239
|
-
# resp.projects[0].timeout_in_minutes #=> Integer
|
240
|
-
# resp.projects[0].encryption_key #=> String
|
241
|
-
# resp.projects[0].tags #=> Array
|
242
|
-
# resp.projects[0].tags[0].key #=> String
|
243
|
-
# resp.projects[0].tags[0].value #=> String
|
244
|
-
# resp.projects[0].created #=> Time
|
245
|
-
# resp.projects[0].last_modified #=> Time
|
246
|
-
# resp.projects_not_found #=> Array
|
247
|
-
# resp.projects_not_found[0] #=> String
|
248
|
-
# @overload batch_get_projects(params = {})
|
249
|
-
# @param [Hash] params ({})
|
250
|
-
def batch_get_projects(params = {}, options = {})
|
251
|
-
req = build_request(:batch_get_projects, params)
|
252
|
-
req.send_request(options)
|
253
|
-
end
|
156
|
+
# Gets information about builds.
|
157
|
+
#
|
158
|
+
# @option params [required, Array<String>] :ids
|
159
|
+
# The IDs of the builds.
|
160
|
+
#
|
161
|
+
# @return [Types::BatchGetBuildsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
162
|
+
#
|
163
|
+
# * {Types::BatchGetBuildsOutput#builds #builds} => Array<Types::Build>
|
164
|
+
# * {Types::BatchGetBuildsOutput#builds_not_found #builds_not_found} => Array<String>
|
165
|
+
#
|
166
|
+
# @example Request syntax with placeholder values
|
167
|
+
#
|
168
|
+
# resp = client.batch_get_builds({
|
169
|
+
# ids: ["NonEmptyString"], # required
|
170
|
+
# })
|
171
|
+
#
|
172
|
+
# @example Response structure
|
173
|
+
#
|
174
|
+
# resp.builds #=> Array
|
175
|
+
# resp.builds[0].id #=> String
|
176
|
+
# resp.builds[0].arn #=> String
|
177
|
+
# resp.builds[0].start_time #=> Time
|
178
|
+
# resp.builds[0].end_time #=> Time
|
179
|
+
# resp.builds[0].current_phase #=> String
|
180
|
+
# resp.builds[0].build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
|
181
|
+
# resp.builds[0].source_version #=> String
|
182
|
+
# resp.builds[0].project_name #=> String
|
183
|
+
# resp.builds[0].phases #=> Array
|
184
|
+
# resp.builds[0].phases[0].phase_type #=> String, one of "SUBMITTED", "PROVISIONING", "DOWNLOAD_SOURCE", "INSTALL", "PRE_BUILD", "BUILD", "POST_BUILD", "UPLOAD_ARTIFACTS", "FINALIZING", "COMPLETED"
|
185
|
+
# resp.builds[0].phases[0].phase_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
|
186
|
+
# resp.builds[0].phases[0].start_time #=> Time
|
187
|
+
# resp.builds[0].phases[0].end_time #=> Time
|
188
|
+
# resp.builds[0].phases[0].duration_in_seconds #=> Integer
|
189
|
+
# resp.builds[0].phases[0].contexts #=> Array
|
190
|
+
# resp.builds[0].phases[0].contexts[0].status_code #=> String
|
191
|
+
# resp.builds[0].phases[0].contexts[0].message #=> String
|
192
|
+
# resp.builds[0].source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
193
|
+
# resp.builds[0].source.location #=> String
|
194
|
+
# resp.builds[0].source.buildspec #=> String
|
195
|
+
# resp.builds[0].source.auth.type #=> String, one of "OAUTH"
|
196
|
+
# resp.builds[0].source.auth.resource #=> String
|
197
|
+
# resp.builds[0].artifacts.location #=> String
|
198
|
+
# resp.builds[0].artifacts.sha256sum #=> String
|
199
|
+
# resp.builds[0].artifacts.md5sum #=> String
|
200
|
+
# resp.builds[0].environment.type #=> String, one of "LINUX_CONTAINER"
|
201
|
+
# resp.builds[0].environment.image #=> String
|
202
|
+
# resp.builds[0].environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
203
|
+
# resp.builds[0].environment.environment_variables #=> Array
|
204
|
+
# resp.builds[0].environment.environment_variables[0].name #=> String
|
205
|
+
# resp.builds[0].environment.environment_variables[0].value #=> String
|
206
|
+
# resp.builds[0].logs.group_name #=> String
|
207
|
+
# resp.builds[0].logs.stream_name #=> String
|
208
|
+
# resp.builds[0].logs.deep_link #=> String
|
209
|
+
# resp.builds[0].timeout_in_minutes #=> Integer
|
210
|
+
# resp.builds[0].build_complete #=> Boolean
|
211
|
+
# resp.builds[0].initiator #=> String
|
212
|
+
# resp.builds_not_found #=> Array
|
213
|
+
# resp.builds_not_found[0] #=> String
|
214
|
+
#
|
215
|
+
# @overload batch_get_builds(params = {})
|
216
|
+
# @param [Hash] params ({})
|
217
|
+
def batch_get_builds(params = {}, options = {})
|
218
|
+
req = build_request(:batch_get_builds, params)
|
219
|
+
req.send_request(options)
|
220
|
+
end
|
254
221
|
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
# type: "LINUX_CONTAINER", # required, accepts LINUX_CONTAINER
|
312
|
-
# image: "NonEmptyString", # required
|
313
|
-
# compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE
|
314
|
-
# environment_variables: [
|
315
|
-
# {
|
316
|
-
# name: "NonEmptyString", # required
|
317
|
-
# value: "String", # required
|
318
|
-
# },
|
319
|
-
# ],
|
320
|
-
# },
|
321
|
-
# service_role: "NonEmptyString",
|
322
|
-
# timeout_in_minutes: 1,
|
323
|
-
# encryption_key: "NonEmptyString",
|
324
|
-
# tags: [
|
325
|
-
# {
|
326
|
-
# key: "KeyInput",
|
327
|
-
# value: "ValueInput",
|
328
|
-
# },
|
329
|
-
# ],
|
330
|
-
# })
|
331
|
-
#
|
332
|
-
# @example Response structure
|
333
|
-
# resp.project.name #=> String
|
334
|
-
# resp.project.arn #=> String
|
335
|
-
# resp.project.description #=> String
|
336
|
-
# resp.project.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
337
|
-
# resp.project.source.location #=> String
|
338
|
-
# resp.project.source.buildspec #=> String
|
339
|
-
# resp.project.source.auth.type #=> String, one of "OAUTH"
|
340
|
-
# resp.project.source.auth.resource #=> String
|
341
|
-
# resp.project.artifacts.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
|
342
|
-
# resp.project.artifacts.location #=> String
|
343
|
-
# resp.project.artifacts.path #=> String
|
344
|
-
# resp.project.artifacts.namespace_type #=> String, one of "NONE", "BUILD_ID"
|
345
|
-
# resp.project.artifacts.name #=> String
|
346
|
-
# resp.project.artifacts.packaging #=> String, one of "NONE", "ZIP"
|
347
|
-
# resp.project.environment.type #=> String, one of "LINUX_CONTAINER"
|
348
|
-
# resp.project.environment.image #=> String
|
349
|
-
# resp.project.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
350
|
-
# resp.project.environment.environment_variables #=> Array
|
351
|
-
# resp.project.environment.environment_variables[0].name #=> String
|
352
|
-
# resp.project.environment.environment_variables[0].value #=> String
|
353
|
-
# resp.project.service_role #=> String
|
354
|
-
# resp.project.timeout_in_minutes #=> Integer
|
355
|
-
# resp.project.encryption_key #=> String
|
356
|
-
# resp.project.tags #=> Array
|
357
|
-
# resp.project.tags[0].key #=> String
|
358
|
-
# resp.project.tags[0].value #=> String
|
359
|
-
# resp.project.created #=> Time
|
360
|
-
# resp.project.last_modified #=> Time
|
361
|
-
# @overload create_project(params = {})
|
362
|
-
# @param [Hash] params ({})
|
363
|
-
def create_project(params = {}, options = {})
|
364
|
-
req = build_request(:create_project, params)
|
365
|
-
req.send_request(options)
|
366
|
-
end
|
222
|
+
# Gets information about build projects.
|
223
|
+
#
|
224
|
+
# @option params [required, Array<String>] :names
|
225
|
+
# The names of the build projects.
|
226
|
+
#
|
227
|
+
# @return [Types::BatchGetProjectsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
228
|
+
#
|
229
|
+
# * {Types::BatchGetProjectsOutput#projects #projects} => Array<Types::Project>
|
230
|
+
# * {Types::BatchGetProjectsOutput#projects_not_found #projects_not_found} => Array<String>
|
231
|
+
#
|
232
|
+
# @example Request syntax with placeholder values
|
233
|
+
#
|
234
|
+
# resp = client.batch_get_projects({
|
235
|
+
# names: ["NonEmptyString"], # required
|
236
|
+
# })
|
237
|
+
#
|
238
|
+
# @example Response structure
|
239
|
+
#
|
240
|
+
# resp.projects #=> Array
|
241
|
+
# resp.projects[0].name #=> String
|
242
|
+
# resp.projects[0].arn #=> String
|
243
|
+
# resp.projects[0].description #=> String
|
244
|
+
# resp.projects[0].source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
245
|
+
# resp.projects[0].source.location #=> String
|
246
|
+
# resp.projects[0].source.buildspec #=> String
|
247
|
+
# resp.projects[0].source.auth.type #=> String, one of "OAUTH"
|
248
|
+
# resp.projects[0].source.auth.resource #=> String
|
249
|
+
# resp.projects[0].artifacts.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
|
250
|
+
# resp.projects[0].artifacts.location #=> String
|
251
|
+
# resp.projects[0].artifacts.path #=> String
|
252
|
+
# resp.projects[0].artifacts.namespace_type #=> String, one of "NONE", "BUILD_ID"
|
253
|
+
# resp.projects[0].artifacts.name #=> String
|
254
|
+
# resp.projects[0].artifacts.packaging #=> String, one of "NONE", "ZIP"
|
255
|
+
# resp.projects[0].environment.type #=> String, one of "LINUX_CONTAINER"
|
256
|
+
# resp.projects[0].environment.image #=> String
|
257
|
+
# resp.projects[0].environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
258
|
+
# resp.projects[0].environment.environment_variables #=> Array
|
259
|
+
# resp.projects[0].environment.environment_variables[0].name #=> String
|
260
|
+
# resp.projects[0].environment.environment_variables[0].value #=> String
|
261
|
+
# resp.projects[0].service_role #=> String
|
262
|
+
# resp.projects[0].timeout_in_minutes #=> Integer
|
263
|
+
# resp.projects[0].encryption_key #=> String
|
264
|
+
# resp.projects[0].tags #=> Array
|
265
|
+
# resp.projects[0].tags[0].key #=> String
|
266
|
+
# resp.projects[0].tags[0].value #=> String
|
267
|
+
# resp.projects[0].created #=> Time
|
268
|
+
# resp.projects[0].last_modified #=> Time
|
269
|
+
# resp.projects_not_found #=> Array
|
270
|
+
# resp.projects_not_found[0] #=> String
|
271
|
+
#
|
272
|
+
# @overload batch_get_projects(params = {})
|
273
|
+
# @param [Hash] params ({})
|
274
|
+
def batch_get_projects(params = {}, options = {})
|
275
|
+
req = build_request(:batch_get_projects, params)
|
276
|
+
req.send_request(options)
|
277
|
+
end
|
367
278
|
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
279
|
+
# Creates a build project.
|
280
|
+
#
|
281
|
+
# @option params [required, String] :name
|
282
|
+
# The name of the build project.
|
283
|
+
#
|
284
|
+
# @option params [String] :description
|
285
|
+
# A description that makes the build project easy to identify.
|
286
|
+
#
|
287
|
+
# @option params [required, Types::ProjectSource] :source
|
288
|
+
# Information about the build input source code for the build project.
|
289
|
+
#
|
290
|
+
# @option params [required, Types::ProjectArtifacts] :artifacts
|
291
|
+
# Information about the build output artifacts for the build project.
|
292
|
+
#
|
293
|
+
# @option params [required, Types::ProjectEnvironment] :environment
|
294
|
+
# Information about the build environment for the build project.
|
295
|
+
#
|
296
|
+
# @option params [String] :service_role
|
297
|
+
# The ARN of the AWS Identity and Access Management (IAM) role that
|
298
|
+
# enables AWS CodeBuild to interact with dependent AWS services on
|
299
|
+
# behalf of the AWS account.
|
300
|
+
#
|
301
|
+
# @option params [Integer] :timeout_in_minutes
|
302
|
+
# How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to
|
303
|
+
# wait until timing out any build that has not been marked as completed.
|
304
|
+
# The default is 60 minutes.
|
305
|
+
#
|
306
|
+
# @option params [String] :encryption_key
|
307
|
+
# The AWS Key Management Service (AWS KMS) customer master key (CMK) to
|
308
|
+
# be used for encrypting the build output artifacts.
|
309
|
+
#
|
310
|
+
# You can specify either the CMK's Amazon Resource Name (ARN) or, if
|
311
|
+
# available, the CMK's alias (using the format `alias/alias-name `).
|
312
|
+
#
|
313
|
+
# @option params [Array<Types::Tag>] :tags
|
314
|
+
# A set of tags for this build project.
|
315
|
+
#
|
316
|
+
# These tags are available for use by AWS services that support AWS
|
317
|
+
# CodeBuild build project tags.
|
318
|
+
#
|
319
|
+
# @return [Types::CreateProjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
320
|
+
#
|
321
|
+
# * {Types::CreateProjectOutput#project #project} => Types::Project
|
322
|
+
#
|
323
|
+
# @example Request syntax with placeholder values
|
324
|
+
#
|
325
|
+
# resp = client.create_project({
|
326
|
+
# name: "ProjectName", # required
|
327
|
+
# description: "ProjectDescription",
|
328
|
+
# source: { # required
|
329
|
+
# type: "CODECOMMIT", # required, accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3
|
330
|
+
# location: "String",
|
331
|
+
# buildspec: "String",
|
332
|
+
# auth: {
|
333
|
+
# type: "OAUTH", # required, accepts OAUTH
|
334
|
+
# resource: "String",
|
335
|
+
# },
|
336
|
+
# },
|
337
|
+
# artifacts: { # required
|
338
|
+
# type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
|
339
|
+
# location: "String",
|
340
|
+
# path: "String",
|
341
|
+
# namespace_type: "NONE", # accepts NONE, BUILD_ID
|
342
|
+
# name: "String",
|
343
|
+
# packaging: "NONE", # accepts NONE, ZIP
|
344
|
+
# },
|
345
|
+
# environment: { # required
|
346
|
+
# type: "LINUX_CONTAINER", # required, accepts LINUX_CONTAINER
|
347
|
+
# image: "NonEmptyString", # required
|
348
|
+
# compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE
|
349
|
+
# environment_variables: [
|
350
|
+
# {
|
351
|
+
# name: "NonEmptyString", # required
|
352
|
+
# value: "String", # required
|
353
|
+
# },
|
354
|
+
# ],
|
355
|
+
# },
|
356
|
+
# service_role: "NonEmptyString",
|
357
|
+
# timeout_in_minutes: 1,
|
358
|
+
# encryption_key: "NonEmptyString",
|
359
|
+
# tags: [
|
360
|
+
# {
|
361
|
+
# key: "KeyInput",
|
362
|
+
# value: "ValueInput",
|
363
|
+
# },
|
364
|
+
# ],
|
365
|
+
# })
|
366
|
+
#
|
367
|
+
# @example Response structure
|
368
|
+
#
|
369
|
+
# resp.project.name #=> String
|
370
|
+
# resp.project.arn #=> String
|
371
|
+
# resp.project.description #=> String
|
372
|
+
# resp.project.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
373
|
+
# resp.project.source.location #=> String
|
374
|
+
# resp.project.source.buildspec #=> String
|
375
|
+
# resp.project.source.auth.type #=> String, one of "OAUTH"
|
376
|
+
# resp.project.source.auth.resource #=> String
|
377
|
+
# resp.project.artifacts.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
|
378
|
+
# resp.project.artifacts.location #=> String
|
379
|
+
# resp.project.artifacts.path #=> String
|
380
|
+
# resp.project.artifacts.namespace_type #=> String, one of "NONE", "BUILD_ID"
|
381
|
+
# resp.project.artifacts.name #=> String
|
382
|
+
# resp.project.artifacts.packaging #=> String, one of "NONE", "ZIP"
|
383
|
+
# resp.project.environment.type #=> String, one of "LINUX_CONTAINER"
|
384
|
+
# resp.project.environment.image #=> String
|
385
|
+
# resp.project.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
386
|
+
# resp.project.environment.environment_variables #=> Array
|
387
|
+
# resp.project.environment.environment_variables[0].name #=> String
|
388
|
+
# resp.project.environment.environment_variables[0].value #=> String
|
389
|
+
# resp.project.service_role #=> String
|
390
|
+
# resp.project.timeout_in_minutes #=> Integer
|
391
|
+
# resp.project.encryption_key #=> String
|
392
|
+
# resp.project.tags #=> Array
|
393
|
+
# resp.project.tags[0].key #=> String
|
394
|
+
# resp.project.tags[0].value #=> String
|
395
|
+
# resp.project.created #=> Time
|
396
|
+
# resp.project.last_modified #=> Time
|
397
|
+
#
|
398
|
+
# @overload create_project(params = {})
|
399
|
+
# @param [Hash] params ({})
|
400
|
+
def create_project(params = {}, options = {})
|
401
|
+
req = build_request(:create_project, params)
|
402
|
+
req.send_request(options)
|
403
|
+
end
|
383
404
|
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
# * {Types::ListBuildsOutput#next_token #nextToken} => String
|
404
|
-
#
|
405
|
-
# @example Request syntax with placeholder values
|
406
|
-
# resp = client.list_builds({
|
407
|
-
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
408
|
-
# next_token: "String",
|
409
|
-
# })
|
410
|
-
#
|
411
|
-
# @example Response structure
|
412
|
-
# resp.ids #=> Array
|
413
|
-
# resp.ids[0] #=> String
|
414
|
-
# resp.next_token #=> String
|
415
|
-
# @overload list_builds(params = {})
|
416
|
-
# @param [Hash] params ({})
|
417
|
-
def list_builds(params = {}, options = {})
|
418
|
-
req = build_request(:list_builds, params)
|
419
|
-
req.send_request(options)
|
420
|
-
end
|
405
|
+
# Deletes a build project.
|
406
|
+
#
|
407
|
+
# @option params [required, String] :name
|
408
|
+
# The name of the build project.
|
409
|
+
#
|
410
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
411
|
+
#
|
412
|
+
# @example Request syntax with placeholder values
|
413
|
+
#
|
414
|
+
# resp = client.delete_project({
|
415
|
+
# name: "NonEmptyString", # required
|
416
|
+
# })
|
417
|
+
#
|
418
|
+
# @overload delete_project(params = {})
|
419
|
+
# @param [Hash] params ({})
|
420
|
+
def delete_project(params = {}, options = {})
|
421
|
+
req = build_request(:delete_project, params)
|
422
|
+
req.send_request(options)
|
423
|
+
end
|
421
424
|
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
425
|
+
# Gets a list of build IDs, with each build ID representing a single
|
426
|
+
# build.
|
427
|
+
#
|
428
|
+
# @option params [String] :sort_order
|
429
|
+
# The order to list build IDs. Valid values include:
|
430
|
+
#
|
431
|
+
# * `ASCENDING`\: List the build IDs in ascending order by build ID.
|
432
|
+
#
|
433
|
+
# * `DESCENDING`\: List the build IDs in descending order by build ID.
|
434
|
+
#
|
435
|
+
# @option params [String] :next_token
|
436
|
+
# During a previous call, if there are more than 100 items in the list,
|
437
|
+
# only the first 100 items are returned, along with a unique string
|
438
|
+
# called a *next token*. To get the next batch of items in the list,
|
439
|
+
# call this operation again, adding the next token to the call. To get
|
440
|
+
# all of the items in the list, keep calling this operation with each
|
441
|
+
# subsequent next token that is returned, until no more next tokens are
|
442
|
+
# returned.
|
443
|
+
#
|
444
|
+
# @return [Types::ListBuildsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
445
|
+
#
|
446
|
+
# * {Types::ListBuildsOutput#ids #ids} => Array<String>
|
447
|
+
# * {Types::ListBuildsOutput#next_token #next_token} => String
|
448
|
+
#
|
449
|
+
# @example Request syntax with placeholder values
|
450
|
+
#
|
451
|
+
# resp = client.list_builds({
|
452
|
+
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
453
|
+
# next_token: "String",
|
454
|
+
# })
|
455
|
+
#
|
456
|
+
# @example Response structure
|
457
|
+
#
|
458
|
+
# resp.ids #=> Array
|
459
|
+
# resp.ids[0] #=> String
|
460
|
+
# resp.next_token #=> String
|
461
|
+
#
|
462
|
+
# @overload list_builds(params = {})
|
463
|
+
# @param [Hash] params ({})
|
464
|
+
def list_builds(params = {}, options = {})
|
465
|
+
req = build_request(:list_builds, params)
|
466
|
+
req.send_request(options)
|
467
|
+
end
|
462
468
|
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
469
|
+
# Gets a list of build IDs for the specified build project, with each
|
470
|
+
# build ID representing a single build.
|
471
|
+
#
|
472
|
+
# @option params [required, String] :project_name
|
473
|
+
# The name of the build project.
|
474
|
+
#
|
475
|
+
# @option params [String] :sort_order
|
476
|
+
# The order to list build IDs. Valid values include:
|
477
|
+
#
|
478
|
+
# * `ASCENDING`\: List the build IDs in ascending order by build ID.
|
479
|
+
#
|
480
|
+
# * `DESCENDING`\: List the build IDs in descending order by build ID.
|
481
|
+
#
|
482
|
+
# @option params [String] :next_token
|
483
|
+
# During a previous call, if there are more than 100 items in the list,
|
484
|
+
# only the first 100 items are returned, along with a unique string
|
485
|
+
# called a *next token*. To get the next batch of items in the list,
|
486
|
+
# call this operation again, adding the next token to the call. To get
|
487
|
+
# all of the items in the list, keep calling this operation with each
|
488
|
+
# subsequent next token that is returned, until no more next tokens are
|
489
|
+
# returned.
|
490
|
+
#
|
491
|
+
# @return [Types::ListBuildsForProjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
492
|
+
#
|
493
|
+
# * {Types::ListBuildsForProjectOutput#ids #ids} => Array<String>
|
494
|
+
# * {Types::ListBuildsForProjectOutput#next_token #next_token} => String
|
495
|
+
#
|
496
|
+
# @example Request syntax with placeholder values
|
497
|
+
#
|
498
|
+
# resp = client.list_builds_for_project({
|
499
|
+
# project_name: "NonEmptyString", # required
|
500
|
+
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
501
|
+
# next_token: "String",
|
502
|
+
# })
|
503
|
+
#
|
504
|
+
# @example Response structure
|
505
|
+
#
|
506
|
+
# resp.ids #=> Array
|
507
|
+
# resp.ids[0] #=> String
|
508
|
+
# resp.next_token #=> String
|
509
|
+
#
|
510
|
+
# @overload list_builds_for_project(params = {})
|
511
|
+
# @param [Hash] params ({})
|
512
|
+
def list_builds_for_project(params = {}, options = {})
|
513
|
+
req = build_request(:list_builds_for_project, params)
|
514
|
+
req.send_request(options)
|
515
|
+
end
|
486
516
|
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
#
|
511
|
-
# Use `sortBy` to specify the criterion to be used to list build project
|
512
|
-
# names.
|
513
|
-
# @option params [String] :next_token
|
514
|
-
# During a previous call, if there are more than 100 items in the list,
|
515
|
-
# only the first 100 items are returned, along with a unique string
|
516
|
-
# called a *next token*. To get the next batch of items in the list,
|
517
|
-
# call this operation again, adding the next token to the call. To get
|
518
|
-
# all of the items in the list, keep calling this operation with each
|
519
|
-
# subsequent next token that is returned, until no more next tokens are
|
520
|
-
# returned.
|
521
|
-
# @return [Types::ListProjectsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
522
|
-
#
|
523
|
-
# * {Types::ListProjectsOutput#next_token #nextToken} => String
|
524
|
-
# * {Types::ListProjectsOutput#projects #projects} => Array<String>
|
525
|
-
#
|
526
|
-
# @example Request syntax with placeholder values
|
527
|
-
# resp = client.list_projects({
|
528
|
-
# sort_by: "NAME", # accepts NAME, CREATED_TIME, LAST_MODIFIED_TIME
|
529
|
-
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
530
|
-
# next_token: "NonEmptyString",
|
531
|
-
# })
|
532
|
-
#
|
533
|
-
# @example Response structure
|
534
|
-
# resp.next_token #=> String
|
535
|
-
# resp.projects #=> Array
|
536
|
-
# resp.projects[0] #=> String
|
537
|
-
# @overload list_projects(params = {})
|
538
|
-
# @param [Hash] params ({})
|
539
|
-
def list_projects(params = {}, options = {})
|
540
|
-
req = build_request(:list_projects, params)
|
541
|
-
req.send_request(options)
|
542
|
-
end
|
517
|
+
# Gets information about Docker images that are managed by AWS
|
518
|
+
# CodeBuild.
|
519
|
+
#
|
520
|
+
# @return [Types::ListCuratedEnvironmentImagesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
521
|
+
#
|
522
|
+
# * {Types::ListCuratedEnvironmentImagesOutput#platforms #platforms} => Array<Types::EnvironmentPlatform>
|
523
|
+
#
|
524
|
+
# @example Response structure
|
525
|
+
#
|
526
|
+
# resp.platforms #=> Array
|
527
|
+
# resp.platforms[0].platform #=> String, one of "DEBIAN", "AMAZON_LINUX", "UBUNTU"
|
528
|
+
# resp.platforms[0].languages #=> Array
|
529
|
+
# resp.platforms[0].languages[0].language #=> String, one of "JAVA", "PYTHON", "NODE_JS", "RUBY", "GOLANG", "DOCKER", "ANDROID", "BASE"
|
530
|
+
# resp.platforms[0].languages[0].images #=> Array
|
531
|
+
# resp.platforms[0].languages[0].images[0].name #=> String
|
532
|
+
# resp.platforms[0].languages[0].images[0].description #=> String
|
533
|
+
#
|
534
|
+
# @overload list_curated_environment_images(params = {})
|
535
|
+
# @param [Hash] params ({})
|
536
|
+
def list_curated_environment_images(params = {}, options = {})
|
537
|
+
req = build_request(:list_curated_environment_images, params)
|
538
|
+
req.send_request(options)
|
539
|
+
end
|
543
540
|
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
# resp.build.phases[0].start_time #=> Time
|
608
|
-
# resp.build.phases[0].end_time #=> Time
|
609
|
-
# resp.build.phases[0].duration_in_seconds #=> Integer
|
610
|
-
# resp.build.phases[0].contexts #=> Array
|
611
|
-
# resp.build.phases[0].contexts[0].status_code #=> String
|
612
|
-
# resp.build.phases[0].contexts[0].message #=> String
|
613
|
-
# resp.build.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
614
|
-
# resp.build.source.location #=> String
|
615
|
-
# resp.build.source.buildspec #=> String
|
616
|
-
# resp.build.source.auth.type #=> String, one of "OAUTH"
|
617
|
-
# resp.build.source.auth.resource #=> String
|
618
|
-
# resp.build.artifacts.location #=> String
|
619
|
-
# resp.build.artifacts.sha256sum #=> String
|
620
|
-
# resp.build.artifacts.md5sum #=> String
|
621
|
-
# resp.build.environment.type #=> String, one of "LINUX_CONTAINER"
|
622
|
-
# resp.build.environment.image #=> String
|
623
|
-
# resp.build.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
624
|
-
# resp.build.environment.environment_variables #=> Array
|
625
|
-
# resp.build.environment.environment_variables[0].name #=> String
|
626
|
-
# resp.build.environment.environment_variables[0].value #=> String
|
627
|
-
# resp.build.logs.group_name #=> String
|
628
|
-
# resp.build.logs.stream_name #=> String
|
629
|
-
# resp.build.logs.deep_link #=> String
|
630
|
-
# resp.build.timeout_in_minutes #=> Integer
|
631
|
-
# resp.build.build_complete #=> Boolean
|
632
|
-
# resp.build.initiator #=> String
|
633
|
-
# @overload start_build(params = {})
|
634
|
-
# @param [Hash] params ({})
|
635
|
-
def start_build(params = {}, options = {})
|
636
|
-
req = build_request(:start_build, params)
|
637
|
-
req.send_request(options)
|
638
|
-
end
|
541
|
+
# Gets a list of build project names, with each build project name
|
542
|
+
# representing a single build project.
|
543
|
+
#
|
544
|
+
# @option params [String] :sort_by
|
545
|
+
# The criterion to be used to list build project names. Valid values
|
546
|
+
# include:
|
547
|
+
#
|
548
|
+
# * `CREATED_TIME`\: List the build project names based on when each
|
549
|
+
# build project was created.
|
550
|
+
#
|
551
|
+
# * `LAST_MODIFIED_TIME`\: List the build project names based on when
|
552
|
+
# information about each build project was last changed.
|
553
|
+
#
|
554
|
+
# * `NAME`\: List the build project names based on each build project's
|
555
|
+
# name.
|
556
|
+
#
|
557
|
+
# Use `sortOrder` to specify in what order to list the build project
|
558
|
+
# names based on the preceding criteria.
|
559
|
+
#
|
560
|
+
# @option params [String] :sort_order
|
561
|
+
# The order in which to list build projects. Valid values include:
|
562
|
+
#
|
563
|
+
# * `ASCENDING`\: List the build project names in ascending order.
|
564
|
+
#
|
565
|
+
# * `DESCENDING`\: List the build project names in descending order.
|
566
|
+
#
|
567
|
+
# Use `sortBy` to specify the criterion to be used to list build project
|
568
|
+
# names.
|
569
|
+
#
|
570
|
+
# @option params [String] :next_token
|
571
|
+
# During a previous call, if there are more than 100 items in the list,
|
572
|
+
# only the first 100 items are returned, along with a unique string
|
573
|
+
# called a *next token*. To get the next batch of items in the list,
|
574
|
+
# call this operation again, adding the next token to the call. To get
|
575
|
+
# all of the items in the list, keep calling this operation with each
|
576
|
+
# subsequent next token that is returned, until no more next tokens are
|
577
|
+
# returned.
|
578
|
+
#
|
579
|
+
# @return [Types::ListProjectsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
580
|
+
#
|
581
|
+
# * {Types::ListProjectsOutput#next_token #next_token} => String
|
582
|
+
# * {Types::ListProjectsOutput#projects #projects} => Array<String>
|
583
|
+
#
|
584
|
+
# @example Request syntax with placeholder values
|
585
|
+
#
|
586
|
+
# resp = client.list_projects({
|
587
|
+
# sort_by: "NAME", # accepts NAME, CREATED_TIME, LAST_MODIFIED_TIME
|
588
|
+
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
589
|
+
# next_token: "NonEmptyString",
|
590
|
+
# })
|
591
|
+
#
|
592
|
+
# @example Response structure
|
593
|
+
#
|
594
|
+
# resp.next_token #=> String
|
595
|
+
# resp.projects #=> Array
|
596
|
+
# resp.projects[0] #=> String
|
597
|
+
#
|
598
|
+
# @overload list_projects(params = {})
|
599
|
+
# @param [Hash] params ({})
|
600
|
+
def list_projects(params = {}, options = {})
|
601
|
+
req = build_request(:list_projects, params)
|
602
|
+
req.send_request(options)
|
603
|
+
end
|
639
604
|
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
605
|
+
# Starts running a build.
|
606
|
+
#
|
607
|
+
# @option params [required, String] :project_name
|
608
|
+
# The name of the build project to start running a build.
|
609
|
+
#
|
610
|
+
# @option params [String] :source_version
|
611
|
+
# A version of the build input to be built, for this build only. If not
|
612
|
+
# specified, the latest version will be used. If specified, must be one
|
613
|
+
# of:
|
614
|
+
#
|
615
|
+
# * For AWS CodeCommit or GitHub: the commit ID to use.
|
616
|
+
#
|
617
|
+
# * For Amazon Simple Storage Service (Amazon S3): the version ID of the
|
618
|
+
# object representing the build input ZIP file to use.
|
619
|
+
#
|
620
|
+
# @option params [Types::ProjectArtifacts] :artifacts_override
|
621
|
+
# Build output artifact settings that override, for this build only, the
|
622
|
+
# latest ones already defined in the build project.
|
623
|
+
#
|
624
|
+
# @option params [Array<Types::EnvironmentVariable>] :environment_variables_override
|
625
|
+
# A set of environment variables that overrides, for this build only,
|
626
|
+
# the latest ones already defined in the build project.
|
627
|
+
#
|
628
|
+
# @option params [String] :buildspec_override
|
629
|
+
# A build spec declaration that overrides, for this build only, the
|
630
|
+
# latest one already defined in the build project.
|
631
|
+
#
|
632
|
+
# @option params [Integer] :timeout_in_minutes_override
|
633
|
+
# The number of build timeout minutes, from 5 to 480 (8 hours), that
|
634
|
+
# overrides, for this build only, the latest setting already defined in
|
635
|
+
# the build project.
|
636
|
+
#
|
637
|
+
# @return [Types::StartBuildOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
638
|
+
#
|
639
|
+
# * {Types::StartBuildOutput#build #build} => Types::Build
|
640
|
+
#
|
641
|
+
# @example Request syntax with placeholder values
|
642
|
+
#
|
643
|
+
# resp = client.start_build({
|
644
|
+
# project_name: "NonEmptyString", # required
|
645
|
+
# source_version: "String",
|
646
|
+
# artifacts_override: {
|
647
|
+
# type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
|
648
|
+
# location: "String",
|
649
|
+
# path: "String",
|
650
|
+
# namespace_type: "NONE", # accepts NONE, BUILD_ID
|
651
|
+
# name: "String",
|
652
|
+
# packaging: "NONE", # accepts NONE, ZIP
|
653
|
+
# },
|
654
|
+
# environment_variables_override: [
|
655
|
+
# {
|
656
|
+
# name: "NonEmptyString", # required
|
657
|
+
# value: "String", # required
|
658
|
+
# },
|
659
|
+
# ],
|
660
|
+
# buildspec_override: "String",
|
661
|
+
# timeout_in_minutes_override: 1,
|
662
|
+
# })
|
663
|
+
#
|
664
|
+
# @example Response structure
|
665
|
+
#
|
666
|
+
# resp.build.id #=> String
|
667
|
+
# resp.build.arn #=> String
|
668
|
+
# resp.build.start_time #=> Time
|
669
|
+
# resp.build.end_time #=> Time
|
670
|
+
# resp.build.current_phase #=> String
|
671
|
+
# resp.build.build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
|
672
|
+
# resp.build.source_version #=> String
|
673
|
+
# resp.build.project_name #=> String
|
674
|
+
# resp.build.phases #=> Array
|
675
|
+
# resp.build.phases[0].phase_type #=> String, one of "SUBMITTED", "PROVISIONING", "DOWNLOAD_SOURCE", "INSTALL", "PRE_BUILD", "BUILD", "POST_BUILD", "UPLOAD_ARTIFACTS", "FINALIZING", "COMPLETED"
|
676
|
+
# resp.build.phases[0].phase_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
|
677
|
+
# resp.build.phases[0].start_time #=> Time
|
678
|
+
# resp.build.phases[0].end_time #=> Time
|
679
|
+
# resp.build.phases[0].duration_in_seconds #=> Integer
|
680
|
+
# resp.build.phases[0].contexts #=> Array
|
681
|
+
# resp.build.phases[0].contexts[0].status_code #=> String
|
682
|
+
# resp.build.phases[0].contexts[0].message #=> String
|
683
|
+
# resp.build.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
684
|
+
# resp.build.source.location #=> String
|
685
|
+
# resp.build.source.buildspec #=> String
|
686
|
+
# resp.build.source.auth.type #=> String, one of "OAUTH"
|
687
|
+
# resp.build.source.auth.resource #=> String
|
688
|
+
# resp.build.artifacts.location #=> String
|
689
|
+
# resp.build.artifacts.sha256sum #=> String
|
690
|
+
# resp.build.artifacts.md5sum #=> String
|
691
|
+
# resp.build.environment.type #=> String, one of "LINUX_CONTAINER"
|
692
|
+
# resp.build.environment.image #=> String
|
693
|
+
# resp.build.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
694
|
+
# resp.build.environment.environment_variables #=> Array
|
695
|
+
# resp.build.environment.environment_variables[0].name #=> String
|
696
|
+
# resp.build.environment.environment_variables[0].value #=> String
|
697
|
+
# resp.build.logs.group_name #=> String
|
698
|
+
# resp.build.logs.stream_name #=> String
|
699
|
+
# resp.build.logs.deep_link #=> String
|
700
|
+
# resp.build.timeout_in_minutes #=> Integer
|
701
|
+
# resp.build.build_complete #=> Boolean
|
702
|
+
# resp.build.initiator #=> String
|
703
|
+
#
|
704
|
+
# @overload start_build(params = {})
|
705
|
+
# @param [Hash] params ({})
|
706
|
+
def start_build(params = {}, options = {})
|
707
|
+
req = build_request(:start_build, params)
|
708
|
+
req.send_request(options)
|
709
|
+
end
|
700
710
|
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
# packaging: "NONE", # accepts NONE, ZIP
|
763
|
-
# },
|
764
|
-
# environment: {
|
765
|
-
# type: "LINUX_CONTAINER", # required, accepts LINUX_CONTAINER
|
766
|
-
# image: "NonEmptyString", # required
|
767
|
-
# compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE
|
768
|
-
# environment_variables: [
|
769
|
-
# {
|
770
|
-
# name: "NonEmptyString", # required
|
771
|
-
# value: "String", # required
|
772
|
-
# },
|
773
|
-
# ],
|
774
|
-
# },
|
775
|
-
# service_role: "NonEmptyString",
|
776
|
-
# timeout_in_minutes: 1,
|
777
|
-
# encryption_key: "NonEmptyString",
|
778
|
-
# tags: [
|
779
|
-
# {
|
780
|
-
# key: "KeyInput",
|
781
|
-
# value: "ValueInput",
|
782
|
-
# },
|
783
|
-
# ],
|
784
|
-
# })
|
785
|
-
#
|
786
|
-
# @example Response structure
|
787
|
-
# resp.project.name #=> String
|
788
|
-
# resp.project.arn #=> String
|
789
|
-
# resp.project.description #=> String
|
790
|
-
# resp.project.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
791
|
-
# resp.project.source.location #=> String
|
792
|
-
# resp.project.source.buildspec #=> String
|
793
|
-
# resp.project.source.auth.type #=> String, one of "OAUTH"
|
794
|
-
# resp.project.source.auth.resource #=> String
|
795
|
-
# resp.project.artifacts.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
|
796
|
-
# resp.project.artifacts.location #=> String
|
797
|
-
# resp.project.artifacts.path #=> String
|
798
|
-
# resp.project.artifacts.namespace_type #=> String, one of "NONE", "BUILD_ID"
|
799
|
-
# resp.project.artifacts.name #=> String
|
800
|
-
# resp.project.artifacts.packaging #=> String, one of "NONE", "ZIP"
|
801
|
-
# resp.project.environment.type #=> String, one of "LINUX_CONTAINER"
|
802
|
-
# resp.project.environment.image #=> String
|
803
|
-
# resp.project.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
804
|
-
# resp.project.environment.environment_variables #=> Array
|
805
|
-
# resp.project.environment.environment_variables[0].name #=> String
|
806
|
-
# resp.project.environment.environment_variables[0].value #=> String
|
807
|
-
# resp.project.service_role #=> String
|
808
|
-
# resp.project.timeout_in_minutes #=> Integer
|
809
|
-
# resp.project.encryption_key #=> String
|
810
|
-
# resp.project.tags #=> Array
|
811
|
-
# resp.project.tags[0].key #=> String
|
812
|
-
# resp.project.tags[0].value #=> String
|
813
|
-
# resp.project.created #=> Time
|
814
|
-
# resp.project.last_modified #=> Time
|
815
|
-
# @overload update_project(params = {})
|
816
|
-
# @param [Hash] params ({})
|
817
|
-
def update_project(params = {}, options = {})
|
818
|
-
req = build_request(:update_project, params)
|
819
|
-
req.send_request(options)
|
820
|
-
end
|
711
|
+
# Attempts to stop running a build.
|
712
|
+
#
|
713
|
+
# @option params [required, String] :id
|
714
|
+
# The ID of the build.
|
715
|
+
#
|
716
|
+
# @return [Types::StopBuildOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
717
|
+
#
|
718
|
+
# * {Types::StopBuildOutput#build #build} => Types::Build
|
719
|
+
#
|
720
|
+
# @example Request syntax with placeholder values
|
721
|
+
#
|
722
|
+
# resp = client.stop_build({
|
723
|
+
# id: "NonEmptyString", # required
|
724
|
+
# })
|
725
|
+
#
|
726
|
+
# @example Response structure
|
727
|
+
#
|
728
|
+
# resp.build.id #=> String
|
729
|
+
# resp.build.arn #=> String
|
730
|
+
# resp.build.start_time #=> Time
|
731
|
+
# resp.build.end_time #=> Time
|
732
|
+
# resp.build.current_phase #=> String
|
733
|
+
# resp.build.build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
|
734
|
+
# resp.build.source_version #=> String
|
735
|
+
# resp.build.project_name #=> String
|
736
|
+
# resp.build.phases #=> Array
|
737
|
+
# resp.build.phases[0].phase_type #=> String, one of "SUBMITTED", "PROVISIONING", "DOWNLOAD_SOURCE", "INSTALL", "PRE_BUILD", "BUILD", "POST_BUILD", "UPLOAD_ARTIFACTS", "FINALIZING", "COMPLETED"
|
738
|
+
# resp.build.phases[0].phase_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
|
739
|
+
# resp.build.phases[0].start_time #=> Time
|
740
|
+
# resp.build.phases[0].end_time #=> Time
|
741
|
+
# resp.build.phases[0].duration_in_seconds #=> Integer
|
742
|
+
# resp.build.phases[0].contexts #=> Array
|
743
|
+
# resp.build.phases[0].contexts[0].status_code #=> String
|
744
|
+
# resp.build.phases[0].contexts[0].message #=> String
|
745
|
+
# resp.build.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
746
|
+
# resp.build.source.location #=> String
|
747
|
+
# resp.build.source.buildspec #=> String
|
748
|
+
# resp.build.source.auth.type #=> String, one of "OAUTH"
|
749
|
+
# resp.build.source.auth.resource #=> String
|
750
|
+
# resp.build.artifacts.location #=> String
|
751
|
+
# resp.build.artifacts.sha256sum #=> String
|
752
|
+
# resp.build.artifacts.md5sum #=> String
|
753
|
+
# resp.build.environment.type #=> String, one of "LINUX_CONTAINER"
|
754
|
+
# resp.build.environment.image #=> String
|
755
|
+
# resp.build.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
756
|
+
# resp.build.environment.environment_variables #=> Array
|
757
|
+
# resp.build.environment.environment_variables[0].name #=> String
|
758
|
+
# resp.build.environment.environment_variables[0].value #=> String
|
759
|
+
# resp.build.logs.group_name #=> String
|
760
|
+
# resp.build.logs.stream_name #=> String
|
761
|
+
# resp.build.logs.deep_link #=> String
|
762
|
+
# resp.build.timeout_in_minutes #=> Integer
|
763
|
+
# resp.build.build_complete #=> Boolean
|
764
|
+
# resp.build.initiator #=> String
|
765
|
+
#
|
766
|
+
# @overload stop_build(params = {})
|
767
|
+
# @param [Hash] params ({})
|
768
|
+
def stop_build(params = {}, options = {})
|
769
|
+
req = build_request(:stop_build, params)
|
770
|
+
req.send_request(options)
|
771
|
+
end
|
821
772
|
|
822
|
-
|
773
|
+
# Changes the settings of a build project.
|
774
|
+
#
|
775
|
+
# @option params [required, String] :name
|
776
|
+
# The name of the build project.
|
777
|
+
#
|
778
|
+
# <note markdown="1"> You cannot change a build project's name.
|
779
|
+
#
|
780
|
+
# </note>
|
781
|
+
#
|
782
|
+
# @option params [String] :description
|
783
|
+
# A new or replacement description of the build project.
|
784
|
+
#
|
785
|
+
# @option params [Types::ProjectSource] :source
|
786
|
+
# Information to be changed about the build input source code for the
|
787
|
+
# build project.
|
788
|
+
#
|
789
|
+
# @option params [Types::ProjectArtifacts] :artifacts
|
790
|
+
# Information to be changed about the build output artifacts for the
|
791
|
+
# build project.
|
792
|
+
#
|
793
|
+
# @option params [Types::ProjectEnvironment] :environment
|
794
|
+
# Information to be changed about the build environment for the build
|
795
|
+
# project.
|
796
|
+
#
|
797
|
+
# @option params [String] :service_role
|
798
|
+
# The replacement ARN of the AWS Identity and Access Management (IAM)
|
799
|
+
# role that enables AWS CodeBuild to interact with dependent AWS
|
800
|
+
# services on behalf of the AWS account.
|
801
|
+
#
|
802
|
+
# @option params [Integer] :timeout_in_minutes
|
803
|
+
# The replacement value in minutes, from 5 to 480 (8 hours), for AWS
|
804
|
+
# CodeBuild to wait before timing out any related build that did not get
|
805
|
+
# marked as completed.
|
806
|
+
#
|
807
|
+
# @option params [String] :encryption_key
|
808
|
+
# The replacement AWS Key Management Service (AWS KMS) customer master
|
809
|
+
# key (CMK) to be used for encrypting the build output artifacts.
|
810
|
+
#
|
811
|
+
# You can specify either the CMK's Amazon Resource Name (ARN) or, if
|
812
|
+
# available, the CMK's alias (using the format `alias/alias-name `).
|
813
|
+
#
|
814
|
+
# @option params [Array<Types::Tag>] :tags
|
815
|
+
# The replacement set of tags for this build project.
|
816
|
+
#
|
817
|
+
# These tags are available for use by AWS services that support AWS
|
818
|
+
# CodeBuild build project tags.
|
819
|
+
#
|
820
|
+
# @return [Types::UpdateProjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
821
|
+
#
|
822
|
+
# * {Types::UpdateProjectOutput#project #project} => Types::Project
|
823
|
+
#
|
824
|
+
# @example Request syntax with placeholder values
|
825
|
+
#
|
826
|
+
# resp = client.update_project({
|
827
|
+
# name: "NonEmptyString", # required
|
828
|
+
# description: "ProjectDescription",
|
829
|
+
# source: {
|
830
|
+
# type: "CODECOMMIT", # required, accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3
|
831
|
+
# location: "String",
|
832
|
+
# buildspec: "String",
|
833
|
+
# auth: {
|
834
|
+
# type: "OAUTH", # required, accepts OAUTH
|
835
|
+
# resource: "String",
|
836
|
+
# },
|
837
|
+
# },
|
838
|
+
# artifacts: {
|
839
|
+
# type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
|
840
|
+
# location: "String",
|
841
|
+
# path: "String",
|
842
|
+
# namespace_type: "NONE", # accepts NONE, BUILD_ID
|
843
|
+
# name: "String",
|
844
|
+
# packaging: "NONE", # accepts NONE, ZIP
|
845
|
+
# },
|
846
|
+
# environment: {
|
847
|
+
# type: "LINUX_CONTAINER", # required, accepts LINUX_CONTAINER
|
848
|
+
# image: "NonEmptyString", # required
|
849
|
+
# compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE
|
850
|
+
# environment_variables: [
|
851
|
+
# {
|
852
|
+
# name: "NonEmptyString", # required
|
853
|
+
# value: "String", # required
|
854
|
+
# },
|
855
|
+
# ],
|
856
|
+
# },
|
857
|
+
# service_role: "NonEmptyString",
|
858
|
+
# timeout_in_minutes: 1,
|
859
|
+
# encryption_key: "NonEmptyString",
|
860
|
+
# tags: [
|
861
|
+
# {
|
862
|
+
# key: "KeyInput",
|
863
|
+
# value: "ValueInput",
|
864
|
+
# },
|
865
|
+
# ],
|
866
|
+
# })
|
867
|
+
#
|
868
|
+
# @example Response structure
|
869
|
+
#
|
870
|
+
# resp.project.name #=> String
|
871
|
+
# resp.project.arn #=> String
|
872
|
+
# resp.project.description #=> String
|
873
|
+
# resp.project.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3"
|
874
|
+
# resp.project.source.location #=> String
|
875
|
+
# resp.project.source.buildspec #=> String
|
876
|
+
# resp.project.source.auth.type #=> String, one of "OAUTH"
|
877
|
+
# resp.project.source.auth.resource #=> String
|
878
|
+
# resp.project.artifacts.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
|
879
|
+
# resp.project.artifacts.location #=> String
|
880
|
+
# resp.project.artifacts.path #=> String
|
881
|
+
# resp.project.artifacts.namespace_type #=> String, one of "NONE", "BUILD_ID"
|
882
|
+
# resp.project.artifacts.name #=> String
|
883
|
+
# resp.project.artifacts.packaging #=> String, one of "NONE", "ZIP"
|
884
|
+
# resp.project.environment.type #=> String, one of "LINUX_CONTAINER"
|
885
|
+
# resp.project.environment.image #=> String
|
886
|
+
# resp.project.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE"
|
887
|
+
# resp.project.environment.environment_variables #=> Array
|
888
|
+
# resp.project.environment.environment_variables[0].name #=> String
|
889
|
+
# resp.project.environment.environment_variables[0].value #=> String
|
890
|
+
# resp.project.service_role #=> String
|
891
|
+
# resp.project.timeout_in_minutes #=> Integer
|
892
|
+
# resp.project.encryption_key #=> String
|
893
|
+
# resp.project.tags #=> Array
|
894
|
+
# resp.project.tags[0].key #=> String
|
895
|
+
# resp.project.tags[0].value #=> String
|
896
|
+
# resp.project.created #=> Time
|
897
|
+
# resp.project.last_modified #=> Time
|
898
|
+
#
|
899
|
+
# @overload update_project(params = {})
|
900
|
+
# @param [Hash] params ({})
|
901
|
+
def update_project(params = {}, options = {})
|
902
|
+
req = build_request(:update_project, params)
|
903
|
+
req.send_request(options)
|
904
|
+
end
|
823
905
|
|
824
|
-
|
825
|
-
# @api private
|
826
|
-
def build_request(operation_name, params = {})
|
827
|
-
handlers = @handlers.for(operation_name)
|
828
|
-
context = Seahorse::Client::RequestContext.new(
|
829
|
-
operation_name: operation_name,
|
830
|
-
operation: config.api.operation(operation_name),
|
831
|
-
client: self,
|
832
|
-
params: params,
|
833
|
-
config: config)
|
834
|
-
context[:gem_name] = 'aws-sdk-codebuild'
|
835
|
-
context[:gem_version] = '1.0.0.rc2'
|
836
|
-
Seahorse::Client::Request.new(handlers, context)
|
837
|
-
end
|
906
|
+
# @!endgroup
|
838
907
|
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
908
|
+
# @param params ({})
|
909
|
+
# @api private
|
910
|
+
def build_request(operation_name, params = {})
|
911
|
+
handlers = @handlers.for(operation_name)
|
912
|
+
context = Seahorse::Client::RequestContext.new(
|
913
|
+
operation_name: operation_name,
|
914
|
+
operation: config.api.operation(operation_name),
|
915
|
+
client: self,
|
916
|
+
params: params,
|
917
|
+
config: config)
|
918
|
+
context[:gem_name] = 'aws-sdk-codebuild'
|
919
|
+
context[:gem_version] = '1.0.0.rc2'
|
920
|
+
Seahorse::Client::Request.new(handlers, context)
|
921
|
+
end
|
844
922
|
|
845
|
-
|
923
|
+
# @api private
|
924
|
+
# @deprecated
|
925
|
+
def waiter_names
|
926
|
+
[]
|
927
|
+
end
|
846
928
|
|
847
|
-
|
848
|
-
attr_reader :identifier
|
929
|
+
class << self
|
849
930
|
|
850
|
-
|
851
|
-
|
852
|
-
Errors
|
853
|
-
end
|
931
|
+
# @api private
|
932
|
+
attr_reader :identifier
|
854
933
|
|
934
|
+
# @api private
|
935
|
+
def errors_module
|
936
|
+
Errors
|
855
937
|
end
|
938
|
+
|
856
939
|
end
|
857
940
|
end
|
858
941
|
end
|