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
@@ -1,23 +1,14 @@
|
|
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
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
module
|
10
|
-
module Errors
|
8
|
+
module Aws::CodeBuild
|
9
|
+
module Errors
|
11
10
|
|
12
|
-
|
11
|
+
extend Aws::Errors::DynamicErrors
|
13
12
|
|
14
|
-
# Raised when calling #load or #data on a resource class that can not be
|
15
|
-
# loaded. This can happen when:
|
16
|
-
#
|
17
|
-
# * A resource class has identifiers, but no data attributes.
|
18
|
-
# * Resource data is only available when making an API call that
|
19
|
-
# enumerates all resources of that type.
|
20
|
-
class ResourceNotLoadable < RuntimeError; end
|
21
|
-
end
|
22
13
|
end
|
23
14
|
end
|
@@ -1,25 +1,23 @@
|
|
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
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
|
10
|
-
class Resource
|
8
|
+
module Aws::CodeBuild
|
9
|
+
class Resource
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
# @return [Client]
|
19
|
-
def client
|
20
|
-
@client
|
21
|
-
end
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
22
16
|
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
23
20
|
end
|
21
|
+
|
24
22
|
end
|
25
23
|
end
|
@@ -1,1320 +1,1374 @@
|
|
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
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
module
|
10
|
-
module Types
|
8
|
+
module Aws::CodeBuild
|
9
|
+
module Types
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
# Information about the requested builds.
|
28
|
-
# @return [Array<Types::Build>]
|
29
|
-
#
|
30
|
-
# @!attribute [rw] builds_not_found
|
31
|
-
# The IDs of builds for which information could not be found.
|
32
|
-
# @return [Array<String>]
|
33
|
-
class BatchGetBuildsOutput < Struct.new(
|
34
|
-
:builds,
|
35
|
-
:builds_not_found)
|
36
|
-
include Aws::Structure
|
37
|
-
end
|
11
|
+
# @note When making an API call, you may pass BatchGetBuildsInput
|
12
|
+
# data as a hash:
|
13
|
+
#
|
14
|
+
# {
|
15
|
+
# ids: ["NonEmptyString"], # required
|
16
|
+
# }
|
17
|
+
#
|
18
|
+
# @!attribute [rw] ids
|
19
|
+
# The IDs of the builds.
|
20
|
+
# @return [Array<String>]
|
21
|
+
#
|
22
|
+
class BatchGetBuildsInput < Struct.new(
|
23
|
+
:ids)
|
24
|
+
include Aws::Structure
|
25
|
+
end
|
38
26
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
27
|
+
# @!attribute [rw] builds
|
28
|
+
# Information about the requested builds.
|
29
|
+
# @return [Array<Types::Build>]
|
30
|
+
#
|
31
|
+
# @!attribute [rw] builds_not_found
|
32
|
+
# The IDs of builds for which information could not be found.
|
33
|
+
# @return [Array<String>]
|
34
|
+
#
|
35
|
+
class BatchGetBuildsOutput < Struct.new(
|
36
|
+
:builds,
|
37
|
+
:builds_not_found)
|
38
|
+
include Aws::Structure
|
39
|
+
end
|
52
40
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
41
|
+
# @note When making an API call, you may pass BatchGetProjectsInput
|
42
|
+
# data as a hash:
|
43
|
+
#
|
44
|
+
# {
|
45
|
+
# names: ["NonEmptyString"], # required
|
46
|
+
# }
|
47
|
+
#
|
48
|
+
# @!attribute [rw] names
|
49
|
+
# The names of the build projects.
|
50
|
+
# @return [Array<String>]
|
51
|
+
#
|
52
|
+
class BatchGetProjectsInput < Struct.new(
|
53
|
+
:names)
|
54
|
+
include Aws::Structure
|
55
|
+
end
|
66
56
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
# When the build process ended, expressed in Unix time format.
|
82
|
-
# @return [Time]
|
83
|
-
#
|
84
|
-
# @!attribute [rw] current_phase
|
85
|
-
# The build's current build phase.
|
86
|
-
# @return [String]
|
87
|
-
#
|
88
|
-
# @!attribute [rw] build_status
|
89
|
-
# The build's current status. Valid values include:
|
90
|
-
#
|
91
|
-
# * `FAILED`\: The build failed.
|
92
|
-
#
|
93
|
-
# * `FAULT`\: The build faulted.
|
94
|
-
#
|
95
|
-
# * `IN_PROGRESS`\: The build is still in progress.
|
96
|
-
#
|
97
|
-
# * `STOPPED`\: The build stopped.
|
98
|
-
#
|
99
|
-
# * `SUCCEEDED`\: The build succeeded.
|
100
|
-
#
|
101
|
-
# * `TIMED_OUT`\: The build timed out.
|
102
|
-
# @return [String]
|
103
|
-
#
|
104
|
-
# @!attribute [rw] source_version
|
105
|
-
# Any version identifier for the version of the source code to be
|
106
|
-
# built.
|
107
|
-
# @return [String]
|
108
|
-
#
|
109
|
-
# @!attribute [rw] project_name
|
110
|
-
# The build project's name.
|
111
|
-
# @return [String]
|
112
|
-
#
|
113
|
-
# @!attribute [rw] phases
|
114
|
-
# Information about all previous build phases that have completed, and
|
115
|
-
# information about any current build phase that has not yet
|
116
|
-
# completed.
|
117
|
-
# @return [Array<Types::BuildPhase>]
|
118
|
-
#
|
119
|
-
# @!attribute [rw] source
|
120
|
-
# Information about the source code to be built.
|
121
|
-
# @return [Types::ProjectSource]
|
122
|
-
#
|
123
|
-
# @!attribute [rw] artifacts
|
124
|
-
# Information about the build's output artifacts.
|
125
|
-
# @return [Types::BuildArtifacts]
|
126
|
-
#
|
127
|
-
# @!attribute [rw] environment
|
128
|
-
# Information about the build environment for this build.
|
129
|
-
# @return [Types::ProjectEnvironment]
|
130
|
-
#
|
131
|
-
# @!attribute [rw] logs
|
132
|
-
# Information about the build's logs in Amazon CloudWatch Logs.
|
133
|
-
# @return [Types::LogsLocation]
|
134
|
-
#
|
135
|
-
# @!attribute [rw] timeout_in_minutes
|
136
|
-
# How long in minutes for AWS CodeBuild to wait to timeout this build
|
137
|
-
# if it does not get marked as completed.
|
138
|
-
# @return [Integer]
|
139
|
-
#
|
140
|
-
# @!attribute [rw] build_complete
|
141
|
-
# Whether the build has finished. Valid values include true if
|
142
|
-
# completed; otherwise, false.
|
143
|
-
# @return [Boolean]
|
144
|
-
#
|
145
|
-
# @!attribute [rw] initiator
|
146
|
-
# The entity that started the build. Valid values include:
|
147
|
-
#
|
148
|
-
# * If AWS CodePipeline started the build, the pipeline's name, for
|
149
|
-
# example `codepipeline/my-demo-pipeline`.
|
150
|
-
#
|
151
|
-
# * If an AWS Identity and Access Management (IAM) user started the
|
152
|
-
# build, the user's name, for example `MyUserName`.
|
153
|
-
#
|
154
|
-
# * If the Jenkins plugin for AWS CodeBuild started the build, the
|
155
|
-
# string `CodeBuild-Jenkins-Plugin`.
|
156
|
-
# @return [String]
|
157
|
-
class Build < Struct.new(
|
158
|
-
:id,
|
159
|
-
:arn,
|
160
|
-
:start_time,
|
161
|
-
:end_time,
|
162
|
-
:current_phase,
|
163
|
-
:build_status,
|
164
|
-
:source_version,
|
165
|
-
:project_name,
|
166
|
-
:phases,
|
167
|
-
:source,
|
168
|
-
:artifacts,
|
169
|
-
:environment,
|
170
|
-
:logs,
|
171
|
-
:timeout_in_minutes,
|
172
|
-
:build_complete,
|
173
|
-
:initiator)
|
174
|
-
include Aws::Structure
|
175
|
-
end
|
57
|
+
# @!attribute [rw] projects
|
58
|
+
# Information about the requested build projects.
|
59
|
+
# @return [Array<Types::Project>]
|
60
|
+
#
|
61
|
+
# @!attribute [rw] projects_not_found
|
62
|
+
# The names of build projects for which information could not be
|
63
|
+
# found.
|
64
|
+
# @return [Array<String>]
|
65
|
+
#
|
66
|
+
class BatchGetProjectsOutput < Struct.new(
|
67
|
+
:projects,
|
68
|
+
:projects_not_found)
|
69
|
+
include Aws::Structure
|
70
|
+
end
|
176
71
|
|
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
|
-
|
209
|
-
|
210
|
-
|
72
|
+
# Information about a build.
|
73
|
+
#
|
74
|
+
# @!attribute [rw] id
|
75
|
+
# The unique ID for the build.
|
76
|
+
# @return [String]
|
77
|
+
#
|
78
|
+
# @!attribute [rw] arn
|
79
|
+
# The Amazon Resource Name (ARN) of the build.
|
80
|
+
# @return [String]
|
81
|
+
#
|
82
|
+
# @!attribute [rw] start_time
|
83
|
+
# When the build process started, expressed in Unix time format.
|
84
|
+
# @return [Time]
|
85
|
+
#
|
86
|
+
# @!attribute [rw] end_time
|
87
|
+
# When the build process ended, expressed in Unix time format.
|
88
|
+
# @return [Time]
|
89
|
+
#
|
90
|
+
# @!attribute [rw] current_phase
|
91
|
+
# The current build phase.
|
92
|
+
# @return [String]
|
93
|
+
#
|
94
|
+
# @!attribute [rw] build_status
|
95
|
+
# The current status of the build. Valid values include:
|
96
|
+
#
|
97
|
+
# * `FAILED`\: The build failed.
|
98
|
+
#
|
99
|
+
# * `FAULT`\: The build faulted.
|
100
|
+
#
|
101
|
+
# * `IN_PROGRESS`\: The build is still in progress.
|
102
|
+
#
|
103
|
+
# * `STOPPED`\: The build stopped.
|
104
|
+
#
|
105
|
+
# * `SUCCEEDED`\: The build succeeded.
|
106
|
+
#
|
107
|
+
# * `TIMED_OUT`\: The build timed out.
|
108
|
+
# @return [String]
|
109
|
+
#
|
110
|
+
# @!attribute [rw] source_version
|
111
|
+
# Any version identifier for the version of the source code to be
|
112
|
+
# built.
|
113
|
+
# @return [String]
|
114
|
+
#
|
115
|
+
# @!attribute [rw] project_name
|
116
|
+
# The name of the build project.
|
117
|
+
# @return [String]
|
118
|
+
#
|
119
|
+
# @!attribute [rw] phases
|
120
|
+
# Information about all previous build phases that are completed and
|
121
|
+
# information about any current build phase that is not yet complete.
|
122
|
+
# @return [Array<Types::BuildPhase>]
|
123
|
+
#
|
124
|
+
# @!attribute [rw] source
|
125
|
+
# Information about the source code to be built.
|
126
|
+
# @return [Types::ProjectSource]
|
127
|
+
#
|
128
|
+
# @!attribute [rw] artifacts
|
129
|
+
# Information about the output artifacts for the build.
|
130
|
+
# @return [Types::BuildArtifacts]
|
131
|
+
#
|
132
|
+
# @!attribute [rw] environment
|
133
|
+
# Information about the build environment for this build.
|
134
|
+
# @return [Types::ProjectEnvironment]
|
135
|
+
#
|
136
|
+
# @!attribute [rw] logs
|
137
|
+
# Information about the build's logs in Amazon CloudWatch Logs.
|
138
|
+
# @return [Types::LogsLocation]
|
139
|
+
#
|
140
|
+
# @!attribute [rw] timeout_in_minutes
|
141
|
+
# How long, in minutes, for AWS CodeBuild to wait before timing out
|
142
|
+
# this build if it does not get marked as completed.
|
143
|
+
# @return [Integer]
|
144
|
+
#
|
145
|
+
# @!attribute [rw] build_complete
|
146
|
+
# Whether the build has finished. True if completed; otherwise, false.
|
147
|
+
# @return [Boolean]
|
148
|
+
#
|
149
|
+
# @!attribute [rw] initiator
|
150
|
+
# The entity that started the build. Valid values include:
|
151
|
+
#
|
152
|
+
# * If AWS CodePipeline started the build, the pipeline's name (for
|
153
|
+
# example, `codepipeline/my-demo-pipeline`).
|
154
|
+
#
|
155
|
+
# * If an AWS Identity and Access Management (IAM) user started the
|
156
|
+
# build, the user's name (for example `MyUserName`).
|
157
|
+
#
|
158
|
+
# * If the Jenkins plugin for AWS CodeBuild started the build, the
|
159
|
+
# string `CodeBuild-Jenkins-Plugin`.
|
160
|
+
# @return [String]
|
161
|
+
#
|
162
|
+
class Build < Struct.new(
|
163
|
+
:id,
|
164
|
+
:arn,
|
165
|
+
:start_time,
|
166
|
+
:end_time,
|
167
|
+
:current_phase,
|
168
|
+
:build_status,
|
169
|
+
:source_version,
|
170
|
+
:project_name,
|
171
|
+
:phases,
|
172
|
+
:source,
|
173
|
+
:artifacts,
|
174
|
+
:environment,
|
175
|
+
:logs,
|
176
|
+
:timeout_in_minutes,
|
177
|
+
:build_complete,
|
178
|
+
:initiator)
|
179
|
+
include Aws::Structure
|
180
|
+
end
|
211
181
|
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
#
|
249
|
-
# * `FAULT`\: The build phase faulted.
|
250
|
-
#
|
251
|
-
# * `IN_PROGRESS`\: The build phase is still in progress.
|
252
|
-
#
|
253
|
-
# * `STOPPED`\: The build phase stopped.
|
254
|
-
#
|
255
|
-
# * `SUCCEEDED`\: The build phase succeeded.
|
256
|
-
#
|
257
|
-
# * `TIMED_OUT`\: The build phase timed out.
|
258
|
-
# @return [String]
|
259
|
-
#
|
260
|
-
# @!attribute [rw] start_time
|
261
|
-
# When the build phase started, expressed in Unix time format.
|
262
|
-
# @return [Time]
|
263
|
-
#
|
264
|
-
# @!attribute [rw] end_time
|
265
|
-
# When the build phase ended, expressed in Unix time format.
|
266
|
-
# @return [Time]
|
267
|
-
#
|
268
|
-
# @!attribute [rw] duration_in_seconds
|
269
|
-
# How long, in seconds, between the build's phase starting and ending
|
270
|
-
# times.
|
271
|
-
# @return [Integer]
|
272
|
-
#
|
273
|
-
# @!attribute [rw] contexts
|
274
|
-
# Additional information about a build phase, especially to help
|
275
|
-
# troubleshoot a failed build.
|
276
|
-
# @return [Array<Types::PhaseContext>]
|
277
|
-
class BuildPhase < Struct.new(
|
278
|
-
:phase_type,
|
279
|
-
:phase_status,
|
280
|
-
:start_time,
|
281
|
-
:end_time,
|
282
|
-
:duration_in_seconds,
|
283
|
-
:contexts)
|
284
|
-
include Aws::Structure
|
285
|
-
end
|
182
|
+
# Information about build output artifacts.
|
183
|
+
#
|
184
|
+
# @!attribute [rw] location
|
185
|
+
# Information about the location of the build artifacts.
|
186
|
+
# @return [String]
|
187
|
+
#
|
188
|
+
# @!attribute [rw] sha256sum
|
189
|
+
# The SHA-256 hash of the build artifact.
|
190
|
+
#
|
191
|
+
# You can use this hash along with a checksum tool to confirm both
|
192
|
+
# file integrity and authenticity.
|
193
|
+
#
|
194
|
+
# <note markdown="1"> This value is available only if the build project's `packaging`
|
195
|
+
# value is set to `ZIP`.
|
196
|
+
#
|
197
|
+
# </note>
|
198
|
+
# @return [String]
|
199
|
+
#
|
200
|
+
# @!attribute [rw] md5sum
|
201
|
+
# The MD5 hash of the build artifact.
|
202
|
+
#
|
203
|
+
# You can use this hash along with a checksum tool to confirm both
|
204
|
+
# file integrity and authenticity.
|
205
|
+
#
|
206
|
+
# <note markdown="1"> This value is available only if the build project's `packaging`
|
207
|
+
# value is set to `ZIP`.
|
208
|
+
#
|
209
|
+
# </note>
|
210
|
+
# @return [String]
|
211
|
+
#
|
212
|
+
class BuildArtifacts < Struct.new(
|
213
|
+
:location,
|
214
|
+
:sha256sum,
|
215
|
+
:md5sum)
|
216
|
+
include Aws::Structure
|
217
|
+
end
|
286
218
|
|
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
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
# @!attribute [rw] encryption_key
|
364
|
-
# The AWS Key Management Service (AWS KMS) customer master key (CMK)
|
365
|
-
# to be used for encrypting the build project's build output
|
366
|
-
# artifacts.
|
367
|
-
#
|
368
|
-
# You can specify either the CMK's Amazon Resource Name (ARN) or, if
|
369
|
-
# available, the CMK's alias (using the format `alias/alias-name `).
|
370
|
-
# @return [String]
|
371
|
-
#
|
372
|
-
# @!attribute [rw] tags
|
373
|
-
# A set of tags for this build project.
|
374
|
-
#
|
375
|
-
# These tags are available for use by AWS services that support AWS
|
376
|
-
# CodeBuild build project tags.
|
377
|
-
# @return [Array<Types::Tag>]
|
378
|
-
class CreateProjectInput < Struct.new(
|
379
|
-
:name,
|
380
|
-
:description,
|
381
|
-
:source,
|
382
|
-
:artifacts,
|
383
|
-
:environment,
|
384
|
-
:service_role,
|
385
|
-
:timeout_in_minutes,
|
386
|
-
:encryption_key,
|
387
|
-
:tags)
|
388
|
-
include Aws::Structure
|
389
|
-
end
|
219
|
+
# Information about a stage for a build.
|
220
|
+
#
|
221
|
+
# @!attribute [rw] phase_type
|
222
|
+
# The name of the build phase. Valid values include:
|
223
|
+
#
|
224
|
+
# * `BUILD`\: Core build activities typically occur in this build
|
225
|
+
# phase.
|
226
|
+
#
|
227
|
+
# * `COMPLETED`\: The build has been completed.
|
228
|
+
#
|
229
|
+
# * `DOWNLOAD_SOURCE`\: Source code is being downloaded in this build
|
230
|
+
# phase.
|
231
|
+
#
|
232
|
+
# * `FINALIZING`\: The build process is completing in this build
|
233
|
+
# phase.
|
234
|
+
#
|
235
|
+
# * `INSTALL`\: Installation activities typically occur in this build
|
236
|
+
# phase.
|
237
|
+
#
|
238
|
+
# * `POST_BUILD`\: Post-build activities typically occur in this build
|
239
|
+
# phase.
|
240
|
+
#
|
241
|
+
# * `PRE_BUILD`\: Pre-build activities typically occur in this build
|
242
|
+
# phase.
|
243
|
+
#
|
244
|
+
# * `PROVISIONING`\: The build environment is being set up.
|
245
|
+
#
|
246
|
+
# * `SUBMITTED`\: The build has been submitted.
|
247
|
+
#
|
248
|
+
# * `UPLOAD_ARTIFACTS`\: Build output artifacts are being uploaded to
|
249
|
+
# the output location.
|
250
|
+
# @return [String]
|
251
|
+
#
|
252
|
+
# @!attribute [rw] phase_status
|
253
|
+
# The current status of the build phase. Valid values include:
|
254
|
+
#
|
255
|
+
# * `FAILED`\: The build phase failed.
|
256
|
+
#
|
257
|
+
# * `FAULT`\: The build phase faulted.
|
258
|
+
#
|
259
|
+
# * `IN_PROGRESS`\: The build phase is still in progress.
|
260
|
+
#
|
261
|
+
# * `STOPPED`\: The build phase stopped.
|
262
|
+
#
|
263
|
+
# * `SUCCEEDED`\: The build phase succeeded.
|
264
|
+
#
|
265
|
+
# * `TIMED_OUT`\: The build phase timed out.
|
266
|
+
# @return [String]
|
267
|
+
#
|
268
|
+
# @!attribute [rw] start_time
|
269
|
+
# When the build phase started, expressed in Unix time format.
|
270
|
+
# @return [Time]
|
271
|
+
#
|
272
|
+
# @!attribute [rw] end_time
|
273
|
+
# When the build phase ended, expressed in Unix time format.
|
274
|
+
# @return [Time]
|
275
|
+
#
|
276
|
+
# @!attribute [rw] duration_in_seconds
|
277
|
+
# How long, in seconds, between the starting and ending times of the
|
278
|
+
# build's phase.
|
279
|
+
# @return [Integer]
|
280
|
+
#
|
281
|
+
# @!attribute [rw] contexts
|
282
|
+
# Additional information about a build phase, especially to help
|
283
|
+
# troubleshoot a failed build.
|
284
|
+
# @return [Array<Types::PhaseContext>]
|
285
|
+
#
|
286
|
+
class BuildPhase < Struct.new(
|
287
|
+
:phase_type,
|
288
|
+
:phase_status,
|
289
|
+
:start_time,
|
290
|
+
:end_time,
|
291
|
+
:duration_in_seconds,
|
292
|
+
:contexts)
|
293
|
+
include Aws::Structure
|
294
|
+
end
|
390
295
|
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
296
|
+
# @note When making an API call, you may pass CreateProjectInput
|
297
|
+
# data as a hash:
|
298
|
+
#
|
299
|
+
# {
|
300
|
+
# name: "ProjectName", # required
|
301
|
+
# description: "ProjectDescription",
|
302
|
+
# source: { # required
|
303
|
+
# type: "CODECOMMIT", # required, accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3
|
304
|
+
# location: "String",
|
305
|
+
# buildspec: "String",
|
306
|
+
# auth: {
|
307
|
+
# type: "OAUTH", # required, accepts OAUTH
|
308
|
+
# resource: "String",
|
309
|
+
# },
|
310
|
+
# },
|
311
|
+
# artifacts: { # required
|
312
|
+
# type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
|
313
|
+
# location: "String",
|
314
|
+
# path: "String",
|
315
|
+
# namespace_type: "NONE", # accepts NONE, BUILD_ID
|
316
|
+
# name: "String",
|
317
|
+
# packaging: "NONE", # accepts NONE, ZIP
|
318
|
+
# },
|
319
|
+
# environment: { # required
|
320
|
+
# type: "LINUX_CONTAINER", # required, accepts LINUX_CONTAINER
|
321
|
+
# image: "NonEmptyString", # required
|
322
|
+
# compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE
|
323
|
+
# environment_variables: [
|
324
|
+
# {
|
325
|
+
# name: "NonEmptyString", # required
|
326
|
+
# value: "String", # required
|
327
|
+
# },
|
328
|
+
# ],
|
329
|
+
# },
|
330
|
+
# service_role: "NonEmptyString",
|
331
|
+
# timeout_in_minutes: 1,
|
332
|
+
# encryption_key: "NonEmptyString",
|
333
|
+
# tags: [
|
334
|
+
# {
|
335
|
+
# key: "KeyInput",
|
336
|
+
# value: "ValueInput",
|
337
|
+
# },
|
338
|
+
# ],
|
339
|
+
# }
|
340
|
+
#
|
341
|
+
# @!attribute [rw] name
|
342
|
+
# The name of the build project.
|
343
|
+
# @return [String]
|
344
|
+
#
|
345
|
+
# @!attribute [rw] description
|
346
|
+
# A description that makes the build project easy to identify.
|
347
|
+
# @return [String]
|
348
|
+
#
|
349
|
+
# @!attribute [rw] source
|
350
|
+
# Information about the build input source code for the build project.
|
351
|
+
# @return [Types::ProjectSource]
|
352
|
+
#
|
353
|
+
# @!attribute [rw] artifacts
|
354
|
+
# Information about the build output artifacts for the build project.
|
355
|
+
# @return [Types::ProjectArtifacts]
|
356
|
+
#
|
357
|
+
# @!attribute [rw] environment
|
358
|
+
# Information about the build environment for the build project.
|
359
|
+
# @return [Types::ProjectEnvironment]
|
360
|
+
#
|
361
|
+
# @!attribute [rw] service_role
|
362
|
+
# The ARN of the AWS Identity and Access Management (IAM) role that
|
363
|
+
# enables AWS CodeBuild to interact with dependent AWS services on
|
364
|
+
# behalf of the AWS account.
|
365
|
+
# @return [String]
|
366
|
+
#
|
367
|
+
# @!attribute [rw] timeout_in_minutes
|
368
|
+
# How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to
|
369
|
+
# wait until timing out any build that has not been marked as
|
370
|
+
# completed. The default is 60 minutes.
|
371
|
+
# @return [Integer]
|
372
|
+
#
|
373
|
+
# @!attribute [rw] encryption_key
|
374
|
+
# The AWS Key Management Service (AWS KMS) customer master key (CMK)
|
375
|
+
# to be used for encrypting the build output artifacts.
|
376
|
+
#
|
377
|
+
# You can specify either the CMK's Amazon Resource Name (ARN) or, if
|
378
|
+
# available, the CMK's alias (using the format `alias/alias-name `).
|
379
|
+
# @return [String]
|
380
|
+
#
|
381
|
+
# @!attribute [rw] tags
|
382
|
+
# A set of tags for this build project.
|
383
|
+
#
|
384
|
+
# These tags are available for use by AWS services that support AWS
|
385
|
+
# CodeBuild build project tags.
|
386
|
+
# @return [Array<Types::Tag>]
|
387
|
+
#
|
388
|
+
class CreateProjectInput < Struct.new(
|
389
|
+
:name,
|
390
|
+
:description,
|
391
|
+
:source,
|
392
|
+
:artifacts,
|
393
|
+
:environment,
|
394
|
+
:service_role,
|
395
|
+
:timeout_in_minutes,
|
396
|
+
:encryption_key,
|
397
|
+
:tags)
|
398
|
+
include Aws::Structure
|
399
|
+
end
|
398
400
|
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
# @return [String]
|
408
|
-
class DeleteProjectInput < Struct.new(
|
409
|
-
:name)
|
410
|
-
include Aws::Structure
|
411
|
-
end
|
401
|
+
# @!attribute [rw] project
|
402
|
+
# Information about the build project that was created.
|
403
|
+
# @return [Types::Project]
|
404
|
+
#
|
405
|
+
class CreateProjectOutput < Struct.new(
|
406
|
+
:project)
|
407
|
+
include Aws::Structure
|
408
|
+
end
|
412
409
|
|
413
|
-
|
410
|
+
# @note When making an API call, you may pass DeleteProjectInput
|
411
|
+
# data as a hash:
|
412
|
+
#
|
413
|
+
# {
|
414
|
+
# name: "NonEmptyString", # required
|
415
|
+
# }
|
416
|
+
#
|
417
|
+
# @!attribute [rw] name
|
418
|
+
# The name of the build project.
|
419
|
+
# @return [String]
|
420
|
+
#
|
421
|
+
class DeleteProjectInput < Struct.new(
|
422
|
+
:name)
|
423
|
+
include Aws::Structure
|
424
|
+
end
|
414
425
|
|
415
|
-
|
416
|
-
# @!attribute [rw] name
|
417
|
-
# The Docker image's name.
|
418
|
-
# @return [String]
|
419
|
-
#
|
420
|
-
# @!attribute [rw] description
|
421
|
-
# The Docker image's description.
|
422
|
-
# @return [String]
|
423
|
-
class EnvironmentImage < Struct.new(
|
424
|
-
:name,
|
425
|
-
:description)
|
426
|
-
include Aws::Structure
|
427
|
-
end
|
426
|
+
class DeleteProjectOutput < Aws::EmptyStructure; end
|
428
427
|
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
428
|
+
# Information about a Docker image that is managed by AWS CodeBuild.
|
429
|
+
#
|
430
|
+
# @!attribute [rw] name
|
431
|
+
# The name of the Docker image.
|
432
|
+
# @return [String]
|
433
|
+
#
|
434
|
+
# @!attribute [rw] description
|
435
|
+
# The description of the Docker image.
|
436
|
+
# @return [String]
|
437
|
+
#
|
438
|
+
class EnvironmentImage < Struct.new(
|
439
|
+
:name,
|
440
|
+
:description)
|
441
|
+
include Aws::Structure
|
442
|
+
end
|
444
443
|
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
444
|
+
# A set of Docker images that are related by programming language and
|
445
|
+
# are managed by AWS CodeBuild.
|
446
|
+
#
|
447
|
+
# @!attribute [rw] language
|
448
|
+
# The programming language for the Docker images.
|
449
|
+
# @return [String]
|
450
|
+
#
|
451
|
+
# @!attribute [rw] images
|
452
|
+
# The list of Docker images that are related by the specified
|
453
|
+
# programming language.
|
454
|
+
# @return [Array<Types::EnvironmentImage>]
|
455
|
+
#
|
456
|
+
class EnvironmentLanguage < Struct.new(
|
457
|
+
:language,
|
458
|
+
:images)
|
459
|
+
include Aws::Structure
|
460
|
+
end
|
460
461
|
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
:name,
|
479
|
-
:value)
|
480
|
-
include Aws::Structure
|
481
|
-
end
|
462
|
+
# A set of Docker images that are related by platform and are managed by
|
463
|
+
# AWS CodeBuild.
|
464
|
+
#
|
465
|
+
# @!attribute [rw] platform
|
466
|
+
# The platform's name.
|
467
|
+
# @return [String]
|
468
|
+
#
|
469
|
+
# @!attribute [rw] languages
|
470
|
+
# The list of programming languages that are available for the
|
471
|
+
# specified platform.
|
472
|
+
# @return [Array<Types::EnvironmentLanguage>]
|
473
|
+
#
|
474
|
+
class EnvironmentPlatform < Struct.new(
|
475
|
+
:platform,
|
476
|
+
:languages)
|
477
|
+
include Aws::Structure
|
478
|
+
end
|
482
479
|
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
# list, call this operation again, adding the next token to the call.
|
508
|
-
# To get all of the items in the list, keep calling this operation
|
509
|
-
# with each subsequent next token that is returned, until no more next
|
510
|
-
# tokens are returned.
|
511
|
-
# @return [String]
|
512
|
-
class ListBuildsForProjectInput < Struct.new(
|
513
|
-
:project_name,
|
514
|
-
:sort_order,
|
515
|
-
:next_token)
|
516
|
-
include Aws::Structure
|
517
|
-
end
|
480
|
+
# Information about an environment variable for a build project or a
|
481
|
+
# build.
|
482
|
+
#
|
483
|
+
# @note When making an API call, you may pass EnvironmentVariable
|
484
|
+
# data as a hash:
|
485
|
+
#
|
486
|
+
# {
|
487
|
+
# name: "NonEmptyString", # required
|
488
|
+
# value: "String", # required
|
489
|
+
# }
|
490
|
+
#
|
491
|
+
# @!attribute [rw] name
|
492
|
+
# The name or key of the environment variable.
|
493
|
+
# @return [String]
|
494
|
+
#
|
495
|
+
# @!attribute [rw] value
|
496
|
+
# The value of the environment variable.
|
497
|
+
# @return [String]
|
498
|
+
#
|
499
|
+
class EnvironmentVariable < Struct.new(
|
500
|
+
:name,
|
501
|
+
:value)
|
502
|
+
include Aws::Structure
|
503
|
+
end
|
518
504
|
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
505
|
+
# @note When making an API call, you may pass ListBuildsForProjectInput
|
506
|
+
# data as a hash:
|
507
|
+
#
|
508
|
+
# {
|
509
|
+
# project_name: "NonEmptyString", # required
|
510
|
+
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
511
|
+
# next_token: "String",
|
512
|
+
# }
|
513
|
+
#
|
514
|
+
# @!attribute [rw] project_name
|
515
|
+
# The name of the build project.
|
516
|
+
# @return [String]
|
517
|
+
#
|
518
|
+
# @!attribute [rw] sort_order
|
519
|
+
# The order to list build IDs. Valid values include:
|
520
|
+
#
|
521
|
+
# * `ASCENDING`\: List the build IDs in ascending order by build ID.
|
522
|
+
#
|
523
|
+
# * `DESCENDING`\: List the build IDs in descending order by build ID.
|
524
|
+
# @return [String]
|
525
|
+
#
|
526
|
+
# @!attribute [rw] next_token
|
527
|
+
# During a previous call, if there are more than 100 items in the
|
528
|
+
# list, only the first 100 items are returned, along with a unique
|
529
|
+
# string called a *next token*. To get the next batch of items in the
|
530
|
+
# list, call this operation again, adding the next token to the call.
|
531
|
+
# To get all of the items in the list, keep calling this operation
|
532
|
+
# with each subsequent next token that is returned, until no more next
|
533
|
+
# tokens are returned.
|
534
|
+
# @return [String]
|
535
|
+
#
|
536
|
+
class ListBuildsForProjectInput < Struct.new(
|
537
|
+
:project_name,
|
538
|
+
:sort_order,
|
539
|
+
:next_token)
|
540
|
+
include Aws::Structure
|
541
|
+
end
|
535
542
|
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
# list, only the first 100 items are returned, along with a unique
|
554
|
-
# string called a *next token*. To get the next batch of items in the
|
555
|
-
# list, call this operation again, adding the next token to the call.
|
556
|
-
# To get all of the items in the list, keep calling this operation
|
557
|
-
# with each subsequent next token that is returned, until no more next
|
558
|
-
# tokens are returned.
|
559
|
-
# @return [String]
|
560
|
-
class ListBuildsInput < Struct.new(
|
561
|
-
:sort_order,
|
562
|
-
:next_token)
|
563
|
-
include Aws::Structure
|
564
|
-
end
|
543
|
+
# @!attribute [rw] ids
|
544
|
+
# A list of build IDs for the specified build project, with each build
|
545
|
+
# ID representing a single build.
|
546
|
+
# @return [Array<String>]
|
547
|
+
#
|
548
|
+
# @!attribute [rw] next_token
|
549
|
+
# If there are more than 100 items in the list, only the first 100
|
550
|
+
# items are returned, along with a unique string called a *next
|
551
|
+
# token*. To get the next batch of items in the list, call this
|
552
|
+
# operation again, adding the next token to the call.
|
553
|
+
# @return [String]
|
554
|
+
#
|
555
|
+
class ListBuildsForProjectOutput < Struct.new(
|
556
|
+
:ids,
|
557
|
+
:next_token)
|
558
|
+
include Aws::Structure
|
559
|
+
end
|
565
560
|
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
561
|
+
# @note When making an API call, you may pass ListBuildsInput
|
562
|
+
# data as a hash:
|
563
|
+
#
|
564
|
+
# {
|
565
|
+
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
566
|
+
# next_token: "String",
|
567
|
+
# }
|
568
|
+
#
|
569
|
+
# @!attribute [rw] sort_order
|
570
|
+
# The order to list build IDs. Valid values include:
|
571
|
+
#
|
572
|
+
# * `ASCENDING`\: List the build IDs in ascending order by build ID.
|
573
|
+
#
|
574
|
+
# * `DESCENDING`\: List the build IDs in descending order by build ID.
|
575
|
+
# @return [String]
|
576
|
+
#
|
577
|
+
# @!attribute [rw] next_token
|
578
|
+
# During a previous call, if there are more than 100 items in the
|
579
|
+
# list, only the first 100 items are returned, along with a unique
|
580
|
+
# string called a *next token*. To get the next batch of items in the
|
581
|
+
# list, call this operation again, adding the next token to the call.
|
582
|
+
# To get all of the items in the list, keep calling this operation
|
583
|
+
# with each subsequent next token that is returned, until no more next
|
584
|
+
# tokens are returned.
|
585
|
+
# @return [String]
|
586
|
+
#
|
587
|
+
class ListBuildsInput < Struct.new(
|
588
|
+
:sort_order,
|
589
|
+
:next_token)
|
590
|
+
include Aws::Structure
|
591
|
+
end
|
581
592
|
|
582
|
-
|
583
|
-
|
593
|
+
# @!attribute [rw] ids
|
594
|
+
# A list of build IDs, with each build ID representing a single build.
|
595
|
+
# @return [Array<String>]
|
596
|
+
#
|
597
|
+
# @!attribute [rw] next_token
|
598
|
+
# If there are more than 100 items in the list, only the first 100
|
599
|
+
# items are returned, along with a unique string called a *next
|
600
|
+
# token*. To get the next batch of items in the list, call this
|
601
|
+
# operation again, adding the next token to the call.
|
602
|
+
# @return [String]
|
603
|
+
#
|
604
|
+
class ListBuildsOutput < Struct.new(
|
605
|
+
:ids,
|
606
|
+
:next_token)
|
607
|
+
include Aws::Structure
|
608
|
+
end
|
584
609
|
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
# @return [Array<Types::EnvironmentPlatform>]
|
589
|
-
class ListCuratedEnvironmentImagesOutput < Struct.new(
|
590
|
-
:platforms)
|
591
|
-
include Aws::Structure
|
592
|
-
end
|
610
|
+
# @api private
|
611
|
+
#
|
612
|
+
class ListCuratedEnvironmentImagesInput < Aws::EmptyStructure; end
|
593
613
|
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
# The criterion to be used to list build project names. Valid values
|
604
|
-
# include:
|
605
|
-
#
|
606
|
-
# * `CREATED_TIME`\: List the build project names based on when each
|
607
|
-
# build project was created.
|
608
|
-
#
|
609
|
-
# * `LAST_MODIFIED_TIME`\: List the build project names based on when
|
610
|
-
# information about each build project was last changed.
|
611
|
-
#
|
612
|
-
# * `NAME`\: List the build project names based on each build
|
613
|
-
# project's name.
|
614
|
-
#
|
615
|
-
# Use `sortOrder` to specify in what order to list the build project
|
616
|
-
# names based on the preceding criteria.
|
617
|
-
# @return [String]
|
618
|
-
#
|
619
|
-
# @!attribute [rw] sort_order
|
620
|
-
# The order in which to list build projects. Valid values include:
|
621
|
-
#
|
622
|
-
# * `ASCENDING`\: List the build project names in ascending order.
|
623
|
-
#
|
624
|
-
# * `DESCENDING`\: List the build project names in descending order.
|
625
|
-
#
|
626
|
-
# Use `sortBy` to specify the criterion to be used to list build
|
627
|
-
# project names.
|
628
|
-
# @return [String]
|
629
|
-
#
|
630
|
-
# @!attribute [rw] next_token
|
631
|
-
# During a previous call, if there are more than 100 items in the
|
632
|
-
# list, only the first 100 items are returned, along with a unique
|
633
|
-
# string called a *next token*. To get the next batch of items in the
|
634
|
-
# list, call this operation again, adding the next token to the call.
|
635
|
-
# To get all of the items in the list, keep calling this operation
|
636
|
-
# with each subsequent next token that is returned, until no more next
|
637
|
-
# tokens are returned.
|
638
|
-
# @return [String]
|
639
|
-
class ListProjectsInput < Struct.new(
|
640
|
-
:sort_by,
|
641
|
-
:sort_order,
|
642
|
-
:next_token)
|
643
|
-
include Aws::Structure
|
644
|
-
end
|
614
|
+
# @!attribute [rw] platforms
|
615
|
+
# Information about supported platforms for Docker images that are
|
616
|
+
# managed by AWS CodeBuild.
|
617
|
+
# @return [Array<Types::EnvironmentPlatform>]
|
618
|
+
#
|
619
|
+
class ListCuratedEnvironmentImagesOutput < Struct.new(
|
620
|
+
:platforms)
|
621
|
+
include Aws::Structure
|
622
|
+
end
|
645
623
|
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
624
|
+
# @note When making an API call, you may pass ListProjectsInput
|
625
|
+
# data as a hash:
|
626
|
+
#
|
627
|
+
# {
|
628
|
+
# sort_by: "NAME", # accepts NAME, CREATED_TIME, LAST_MODIFIED_TIME
|
629
|
+
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
630
|
+
# next_token: "NonEmptyString",
|
631
|
+
# }
|
632
|
+
#
|
633
|
+
# @!attribute [rw] sort_by
|
634
|
+
# The criterion to be used to list build project names. Valid values
|
635
|
+
# include:
|
636
|
+
#
|
637
|
+
# * `CREATED_TIME`\: List the build project names based on when each
|
638
|
+
# build project was created.
|
639
|
+
#
|
640
|
+
# * `LAST_MODIFIED_TIME`\: List the build project names based on when
|
641
|
+
# information about each build project was last changed.
|
642
|
+
#
|
643
|
+
# * `NAME`\: List the build project names based on each build
|
644
|
+
# project's name.
|
645
|
+
#
|
646
|
+
# Use `sortOrder` to specify in what order to list the build project
|
647
|
+
# names based on the preceding criteria.
|
648
|
+
# @return [String]
|
649
|
+
#
|
650
|
+
# @!attribute [rw] sort_order
|
651
|
+
# The order in which to list build projects. Valid values include:
|
652
|
+
#
|
653
|
+
# * `ASCENDING`\: List the build project names in ascending order.
|
654
|
+
#
|
655
|
+
# * `DESCENDING`\: List the build project names in descending order.
|
656
|
+
#
|
657
|
+
# Use `sortBy` to specify the criterion to be used to list build
|
658
|
+
# project names.
|
659
|
+
# @return [String]
|
660
|
+
#
|
661
|
+
# @!attribute [rw] next_token
|
662
|
+
# During a previous call, if there are more than 100 items in the
|
663
|
+
# list, only the first 100 items are returned, along with a unique
|
664
|
+
# string called a *next token*. To get the next batch of items in the
|
665
|
+
# list, call this operation again, adding the next token to the call.
|
666
|
+
# To get all of the items in the list, keep calling this operation
|
667
|
+
# with each subsequent next token that is returned, until no more next
|
668
|
+
# tokens are returned.
|
669
|
+
# @return [String]
|
670
|
+
#
|
671
|
+
class ListProjectsInput < Struct.new(
|
672
|
+
:sort_by,
|
673
|
+
:sort_order,
|
674
|
+
:next_token)
|
675
|
+
include Aws::Structure
|
676
|
+
end
|
662
677
|
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
:deep_link)
|
681
|
-
include Aws::Structure
|
682
|
-
end
|
678
|
+
# @!attribute [rw] next_token
|
679
|
+
# If there are more than 100 items in the list, only the first 100
|
680
|
+
# items are returned, along with a unique string called a *next
|
681
|
+
# token*. To get the next batch of items in the list, call this
|
682
|
+
# operation again, adding the next token to the call.
|
683
|
+
# @return [String]
|
684
|
+
#
|
685
|
+
# @!attribute [rw] projects
|
686
|
+
# The list of build project names, with each build project name
|
687
|
+
# representing a single build project.
|
688
|
+
# @return [Array<String>]
|
689
|
+
#
|
690
|
+
class ListProjectsOutput < Struct.new(
|
691
|
+
:next_token,
|
692
|
+
:projects)
|
693
|
+
include Aws::Structure
|
694
|
+
end
|
683
695
|
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
696
|
+
# Information about build logs in Amazon CloudWatch Logs.
|
697
|
+
#
|
698
|
+
# @!attribute [rw] group_name
|
699
|
+
# The name of the Amazon CloudWatch Logs group for the build logs.
|
700
|
+
# @return [String]
|
701
|
+
#
|
702
|
+
# @!attribute [rw] stream_name
|
703
|
+
# The name of the Amazon CloudWatch Logs stream for the build logs.
|
704
|
+
# @return [String]
|
705
|
+
#
|
706
|
+
# @!attribute [rw] deep_link
|
707
|
+
# The URL to an individual build log in Amazon CloudWatch Logs.
|
708
|
+
# @return [String]
|
709
|
+
#
|
710
|
+
class LogsLocation < Struct.new(
|
711
|
+
:group_name,
|
712
|
+
:stream_name,
|
713
|
+
:deep_link)
|
714
|
+
include Aws::Structure
|
715
|
+
end
|
699
716
|
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
# @!attribute [rw] artifacts
|
718
|
-
# Information about the build project's build output artifacts.
|
719
|
-
# @return [Types::ProjectArtifacts]
|
720
|
-
#
|
721
|
-
# @!attribute [rw] environment
|
722
|
-
# Information about the build environment for this build project.
|
723
|
-
# @return [Types::ProjectEnvironment]
|
724
|
-
#
|
725
|
-
# @!attribute [rw] service_role
|
726
|
-
# The Amazon Resource Name (ARN) of the AWS Identity and Access
|
727
|
-
# Management (IAM) role that enables AWS CodeBuild to interact with
|
728
|
-
# dependent AWS services on behalf of the AWS account.
|
729
|
-
# @return [String]
|
730
|
-
#
|
731
|
-
# @!attribute [rw] timeout_in_minutes
|
732
|
-
# How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to
|
733
|
-
# wait to timeout any related build that did not get marked as
|
734
|
-
# completed. The default is 60 minutes.
|
735
|
-
# @return [Integer]
|
736
|
-
#
|
737
|
-
# @!attribute [rw] encryption_key
|
738
|
-
# The AWS Key Management Service (AWS KMS) customer master key (CMK)
|
739
|
-
# to be used for encrypting the build project's build output
|
740
|
-
# artifacts.
|
741
|
-
#
|
742
|
-
# This is expressed either as the CMK's Amazon Resource Name (ARN)
|
743
|
-
# or, if specified, the CMK's alias (using the format
|
744
|
-
# `alias/alias-name `).
|
745
|
-
# @return [String]
|
746
|
-
#
|
747
|
-
# @!attribute [rw] tags
|
748
|
-
# The tags for this build project.
|
749
|
-
#
|
750
|
-
# These tags are available for use by AWS services that support AWS
|
751
|
-
# CodeBuild build project tags.
|
752
|
-
# @return [Array<Types::Tag>]
|
753
|
-
#
|
754
|
-
# @!attribute [rw] created
|
755
|
-
# When the build project was created, expressed in Unix time format.
|
756
|
-
# @return [Time]
|
757
|
-
#
|
758
|
-
# @!attribute [rw] last_modified
|
759
|
-
# When the build project's settings were last modified, expressed in
|
760
|
-
# Unix time format.
|
761
|
-
# @return [Time]
|
762
|
-
class Project < Struct.new(
|
763
|
-
:name,
|
764
|
-
:arn,
|
765
|
-
:description,
|
766
|
-
:source,
|
767
|
-
:artifacts,
|
768
|
-
:environment,
|
769
|
-
:service_role,
|
770
|
-
:timeout_in_minutes,
|
771
|
-
:encryption_key,
|
772
|
-
:tags,
|
773
|
-
:created,
|
774
|
-
:last_modified)
|
775
|
-
include Aws::Structure
|
776
|
-
end
|
717
|
+
# Additional information about a build phase that has an error. You can
|
718
|
+
# use this information to help troubleshoot a failed build.
|
719
|
+
#
|
720
|
+
# @!attribute [rw] status_code
|
721
|
+
# The status code for the context of the build phase.
|
722
|
+
# @return [String]
|
723
|
+
#
|
724
|
+
# @!attribute [rw] message
|
725
|
+
# An explanation of the build phase's context. This explanation might
|
726
|
+
# include a command ID and an exit code.
|
727
|
+
# @return [String]
|
728
|
+
#
|
729
|
+
class PhaseContext < Struct.new(
|
730
|
+
:status_code,
|
731
|
+
:message)
|
732
|
+
include Aws::Structure
|
733
|
+
end
|
777
734
|
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
# `namespaceType` is not specified.
|
858
|
-
#
|
859
|
-
# For example, if `path` is set to `MyArtifacts`, `namespaceType` is
|
860
|
-
# set to `BUILD_ID`, and `name` is set to `MyArtifact.zip`, then the
|
861
|
-
# output artifact would be stored in
|
862
|
-
# `MyArtifacts/build-ID/MyArtifact.zip`.
|
863
|
-
# @return [String]
|
864
|
-
#
|
865
|
-
# @!attribute [rw] name
|
866
|
-
# Along with `path` and `namespaceType`, the pattern that AWS
|
867
|
-
# CodeBuild will use to name and store the output artifact, as
|
868
|
-
# follows:
|
869
|
-
#
|
870
|
-
# * If `type` is set to `CODEPIPELINE`, then AWS CodePipeline will
|
871
|
-
# ignore this value if specified. This is because AWS CodePipeline
|
872
|
-
# manages its build output names instead of AWS CodeBuild.
|
873
|
-
#
|
874
|
-
# * If `type` is set to `NO_ARTIFACTS`, then this value will be
|
875
|
-
# ignored if specified, because no build output will be produced.
|
876
|
-
#
|
877
|
-
# * If `type` is set to `S3`, this is the name of the output artifact
|
878
|
-
# object.
|
879
|
-
#
|
880
|
-
# For example, if `path` is set to `MyArtifacts`, `namespaceType` is
|
881
|
-
# set to `BUILD_ID`, and `name` is set to `MyArtifact.zip`, then the
|
882
|
-
# output artifact would be stored in
|
883
|
-
# `MyArtifacts/build-ID/MyArtifact.zip`.
|
884
|
-
# @return [String]
|
885
|
-
#
|
886
|
-
# @!attribute [rw] packaging
|
887
|
-
# The type of build output artifact to create, as follows:
|
888
|
-
#
|
889
|
-
# * If `type` is set to `CODEPIPELINE`, then AWS CodePipeline will
|
890
|
-
# ignore this value if specified. This is because AWS CodePipeline
|
891
|
-
# manages its build output artifacts instead of AWS CodeBuild.
|
892
|
-
#
|
893
|
-
# * If `type` is set to `NO_ARTIFACTS`, then this value will be
|
894
|
-
# ignored if specified, because no build output will be produced.
|
895
|
-
#
|
896
|
-
# * If `type` is set to `S3`, valid values include:
|
897
|
-
#
|
898
|
-
# * `NONE`\: AWS CodeBuild will create in the output bucket a folder
|
899
|
-
# containing the build output. This is the default if `packaging`
|
900
|
-
# is not specified.
|
901
|
-
#
|
902
|
-
# * `ZIP`\: AWS CodeBuild will create in the output bucket a ZIP
|
903
|
-
# file containing the build output.
|
904
|
-
# @return [String]
|
905
|
-
class ProjectArtifacts < Struct.new(
|
906
|
-
:type,
|
907
|
-
:location,
|
908
|
-
:path,
|
909
|
-
:namespace_type,
|
910
|
-
:name,
|
911
|
-
:packaging)
|
912
|
-
include Aws::Structure
|
913
|
-
end
|
735
|
+
# Information about a build project.
|
736
|
+
#
|
737
|
+
# @!attribute [rw] name
|
738
|
+
# The name of the build project.
|
739
|
+
# @return [String]
|
740
|
+
#
|
741
|
+
# @!attribute [rw] arn
|
742
|
+
# The Amazon Resource Name (ARN) of the build project.
|
743
|
+
# @return [String]
|
744
|
+
#
|
745
|
+
# @!attribute [rw] description
|
746
|
+
# A description that makes the build project easy to identify.
|
747
|
+
# @return [String]
|
748
|
+
#
|
749
|
+
# @!attribute [rw] source
|
750
|
+
# Information about the build input source code for this build
|
751
|
+
# project.
|
752
|
+
# @return [Types::ProjectSource]
|
753
|
+
#
|
754
|
+
# @!attribute [rw] artifacts
|
755
|
+
# Information about the build output artifacts for the build project.
|
756
|
+
# @return [Types::ProjectArtifacts]
|
757
|
+
#
|
758
|
+
# @!attribute [rw] environment
|
759
|
+
# Information about the build environment for this build project.
|
760
|
+
# @return [Types::ProjectEnvironment]
|
761
|
+
#
|
762
|
+
# @!attribute [rw] service_role
|
763
|
+
# The ARN of the AWS Identity and Access Management (IAM) role that
|
764
|
+
# enables AWS CodeBuild to interact with dependent AWS services on
|
765
|
+
# behalf of the AWS account.
|
766
|
+
# @return [String]
|
767
|
+
#
|
768
|
+
# @!attribute [rw] timeout_in_minutes
|
769
|
+
# How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to
|
770
|
+
# wait before timing out any related build that did not get marked as
|
771
|
+
# completed. The default is 60 minutes.
|
772
|
+
# @return [Integer]
|
773
|
+
#
|
774
|
+
# @!attribute [rw] encryption_key
|
775
|
+
# The AWS Key Management Service (AWS KMS) customer master key (CMK)
|
776
|
+
# to be used for encrypting the build output artifacts.
|
777
|
+
#
|
778
|
+
# This is expressed either as the CMK's Amazon Resource Name (ARN)
|
779
|
+
# or, if specified, the CMK's alias (using the format
|
780
|
+
# `alias/alias-name `).
|
781
|
+
# @return [String]
|
782
|
+
#
|
783
|
+
# @!attribute [rw] tags
|
784
|
+
# The tags for this build project.
|
785
|
+
#
|
786
|
+
# These tags are available for use by AWS services that support AWS
|
787
|
+
# CodeBuild build project tags.
|
788
|
+
# @return [Array<Types::Tag>]
|
789
|
+
#
|
790
|
+
# @!attribute [rw] created
|
791
|
+
# When the build project was created, expressed in Unix time format.
|
792
|
+
# @return [Time]
|
793
|
+
#
|
794
|
+
# @!attribute [rw] last_modified
|
795
|
+
# When the build project's settings were last modified, expressed in
|
796
|
+
# Unix time format.
|
797
|
+
# @return [Time]
|
798
|
+
#
|
799
|
+
class Project < Struct.new(
|
800
|
+
:name,
|
801
|
+
:arn,
|
802
|
+
:description,
|
803
|
+
:source,
|
804
|
+
:artifacts,
|
805
|
+
:environment,
|
806
|
+
:service_role,
|
807
|
+
:timeout_in_minutes,
|
808
|
+
:encryption_key,
|
809
|
+
:tags,
|
810
|
+
:created,
|
811
|
+
:last_modified)
|
812
|
+
include Aws::Structure
|
813
|
+
end
|
914
814
|
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
815
|
+
# Information about the build output artifacts for the build project.
|
816
|
+
#
|
817
|
+
# @note When making an API call, you may pass ProjectArtifacts
|
818
|
+
# data as a hash:
|
819
|
+
#
|
820
|
+
# {
|
821
|
+
# type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
|
822
|
+
# location: "String",
|
823
|
+
# path: "String",
|
824
|
+
# namespace_type: "NONE", # accepts NONE, BUILD_ID
|
825
|
+
# name: "String",
|
826
|
+
# packaging: "NONE", # accepts NONE, ZIP
|
827
|
+
# }
|
828
|
+
#
|
829
|
+
# @!attribute [rw] type
|
830
|
+
# The type of build output artifact. Valid values include:
|
831
|
+
#
|
832
|
+
# * `CODEPIPELINE`\: The build project will have build output
|
833
|
+
# generated through AWS CodePipeline.
|
834
|
+
#
|
835
|
+
# * `NO_ARTIFACTS`\: The build project will not produce any build
|
836
|
+
# output.
|
837
|
+
#
|
838
|
+
# * `S3`\: The build project will store build output in Amazon Simple
|
839
|
+
# Storage Service (Amazon S3).
|
840
|
+
# @return [String]
|
841
|
+
#
|
842
|
+
# @!attribute [rw] location
|
843
|
+
# Information about the build output artifact location, as follows:
|
844
|
+
#
|
845
|
+
# * If `type` is set to `CODEPIPELINE`, then AWS CodePipeline will
|
846
|
+
# ignore this value if specified. This is because AWS CodePipeline
|
847
|
+
# manages its build output locations instead of AWS CodeBuild.
|
848
|
+
#
|
849
|
+
# * If `type` is set to `NO_ARTIFACTS`, then this value will be
|
850
|
+
# ignored if specified, because no build output will be produced.
|
851
|
+
#
|
852
|
+
# * If `type` is set to `S3`, this is the name of the output bucket.
|
853
|
+
# @return [String]
|
854
|
+
#
|
855
|
+
# @!attribute [rw] path
|
856
|
+
# Along with `namespaceType` and `name`, the pattern that AWS
|
857
|
+
# CodeBuild will use to name and store the output artifact, as
|
858
|
+
# follows:
|
859
|
+
#
|
860
|
+
# * If `type` is set to `CODEPIPELINE`, then AWS CodePipeline will
|
861
|
+
# ignore this value if specified. This is because AWS CodePipeline
|
862
|
+
# manages its build output names instead of AWS CodeBuild.
|
863
|
+
#
|
864
|
+
# * If `type` is set to `NO_ARTIFACTS`, then this value will be
|
865
|
+
# ignored if specified, because no build output will be produced.
|
866
|
+
#
|
867
|
+
# * If `type` is set to `S3`, this is the path to the output artifact.
|
868
|
+
# If `path` is not specified, then `path` will not be used.
|
869
|
+
#
|
870
|
+
# For example, if `path` is set to `MyArtifacts`, `namespaceType` is
|
871
|
+
# set to `NONE`, and `name` is set to `MyArtifact.zip`, then the
|
872
|
+
# output artifact would be stored in the output bucket at
|
873
|
+
# `MyArtifacts/MyArtifact.zip`.
|
874
|
+
# @return [String]
|
875
|
+
#
|
876
|
+
# @!attribute [rw] namespace_type
|
877
|
+
# Along with `path` and `name`, the pattern that AWS CodeBuild will
|
878
|
+
# use to determine the name and location to store the output artifact,
|
879
|
+
# as follows:
|
880
|
+
#
|
881
|
+
# * If `type` is set to `CODEPIPELINE`, then AWS CodePipeline will
|
882
|
+
# ignore this value if specified. This is because AWS CodePipeline
|
883
|
+
# manages its build output names instead of AWS CodeBuild.
|
884
|
+
#
|
885
|
+
# * If `type` is set to `NO_ARTIFACTS`, then this value will be
|
886
|
+
# ignored if specified, because no build output will be produced.
|
887
|
+
#
|
888
|
+
# * If `type` is set to `S3`, then valid values include:
|
889
|
+
#
|
890
|
+
# * `BUILD_ID`\: Include the build ID in the location of the build
|
891
|
+
# output artifact.
|
892
|
+
#
|
893
|
+
# * `NONE`\: Do not include the build ID. This is the default if
|
894
|
+
# `namespaceType` is not specified.
|
895
|
+
#
|
896
|
+
# For example, if `path` is set to `MyArtifacts`, `namespaceType` is
|
897
|
+
# set to `BUILD_ID`, and `name` is set to `MyArtifact.zip`, then the
|
898
|
+
# output artifact would be stored in
|
899
|
+
# `MyArtifacts/build-ID/MyArtifact.zip`.
|
900
|
+
# @return [String]
|
901
|
+
#
|
902
|
+
# @!attribute [rw] name
|
903
|
+
# Along with `path` and `namespaceType`, the pattern that AWS
|
904
|
+
# CodeBuild will use to name and store the output artifact, as
|
905
|
+
# follows:
|
906
|
+
#
|
907
|
+
# * If `type` is set to `CODEPIPELINE`, then AWS CodePipeline will
|
908
|
+
# ignore this value if specified. This is because AWS CodePipeline
|
909
|
+
# manages its build output names instead of AWS CodeBuild.
|
910
|
+
#
|
911
|
+
# * If `type` is set to `NO_ARTIFACTS`, then this value will be
|
912
|
+
# ignored if specified, because no build output will be produced.
|
913
|
+
#
|
914
|
+
# * If `type` is set to `S3`, this is the name of the output artifact
|
915
|
+
# object.
|
916
|
+
#
|
917
|
+
# For example, if `path` is set to `MyArtifacts`, `namespaceType` is
|
918
|
+
# set to `BUILD_ID`, and `name` is set to `MyArtifact.zip`, then the
|
919
|
+
# output artifact would be stored in
|
920
|
+
# `MyArtifacts/build-ID/MyArtifact.zip`.
|
921
|
+
# @return [String]
|
922
|
+
#
|
923
|
+
# @!attribute [rw] packaging
|
924
|
+
# The type of build output artifact to create, as follows:
|
925
|
+
#
|
926
|
+
# * If `type` is set to `CODEPIPELINE`, then AWS CodePipeline will
|
927
|
+
# ignore this value if specified. This is because AWS CodePipeline
|
928
|
+
# manages its build output artifacts instead of AWS CodeBuild.
|
929
|
+
#
|
930
|
+
# * If `type` is set to `NO_ARTIFACTS`, then this value will be
|
931
|
+
# ignored if specified, because no build output will be produced.
|
932
|
+
#
|
933
|
+
# * If `type` is set to `S3`, valid values include:
|
934
|
+
#
|
935
|
+
# * `NONE`\: AWS CodeBuild will create in the output bucket a folder
|
936
|
+
# containing the build output. This is the default if `packaging`
|
937
|
+
# is not specified.
|
938
|
+
#
|
939
|
+
# * `ZIP`\: AWS CodeBuild will create in the output bucket a ZIP
|
940
|
+
# file containing the build output.
|
941
|
+
# @return [String]
|
942
|
+
#
|
943
|
+
class ProjectArtifacts < Struct.new(
|
944
|
+
:type,
|
945
|
+
:location,
|
946
|
+
:path,
|
947
|
+
:namespace_type,
|
948
|
+
:name,
|
949
|
+
:packaging)
|
950
|
+
include Aws::Structure
|
951
|
+
end
|
966
952
|
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
# example,
|
1019
|
-
# `https://login-user-name:personal-access-token@github.com/repo-owner-name/repo-name.git`).
|
1020
|
-
# For more information, see [Creating an Access Token for
|
1021
|
-
# Command-Line Use][1] on the GitHub Help website.
|
1022
|
-
#
|
1023
|
-
#
|
1024
|
-
#
|
1025
|
-
# [1]: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
|
1026
|
-
# @return [String]
|
1027
|
-
#
|
1028
|
-
# @!attribute [rw] buildspec
|
1029
|
-
# The build spec declaration to use for this build project's related
|
1030
|
-
# builds.
|
1031
|
-
#
|
1032
|
-
# If this value is not specified, a build spec must be included along
|
1033
|
-
# with the source code to be built.
|
1034
|
-
# @return [String]
|
1035
|
-
#
|
1036
|
-
# @!attribute [rw] auth
|
1037
|
-
# Information about the authorization settings for AWS CodeBuild to
|
1038
|
-
# access the source code to be built.
|
1039
|
-
#
|
1040
|
-
# This information is only for the AWS CodeBuild console's use. Your
|
1041
|
-
# code should not get or set this information directly.
|
1042
|
-
# @return [Types::SourceAuth]
|
1043
|
-
class ProjectSource < Struct.new(
|
1044
|
-
:type,
|
1045
|
-
:location,
|
1046
|
-
:buildspec,
|
1047
|
-
:auth)
|
1048
|
-
include Aws::Structure
|
1049
|
-
end
|
953
|
+
# Information about the build environment of the build project.
|
954
|
+
#
|
955
|
+
# @note When making an API call, you may pass ProjectEnvironment
|
956
|
+
# data as a hash:
|
957
|
+
#
|
958
|
+
# {
|
959
|
+
# type: "LINUX_CONTAINER", # required, accepts LINUX_CONTAINER
|
960
|
+
# image: "NonEmptyString", # required
|
961
|
+
# compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE
|
962
|
+
# environment_variables: [
|
963
|
+
# {
|
964
|
+
# name: "NonEmptyString", # required
|
965
|
+
# value: "String", # required
|
966
|
+
# },
|
967
|
+
# ],
|
968
|
+
# }
|
969
|
+
#
|
970
|
+
# @!attribute [rw] type
|
971
|
+
# The type of build environment to use for related builds.
|
972
|
+
# @return [String]
|
973
|
+
#
|
974
|
+
# @!attribute [rw] image
|
975
|
+
# The ID of the Docker image to use for this build project.
|
976
|
+
# @return [String]
|
977
|
+
#
|
978
|
+
# @!attribute [rw] compute_type
|
979
|
+
# Information about the compute resources the build project will use.
|
980
|
+
# Available values include:
|
981
|
+
#
|
982
|
+
# * `BUILD_GENERAL1_SMALL`\: Use up to 3 GB memory and 2 vCPUs for
|
983
|
+
# builds.
|
984
|
+
#
|
985
|
+
# * `BUILD_GENERAL1_MEDIUM`\: Use up to 7 GB memory and 4 vCPUs for
|
986
|
+
# builds.
|
987
|
+
#
|
988
|
+
# * `BUILD_GENERAL1_LARGE`\: Use up to 15 GB memory and 8 vCPUs for
|
989
|
+
# builds.
|
990
|
+
# @return [String]
|
991
|
+
#
|
992
|
+
# @!attribute [rw] environment_variables
|
993
|
+
# A set of environment variables to make available to builds for this
|
994
|
+
# build project.
|
995
|
+
# @return [Array<Types::EnvironmentVariable>]
|
996
|
+
#
|
997
|
+
class ProjectEnvironment < Struct.new(
|
998
|
+
:type,
|
999
|
+
:image,
|
1000
|
+
:compute_type,
|
1001
|
+
:environment_variables)
|
1002
|
+
include Aws::Structure
|
1003
|
+
end
|
1050
1004
|
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1005
|
+
# Information about the build input source code for the build project.
|
1006
|
+
#
|
1007
|
+
# @note When making an API call, you may pass ProjectSource
|
1008
|
+
# data as a hash:
|
1009
|
+
#
|
1010
|
+
# {
|
1011
|
+
# type: "CODECOMMIT", # required, accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3
|
1012
|
+
# location: "String",
|
1013
|
+
# buildspec: "String",
|
1014
|
+
# auth: {
|
1015
|
+
# type: "OAUTH", # required, accepts OAUTH
|
1016
|
+
# resource: "String",
|
1017
|
+
# },
|
1018
|
+
# }
|
1019
|
+
#
|
1020
|
+
# @!attribute [rw] type
|
1021
|
+
# The type of repository that contains the source code to be built.
|
1022
|
+
# Valid values include:
|
1023
|
+
#
|
1024
|
+
# * `CODECOMMIT`\: The source code is in an AWS CodeCommit repository.
|
1025
|
+
#
|
1026
|
+
# * `CODEPIPELINE`\: The source code settings are specified in the
|
1027
|
+
# source action of a pipeline in AWS CodePipeline.
|
1028
|
+
#
|
1029
|
+
# * `GITHUB`\: The source code is in a GitHub repository.
|
1030
|
+
#
|
1031
|
+
# * `S3`\: The source code is in an Amazon Simple Storage Service
|
1032
|
+
# (Amazon S3) input bucket.
|
1033
|
+
# @return [String]
|
1034
|
+
#
|
1035
|
+
# @!attribute [rw] location
|
1036
|
+
# Information about the location of the source code to be built. Valid
|
1037
|
+
# values include:
|
1038
|
+
#
|
1039
|
+
# * For source code settings that are specified in the source action
|
1040
|
+
# of a pipeline in AWS CodePipeline, `location` should not be
|
1041
|
+
# specified. If it is specified, AWS CodePipeline will ignore it.
|
1042
|
+
# This is because AWS CodePipeline uses the settings in a
|
1043
|
+
# pipeline's source action instead of this value.
|
1044
|
+
#
|
1045
|
+
# * For source code in an AWS CodeCommit repository, the HTTPS clone
|
1046
|
+
# URL to the repository that contains the source code and the build
|
1047
|
+
# spec (for example,
|
1048
|
+
# `https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name
|
1049
|
+
# `).
|
1050
|
+
#
|
1051
|
+
# * For source code in an Amazon Simple Storage Service (Amazon S3)
|
1052
|
+
# input bucket, the path to the ZIP file that contains the source
|
1053
|
+
# code (for example, ` bucket-name/path/to/object-name.zip`)
|
1054
|
+
#
|
1055
|
+
# * For source code in a GitHub repository, instead of specifying a
|
1056
|
+
# value here, you connect your AWS account to your GitHub account.
|
1057
|
+
# To do this, use the AWS CodeBuild console to begin creating a
|
1058
|
+
# build project, and follow the on-screen instructions to complete
|
1059
|
+
# the connection. (After you have connected to your GitHub account,
|
1060
|
+
# you do not need to finish creating the build project, and you may
|
1061
|
+
# then leave the AWS CodeBuild console.) To instruct AWS CodeBuild
|
1062
|
+
# to then use this connection, in the `source` object, set the
|
1063
|
+
# `auth` object's `type` value to `OAUTH`.
|
1064
|
+
# @return [String]
|
1065
|
+
#
|
1066
|
+
# @!attribute [rw] buildspec
|
1067
|
+
# The build spec declaration to use for the builds in this build
|
1068
|
+
# project.
|
1069
|
+
#
|
1070
|
+
# If this value is not specified, a build spec must be included along
|
1071
|
+
# with the source code to be built.
|
1072
|
+
# @return [String]
|
1073
|
+
#
|
1074
|
+
# @!attribute [rw] auth
|
1075
|
+
# Information about the authorization settings for AWS CodeBuild to
|
1076
|
+
# access the source code to be built.
|
1077
|
+
#
|
1078
|
+
# This information is for the AWS CodeBuild console's use only. Your
|
1079
|
+
# code should not get or set this information directly (unless the
|
1080
|
+
# build project's source `type` value is `GITHUB`).
|
1081
|
+
# @return [Types::SourceAuth]
|
1082
|
+
#
|
1083
|
+
class ProjectSource < Struct.new(
|
1084
|
+
:type,
|
1085
|
+
:location,
|
1086
|
+
:buildspec,
|
1087
|
+
:auth)
|
1088
|
+
include Aws::Structure
|
1089
|
+
end
|
1076
1090
|
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
# not specified, the latest version will be used. If specified, must
|
1107
|
-
# be one of:
|
1108
|
-
#
|
1109
|
-
# * For AWS CodeCommit or GitHub: the commit ID to use.
|
1110
|
-
#
|
1111
|
-
# * For Amazon Simple Storage Service (Amazon S3): the version ID of
|
1112
|
-
# the object representing the build input ZIP file to use.
|
1113
|
-
# @return [String]
|
1114
|
-
#
|
1115
|
-
# @!attribute [rw] artifacts_override
|
1116
|
-
# Build output artifact settings that override, for this build only,
|
1117
|
-
# the latest ones already defined in the corresponding build project.
|
1118
|
-
# @return [Types::ProjectArtifacts]
|
1119
|
-
#
|
1120
|
-
# @!attribute [rw] environment_variables_override
|
1121
|
-
# A set of environment variables that overrides, for this build only,
|
1122
|
-
# the latest ones already defined in the corresponding build project.
|
1123
|
-
# @return [Array<Types::EnvironmentVariable>]
|
1124
|
-
#
|
1125
|
-
# @!attribute [rw] buildspec_override
|
1126
|
-
# A build spec declaration that overrides, for this build only, the
|
1127
|
-
# latest one already defined in the corresponding build project.
|
1128
|
-
# @return [String]
|
1129
|
-
#
|
1130
|
-
# @!attribute [rw] timeout_in_minutes_override
|
1131
|
-
# The number of build timeout minutes, from 5 to 480 (8 hours) that
|
1132
|
-
# overrides, for this build only, the latest setting already defined
|
1133
|
-
# in the corresponding build project.
|
1134
|
-
# @return [Integer]
|
1135
|
-
class StartBuildInput < Struct.new(
|
1136
|
-
:project_name,
|
1137
|
-
:source_version,
|
1138
|
-
:artifacts_override,
|
1139
|
-
:environment_variables_override,
|
1140
|
-
:buildspec_override,
|
1141
|
-
:timeout_in_minutes_override)
|
1142
|
-
include Aws::Structure
|
1143
|
-
end
|
1091
|
+
# Information about the authorization settings for AWS CodeBuild to
|
1092
|
+
# access the source code to be built.
|
1093
|
+
#
|
1094
|
+
# This information is for the AWS CodeBuild console's use only. Your
|
1095
|
+
# code should not get or set this information directly (unless the build
|
1096
|
+
# project's source `type` value is `GITHUB`).
|
1097
|
+
#
|
1098
|
+
# @note When making an API call, you may pass SourceAuth
|
1099
|
+
# data as a hash:
|
1100
|
+
#
|
1101
|
+
# {
|
1102
|
+
# type: "OAUTH", # required, accepts OAUTH
|
1103
|
+
# resource: "String",
|
1104
|
+
# }
|
1105
|
+
#
|
1106
|
+
# @!attribute [rw] type
|
1107
|
+
# The authorization type to use. The only valid value is `OAUTH`,
|
1108
|
+
# which represents the OAuth authorization type.
|
1109
|
+
# @return [String]
|
1110
|
+
#
|
1111
|
+
# @!attribute [rw] resource
|
1112
|
+
# The resource value that applies to the specified authorization type.
|
1113
|
+
# @return [String]
|
1114
|
+
#
|
1115
|
+
class SourceAuth < Struct.new(
|
1116
|
+
:type,
|
1117
|
+
:resource)
|
1118
|
+
include Aws::Structure
|
1119
|
+
end
|
1144
1120
|
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1121
|
+
# @note When making an API call, you may pass StartBuildInput
|
1122
|
+
# data as a hash:
|
1123
|
+
#
|
1124
|
+
# {
|
1125
|
+
# project_name: "NonEmptyString", # required
|
1126
|
+
# source_version: "String",
|
1127
|
+
# artifacts_override: {
|
1128
|
+
# type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
|
1129
|
+
# location: "String",
|
1130
|
+
# path: "String",
|
1131
|
+
# namespace_type: "NONE", # accepts NONE, BUILD_ID
|
1132
|
+
# name: "String",
|
1133
|
+
# packaging: "NONE", # accepts NONE, ZIP
|
1134
|
+
# },
|
1135
|
+
# environment_variables_override: [
|
1136
|
+
# {
|
1137
|
+
# name: "NonEmptyString", # required
|
1138
|
+
# value: "String", # required
|
1139
|
+
# },
|
1140
|
+
# ],
|
1141
|
+
# buildspec_override: "String",
|
1142
|
+
# timeout_in_minutes_override: 1,
|
1143
|
+
# }
|
1144
|
+
#
|
1145
|
+
# @!attribute [rw] project_name
|
1146
|
+
# The name of the build project to start running a build.
|
1147
|
+
# @return [String]
|
1148
|
+
#
|
1149
|
+
# @!attribute [rw] source_version
|
1150
|
+
# A version of the build input to be built, for this build only. If
|
1151
|
+
# not specified, the latest version will be used. If specified, must
|
1152
|
+
# be one of:
|
1153
|
+
#
|
1154
|
+
# * For AWS CodeCommit or GitHub: the commit ID to use.
|
1155
|
+
#
|
1156
|
+
# * For Amazon Simple Storage Service (Amazon S3): the version ID of
|
1157
|
+
# the object representing the build input ZIP file to use.
|
1158
|
+
# @return [String]
|
1159
|
+
#
|
1160
|
+
# @!attribute [rw] artifacts_override
|
1161
|
+
# Build output artifact settings that override, for this build only,
|
1162
|
+
# the latest ones already defined in the build project.
|
1163
|
+
# @return [Types::ProjectArtifacts]
|
1164
|
+
#
|
1165
|
+
# @!attribute [rw] environment_variables_override
|
1166
|
+
# A set of environment variables that overrides, for this build only,
|
1167
|
+
# the latest ones already defined in the build project.
|
1168
|
+
# @return [Array<Types::EnvironmentVariable>]
|
1169
|
+
#
|
1170
|
+
# @!attribute [rw] buildspec_override
|
1171
|
+
# A build spec declaration that overrides, for this build only, the
|
1172
|
+
# latest one already defined in the build project.
|
1173
|
+
# @return [String]
|
1174
|
+
#
|
1175
|
+
# @!attribute [rw] timeout_in_minutes_override
|
1176
|
+
# The number of build timeout minutes, from 5 to 480 (8 hours), that
|
1177
|
+
# overrides, for this build only, the latest setting already defined
|
1178
|
+
# in the build project.
|
1179
|
+
# @return [Integer]
|
1180
|
+
#
|
1181
|
+
class StartBuildInput < Struct.new(
|
1182
|
+
:project_name,
|
1183
|
+
:source_version,
|
1184
|
+
:artifacts_override,
|
1185
|
+
:environment_variables_override,
|
1186
|
+
:buildspec_override,
|
1187
|
+
:timeout_in_minutes_override)
|
1188
|
+
include Aws::Structure
|
1189
|
+
end
|
1152
1190
|
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
# @return [String]
|
1162
|
-
class StopBuildInput < Struct.new(
|
1163
|
-
:id)
|
1164
|
-
include Aws::Structure
|
1165
|
-
end
|
1191
|
+
# @!attribute [rw] build
|
1192
|
+
# Information about the build to be run.
|
1193
|
+
# @return [Types::Build]
|
1194
|
+
#
|
1195
|
+
class StartBuildOutput < Struct.new(
|
1196
|
+
:build)
|
1197
|
+
include Aws::Structure
|
1198
|
+
end
|
1166
1199
|
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1200
|
+
# @note When making an API call, you may pass StopBuildInput
|
1201
|
+
# data as a hash:
|
1202
|
+
#
|
1203
|
+
# {
|
1204
|
+
# id: "NonEmptyString", # required
|
1205
|
+
# }
|
1206
|
+
#
|
1207
|
+
# @!attribute [rw] id
|
1208
|
+
# The ID of the build.
|
1209
|
+
# @return [String]
|
1210
|
+
#
|
1211
|
+
class StopBuildInput < Struct.new(
|
1212
|
+
:id)
|
1213
|
+
include Aws::Structure
|
1214
|
+
end
|
1174
1215
|
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
# key: "KeyInput",
|
1184
|
-
# value: "ValueInput",
|
1185
|
-
# }
|
1186
|
-
# @!attribute [rw] key
|
1187
|
-
# The tag's key.
|
1188
|
-
# @return [String]
|
1189
|
-
#
|
1190
|
-
# @!attribute [rw] value
|
1191
|
-
# The tag's value.
|
1192
|
-
# @return [String]
|
1193
|
-
class Tag < Struct.new(
|
1194
|
-
:key,
|
1195
|
-
:value)
|
1196
|
-
include Aws::Structure
|
1197
|
-
end
|
1216
|
+
# @!attribute [rw] build
|
1217
|
+
# Information about the build.
|
1218
|
+
# @return [Types::Build]
|
1219
|
+
#
|
1220
|
+
class StopBuildOutput < Struct.new(
|
1221
|
+
:build)
|
1222
|
+
include Aws::Structure
|
1223
|
+
end
|
1198
1224
|
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
# compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE
|
1226
|
-
# environment_variables: [
|
1227
|
-
# {
|
1228
|
-
# name: "NonEmptyString", # required
|
1229
|
-
# value: "String", # required
|
1230
|
-
# },
|
1231
|
-
# ],
|
1232
|
-
# },
|
1233
|
-
# service_role: "NonEmptyString",
|
1234
|
-
# timeout_in_minutes: 1,
|
1235
|
-
# encryption_key: "NonEmptyString",
|
1236
|
-
# tags: [
|
1237
|
-
# {
|
1238
|
-
# key: "KeyInput",
|
1239
|
-
# value: "ValueInput",
|
1240
|
-
# },
|
1241
|
-
# ],
|
1242
|
-
# }
|
1243
|
-
# @!attribute [rw] name
|
1244
|
-
# The name of the existing build project to change settings.
|
1245
|
-
#
|
1246
|
-
# <note markdown="1"> You cannot change an existing build project's name.
|
1247
|
-
#
|
1248
|
-
# </note>
|
1249
|
-
# @return [String]
|
1250
|
-
#
|
1251
|
-
# @!attribute [rw] description
|
1252
|
-
# A new or replacement description of the build project.
|
1253
|
-
# @return [String]
|
1254
|
-
#
|
1255
|
-
# @!attribute [rw] source
|
1256
|
-
# Information to be changed about the build project's build input
|
1257
|
-
# source code.
|
1258
|
-
# @return [Types::ProjectSource]
|
1259
|
-
#
|
1260
|
-
# @!attribute [rw] artifacts
|
1261
|
-
# Information to be changed about the build project's build output
|
1262
|
-
# artifacts.
|
1263
|
-
# @return [Types::ProjectArtifacts]
|
1264
|
-
#
|
1265
|
-
# @!attribute [rw] environment
|
1266
|
-
# Information to be changed about the build project's build
|
1267
|
-
# environment.
|
1268
|
-
# @return [Types::ProjectEnvironment]
|
1269
|
-
#
|
1270
|
-
# @!attribute [rw] service_role
|
1271
|
-
# The replacement Amazon Resource Name (ARN) of the AWS Identity and
|
1272
|
-
# Access Management (IAM) role that enables AWS CodeBuild to interact
|
1273
|
-
# with dependent AWS services on behalf of the AWS account.
|
1274
|
-
# @return [String]
|
1275
|
-
#
|
1276
|
-
# @!attribute [rw] timeout_in_minutes
|
1277
|
-
# The replacement value in minutes, from 5 to 480 (8 hours), for AWS
|
1278
|
-
# CodeBuild to wait to timeout any related build that did not get
|
1279
|
-
# marked as completed.
|
1280
|
-
# @return [Integer]
|
1281
|
-
#
|
1282
|
-
# @!attribute [rw] encryption_key
|
1283
|
-
# The replacement AWS Key Management Service (AWS KMS) customer master
|
1284
|
-
# key (CMK) to be used for encrypting the build project's build
|
1285
|
-
# output artifacts.
|
1286
|
-
#
|
1287
|
-
# You can specify either the CMK's Amazon Resource Name (ARN) or, if
|
1288
|
-
# available, the CMK's alias (using the format `alias/alias-name `).
|
1289
|
-
# @return [String]
|
1290
|
-
#
|
1291
|
-
# @!attribute [rw] tags
|
1292
|
-
# The replacement set of tags for this build project.
|
1293
|
-
#
|
1294
|
-
# These tags are available for use by AWS services that support AWS
|
1295
|
-
# CodeBuild build project tags.
|
1296
|
-
# @return [Array<Types::Tag>]
|
1297
|
-
class UpdateProjectInput < Struct.new(
|
1298
|
-
:name,
|
1299
|
-
:description,
|
1300
|
-
:source,
|
1301
|
-
:artifacts,
|
1302
|
-
:environment,
|
1303
|
-
:service_role,
|
1304
|
-
:timeout_in_minutes,
|
1305
|
-
:encryption_key,
|
1306
|
-
:tags)
|
1307
|
-
include Aws::Structure
|
1308
|
-
end
|
1225
|
+
# A tag, consisting of a key and a value.
|
1226
|
+
#
|
1227
|
+
# This tag is available for use by AWS services that support tags in AWS
|
1228
|
+
# CodeBuild.
|
1229
|
+
#
|
1230
|
+
# @note When making an API call, you may pass Tag
|
1231
|
+
# data as a hash:
|
1232
|
+
#
|
1233
|
+
# {
|
1234
|
+
# key: "KeyInput",
|
1235
|
+
# value: "ValueInput",
|
1236
|
+
# }
|
1237
|
+
#
|
1238
|
+
# @!attribute [rw] key
|
1239
|
+
# The tag's key.
|
1240
|
+
# @return [String]
|
1241
|
+
#
|
1242
|
+
# @!attribute [rw] value
|
1243
|
+
# The tag's value.
|
1244
|
+
# @return [String]
|
1245
|
+
#
|
1246
|
+
class Tag < Struct.new(
|
1247
|
+
:key,
|
1248
|
+
:value)
|
1249
|
+
include Aws::Structure
|
1250
|
+
end
|
1309
1251
|
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1252
|
+
# @note When making an API call, you may pass UpdateProjectInput
|
1253
|
+
# data as a hash:
|
1254
|
+
#
|
1255
|
+
# {
|
1256
|
+
# name: "NonEmptyString", # required
|
1257
|
+
# description: "ProjectDescription",
|
1258
|
+
# source: {
|
1259
|
+
# type: "CODECOMMIT", # required, accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3
|
1260
|
+
# location: "String",
|
1261
|
+
# buildspec: "String",
|
1262
|
+
# auth: {
|
1263
|
+
# type: "OAUTH", # required, accepts OAUTH
|
1264
|
+
# resource: "String",
|
1265
|
+
# },
|
1266
|
+
# },
|
1267
|
+
# artifacts: {
|
1268
|
+
# type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
|
1269
|
+
# location: "String",
|
1270
|
+
# path: "String",
|
1271
|
+
# namespace_type: "NONE", # accepts NONE, BUILD_ID
|
1272
|
+
# name: "String",
|
1273
|
+
# packaging: "NONE", # accepts NONE, ZIP
|
1274
|
+
# },
|
1275
|
+
# environment: {
|
1276
|
+
# type: "LINUX_CONTAINER", # required, accepts LINUX_CONTAINER
|
1277
|
+
# image: "NonEmptyString", # required
|
1278
|
+
# compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE
|
1279
|
+
# environment_variables: [
|
1280
|
+
# {
|
1281
|
+
# name: "NonEmptyString", # required
|
1282
|
+
# value: "String", # required
|
1283
|
+
# },
|
1284
|
+
# ],
|
1285
|
+
# },
|
1286
|
+
# service_role: "NonEmptyString",
|
1287
|
+
# timeout_in_minutes: 1,
|
1288
|
+
# encryption_key: "NonEmptyString",
|
1289
|
+
# tags: [
|
1290
|
+
# {
|
1291
|
+
# key: "KeyInput",
|
1292
|
+
# value: "ValueInput",
|
1293
|
+
# },
|
1294
|
+
# ],
|
1295
|
+
# }
|
1296
|
+
#
|
1297
|
+
# @!attribute [rw] name
|
1298
|
+
# The name of the build project.
|
1299
|
+
#
|
1300
|
+
# <note markdown="1"> You cannot change a build project's name.
|
1301
|
+
#
|
1302
|
+
# </note>
|
1303
|
+
# @return [String]
|
1304
|
+
#
|
1305
|
+
# @!attribute [rw] description
|
1306
|
+
# A new or replacement description of the build project.
|
1307
|
+
# @return [String]
|
1308
|
+
#
|
1309
|
+
# @!attribute [rw] source
|
1310
|
+
# Information to be changed about the build input source code for the
|
1311
|
+
# build project.
|
1312
|
+
# @return [Types::ProjectSource]
|
1313
|
+
#
|
1314
|
+
# @!attribute [rw] artifacts
|
1315
|
+
# Information to be changed about the build output artifacts for the
|
1316
|
+
# build project.
|
1317
|
+
# @return [Types::ProjectArtifacts]
|
1318
|
+
#
|
1319
|
+
# @!attribute [rw] environment
|
1320
|
+
# Information to be changed about the build environment for the build
|
1321
|
+
# project.
|
1322
|
+
# @return [Types::ProjectEnvironment]
|
1323
|
+
#
|
1324
|
+
# @!attribute [rw] service_role
|
1325
|
+
# The replacement ARN of the AWS Identity and Access Management (IAM)
|
1326
|
+
# role that enables AWS CodeBuild to interact with dependent AWS
|
1327
|
+
# services on behalf of the AWS account.
|
1328
|
+
# @return [String]
|
1329
|
+
#
|
1330
|
+
# @!attribute [rw] timeout_in_minutes
|
1331
|
+
# The replacement value in minutes, from 5 to 480 (8 hours), for AWS
|
1332
|
+
# CodeBuild to wait before timing out any related build that did not
|
1333
|
+
# get marked as completed.
|
1334
|
+
# @return [Integer]
|
1335
|
+
#
|
1336
|
+
# @!attribute [rw] encryption_key
|
1337
|
+
# The replacement AWS Key Management Service (AWS KMS) customer master
|
1338
|
+
# key (CMK) to be used for encrypting the build output artifacts.
|
1339
|
+
#
|
1340
|
+
# You can specify either the CMK's Amazon Resource Name (ARN) or, if
|
1341
|
+
# available, the CMK's alias (using the format `alias/alias-name `).
|
1342
|
+
# @return [String]
|
1343
|
+
#
|
1344
|
+
# @!attribute [rw] tags
|
1345
|
+
# The replacement set of tags for this build project.
|
1346
|
+
#
|
1347
|
+
# These tags are available for use by AWS services that support AWS
|
1348
|
+
# CodeBuild build project tags.
|
1349
|
+
# @return [Array<Types::Tag>]
|
1350
|
+
#
|
1351
|
+
class UpdateProjectInput < Struct.new(
|
1352
|
+
:name,
|
1353
|
+
:description,
|
1354
|
+
:source,
|
1355
|
+
:artifacts,
|
1356
|
+
:environment,
|
1357
|
+
:service_role,
|
1358
|
+
:timeout_in_minutes,
|
1359
|
+
:encryption_key,
|
1360
|
+
:tags)
|
1361
|
+
include Aws::Structure
|
1362
|
+
end
|
1317
1363
|
|
1364
|
+
# @!attribute [rw] project
|
1365
|
+
# Information about the build project that was changed.
|
1366
|
+
# @return [Types::Project]
|
1367
|
+
#
|
1368
|
+
class UpdateProjectOutput < Struct.new(
|
1369
|
+
:project)
|
1370
|
+
include Aws::Structure
|
1318
1371
|
end
|
1372
|
+
|
1319
1373
|
end
|
1320
1374
|
end
|