aws-sdk-amplify 1.73.0 → 1.75.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f3c63fc9ce6f56cf29dc1871dd17f6e55f15bd7395f256b4d4fe66e52c7f2e0
4
- data.tar.gz: 8941e96d5bfb768b22be6e74f37120b22601ff4de8c53ae0d2eb437c097ca558
3
+ metadata.gz: f5a5a800dec271c633438c9ab4ec24008dc848561419d908d142cfa39450e651
4
+ data.tar.gz: e7303f230a29eec823d943686c3769f6dcb66f2267cfb45c11d49a8a24296301
5
5
  SHA512:
6
- metadata.gz: 8ba5bd0c8a6a14ab9e3d3e3181b912fc446aaa8c35a6e2646196584e448e9cb1abf00be149c0b8575c7ad2038ee3896bc63ad199b97e3886a362a42510f4b3f5
7
- data.tar.gz: 9adfa1e2e718d438d11e630f4923a6efcb595c57f50ee700de4c9eeb38f8e55bc02da579769299893dff20b80dbbe4d7564bc28eca9b40ec339b059e9b8b6d3a
6
+ metadata.gz: 5fa2bec4170bbeb0eab622e63cdc8ad99e7d337e1635fde9801257c1a013569c6b5aa2f4ee57d26cbb66e8c368d38b9280bae360c7561887eee6e6d339aa1928
7
+ data.tar.gz: 92178cb19cb6e49b408b439e0b0b440e8e87748f4d576aa5e8ffdfd5ec360ed4dbaa9a1ce296ca5af79b788780a6e275513a51d74ce5d2eb465083ddfc73c2a8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.75.0 (2024-10-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.74.0 (2024-10-15)
10
+ ------------------
11
+
12
+ * Feature - Added sourceUrlType field to StartDeployment request
13
+
4
14
  1.73.0 (2024-09-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.73.0
1
+ 1.75.0
@@ -894,7 +894,7 @@ module Aws::Amplify
894
894
  end
895
895
 
896
896
  # Creates a deployment for a manually deployed Amplify app. Manually
897
- # deployed apps are not connected to a repository.
897
+ # deployed apps are not connected to a Git repository.
898
898
  #
899
899
  # The maximum duration between the `CreateDeployment` call and the
900
900
  # `StartDeployment` call cannot exceed 8 hours. If the duration exceeds
@@ -1329,6 +1329,8 @@ module Aws::Amplify
1329
1329
  # resp.job_summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
1330
1330
  # resp.job_summary.end_time #=> Time
1331
1331
  # resp.job_summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
1332
+ # resp.job_summary.source_url #=> String
1333
+ # resp.job_summary.source_url_type #=> String, one of "ZIP", "BUCKET_PREFIX"
1332
1334
  #
1333
1335
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteJob AWS API Documentation
1334
1336
  #
@@ -1707,6 +1709,8 @@ module Aws::Amplify
1707
1709
  # resp.job.summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
1708
1710
  # resp.job.summary.end_time #=> Time
1709
1711
  # resp.job.summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
1712
+ # resp.job.summary.source_url #=> String
1713
+ # resp.job.summary.source_url_type #=> String, one of "ZIP", "BUCKET_PREFIX"
1710
1714
  # resp.job.steps #=> Array
1711
1715
  # resp.job.steps[0].step_name #=> String
1712
1716
  # resp.job.steps[0].start_time #=> Time
@@ -2131,6 +2135,8 @@ module Aws::Amplify
2131
2135
  # resp.job_summaries[0].status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2132
2136
  # resp.job_summaries[0].end_time #=> Time
2133
2137
  # resp.job_summaries[0].job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
2138
+ # resp.job_summaries[0].source_url #=> String
2139
+ # resp.job_summaries[0].source_url_type #=> String, one of "ZIP", "BUCKET_PREFIX"
2134
2140
  # resp.next_token #=> String
2135
2141
  #
2136
2142
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListJobs AWS API Documentation
@@ -2219,7 +2225,7 @@ module Aws::Amplify
2219
2225
  end
2220
2226
 
2221
2227
  # Starts a deployment for a manually deployed app. Manually deployed
2222
- # apps are not connected to a repository.
2228
+ # apps are not connected to a Git repository.
2223
2229
  #
2224
2230
  # The maximum duration between the `CreateDeployment` call and the
2225
2231
  # `StartDeployment` call cannot exceed 8 hours. If the duration exceeds
@@ -2230,16 +2236,23 @@ module Aws::Amplify
2230
2236
  # The unique ID for an Amplify app.
2231
2237
  #
2232
2238
  # @option params [required, String] :branch_name
2233
- # The name of the branch to use for the job.
2239
+ # The name of the branch to use for the deployment job.
2234
2240
  #
2235
2241
  # @option params [String] :job_id
2236
- # The job ID for this deployment, generated by the create deployment
2237
- # request.
2242
+ # The job ID for this deployment that is generated by the
2243
+ # `CreateDeployment` request.
2238
2244
  #
2239
2245
  # @option params [String] :source_url
2240
- # The source URL for this deployment, used when calling start deployment
2241
- # without create deployment. The source URL can be any HTTP GET URL that
2242
- # is publicly accessible and downloads a single .zip file.
2246
+ # The source URL for the deployment that is used when calling
2247
+ # `StartDeployment` without `CreateDeployment`. The source URL can be
2248
+ # either an HTTP GET URL that is publicly accessible and downloads a
2249
+ # single .zip file, or an Amazon S3 bucket and prefix.
2250
+ #
2251
+ # @option params [String] :source_url_type
2252
+ # The type of source specified by the `sourceURL`. If the value is
2253
+ # `ZIP`, the source is a .zip file. If the value is `BUCKET_PREFIX`, the
2254
+ # source is an Amazon S3 bucket and prefix. If no value is specified,
2255
+ # the default is `ZIP`.
2243
2256
  #
2244
2257
  # @return [Types::StartDeploymentResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2245
2258
  #
@@ -2252,6 +2265,7 @@ module Aws::Amplify
2252
2265
  # branch_name: "BranchName", # required
2253
2266
  # job_id: "JobId",
2254
2267
  # source_url: "SourceUrl",
2268
+ # source_url_type: "ZIP", # accepts ZIP, BUCKET_PREFIX
2255
2269
  # })
2256
2270
  #
2257
2271
  # @example Response structure
@@ -2265,6 +2279,8 @@ module Aws::Amplify
2265
2279
  # resp.job_summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2266
2280
  # resp.job_summary.end_time #=> Time
2267
2281
  # resp.job_summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
2282
+ # resp.job_summary.source_url #=> String
2283
+ # resp.job_summary.source_url_type #=> String, one of "ZIP", "BUCKET_PREFIX"
2268
2284
  #
2269
2285
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartDeployment AWS API Documentation
2270
2286
  #
@@ -2335,6 +2351,8 @@ module Aws::Amplify
2335
2351
  # resp.job_summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2336
2352
  # resp.job_summary.end_time #=> Time
2337
2353
  # resp.job_summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
2354
+ # resp.job_summary.source_url #=> String
2355
+ # resp.job_summary.source_url_type #=> String, one of "ZIP", "BUCKET_PREFIX"
2338
2356
  #
2339
2357
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartJob AWS API Documentation
2340
2358
  #
@@ -2379,6 +2397,8 @@ module Aws::Amplify
2379
2397
  # resp.job_summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2380
2398
  # resp.job_summary.end_time #=> Time
2381
2399
  # resp.job_summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
2400
+ # resp.job_summary.source_url #=> String
2401
+ # resp.job_summary.source_url_type #=> String, one of "ZIP", "BUCKET_PREFIX"
2382
2402
  #
2383
2403
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StopJob AWS API Documentation
2384
2404
  #
@@ -2954,7 +2974,7 @@ module Aws::Amplify
2954
2974
  tracer: tracer
2955
2975
  )
2956
2976
  context[:gem_name] = 'aws-sdk-amplify'
2957
- context[:gem_version] = '1.73.0'
2977
+ context[:gem_version] = '1.75.0'
2958
2978
  Seahorse::Client::Request.new(handlers, context)
2959
2979
  end
2960
2980
 
@@ -181,6 +181,7 @@ module Aws::Amplify
181
181
  ServiceRoleArn = Shapes::StringShape.new(name: 'ServiceRoleArn')
182
182
  Source = Shapes::StringShape.new(name: 'Source')
183
183
  SourceUrl = Shapes::StringShape.new(name: 'SourceUrl')
184
+ SourceUrlType = Shapes::StringShape.new(name: 'SourceUrlType')
184
185
  StackArn = Shapes::StringShape.new(name: 'StackArn')
185
186
  StackName = Shapes::StringShape.new(name: 'StackName')
186
187
  Stage = Shapes::StringShape.new(name: 'Stage')
@@ -588,6 +589,8 @@ module Aws::Amplify
588
589
  JobSummary.add_member(:status, Shapes::ShapeRef.new(shape: JobStatus, required: true, location_name: "status"))
589
590
  JobSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: EndTime, location_name: "endTime"))
590
591
  JobSummary.add_member(:job_type, Shapes::ShapeRef.new(shape: JobType, required: true, location_name: "jobType"))
592
+ JobSummary.add_member(:source_url, Shapes::ShapeRef.new(shape: SourceUrl, location_name: "sourceUrl"))
593
+ JobSummary.add_member(:source_url_type, Shapes::ShapeRef.new(shape: SourceUrlType, location_name: "sourceUrlType"))
591
594
  JobSummary.struct_class = Types::JobSummary
592
595
 
593
596
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
@@ -685,6 +688,7 @@ module Aws::Amplify
685
688
  StartDeploymentRequest.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location: "uri", location_name: "branchName"))
686
689
  StartDeploymentRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "jobId"))
687
690
  StartDeploymentRequest.add_member(:source_url, Shapes::ShapeRef.new(shape: SourceUrl, location_name: "sourceUrl"))
691
+ StartDeploymentRequest.add_member(:source_url_type, Shapes::ShapeRef.new(shape: SourceUrlType, location_name: "sourceUrlType"))
688
692
  StartDeploymentRequest.struct_class = Types::StartDeploymentRequest
689
693
 
690
694
  StartDeploymentResult.add_member(:job_summary, Shapes::ShapeRef.new(shape: JobSummary, required: true, location_name: "jobSummary"))
@@ -52,15 +52,18 @@ module Aws::Amplify
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end
@@ -12,412 +12,9 @@ module Aws::Amplify
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class CreateApp
16
- def self.build(context)
17
- Aws::Amplify::EndpointParameters.new(
18
- region: context.config.region,
19
- use_dual_stack: context.config.use_dualstack_endpoint,
20
- use_fips: context.config.use_fips_endpoint,
21
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
22
- )
23
- end
24
- end
25
-
26
- class CreateBackendEnvironment
27
- def self.build(context)
28
- Aws::Amplify::EndpointParameters.new(
29
- region: context.config.region,
30
- use_dual_stack: context.config.use_dualstack_endpoint,
31
- use_fips: context.config.use_fips_endpoint,
32
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
33
- )
34
- end
35
- end
36
-
37
- class CreateBranch
38
- def self.build(context)
39
- Aws::Amplify::EndpointParameters.new(
40
- region: context.config.region,
41
- use_dual_stack: context.config.use_dualstack_endpoint,
42
- use_fips: context.config.use_fips_endpoint,
43
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
44
- )
45
- end
46
- end
47
-
48
- class CreateDeployment
49
- def self.build(context)
50
- Aws::Amplify::EndpointParameters.new(
51
- region: context.config.region,
52
- use_dual_stack: context.config.use_dualstack_endpoint,
53
- use_fips: context.config.use_fips_endpoint,
54
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
55
- )
56
- end
57
- end
58
-
59
- class CreateDomainAssociation
60
- def self.build(context)
61
- Aws::Amplify::EndpointParameters.new(
62
- region: context.config.region,
63
- use_dual_stack: context.config.use_dualstack_endpoint,
64
- use_fips: context.config.use_fips_endpoint,
65
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
66
- )
67
- end
68
- end
69
-
70
- class CreateWebhook
71
- def self.build(context)
72
- Aws::Amplify::EndpointParameters.new(
73
- region: context.config.region,
74
- use_dual_stack: context.config.use_dualstack_endpoint,
75
- use_fips: context.config.use_fips_endpoint,
76
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
77
- )
78
- end
79
- end
80
-
81
- class DeleteApp
82
- def self.build(context)
83
- Aws::Amplify::EndpointParameters.new(
84
- region: context.config.region,
85
- use_dual_stack: context.config.use_dualstack_endpoint,
86
- use_fips: context.config.use_fips_endpoint,
87
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
88
- )
89
- end
90
- end
91
-
92
- class DeleteBackendEnvironment
93
- def self.build(context)
94
- Aws::Amplify::EndpointParameters.new(
95
- region: context.config.region,
96
- use_dual_stack: context.config.use_dualstack_endpoint,
97
- use_fips: context.config.use_fips_endpoint,
98
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
99
- )
100
- end
101
- end
102
-
103
- class DeleteBranch
104
- def self.build(context)
105
- Aws::Amplify::EndpointParameters.new(
106
- region: context.config.region,
107
- use_dual_stack: context.config.use_dualstack_endpoint,
108
- use_fips: context.config.use_fips_endpoint,
109
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
110
- )
111
- end
112
- end
113
-
114
- class DeleteDomainAssociation
115
- def self.build(context)
116
- Aws::Amplify::EndpointParameters.new(
117
- region: context.config.region,
118
- use_dual_stack: context.config.use_dualstack_endpoint,
119
- use_fips: context.config.use_fips_endpoint,
120
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
121
- )
122
- end
123
- end
124
-
125
- class DeleteJob
126
- def self.build(context)
127
- Aws::Amplify::EndpointParameters.new(
128
- region: context.config.region,
129
- use_dual_stack: context.config.use_dualstack_endpoint,
130
- use_fips: context.config.use_fips_endpoint,
131
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
132
- )
133
- end
134
- end
135
-
136
- class DeleteWebhook
137
- def self.build(context)
138
- Aws::Amplify::EndpointParameters.new(
139
- region: context.config.region,
140
- use_dual_stack: context.config.use_dualstack_endpoint,
141
- use_fips: context.config.use_fips_endpoint,
142
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
143
- )
144
- end
145
- end
146
-
147
- class GenerateAccessLogs
148
- def self.build(context)
149
- Aws::Amplify::EndpointParameters.new(
150
- region: context.config.region,
151
- use_dual_stack: context.config.use_dualstack_endpoint,
152
- use_fips: context.config.use_fips_endpoint,
153
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
154
- )
155
- end
156
- end
157
-
158
- class GetApp
159
- def self.build(context)
160
- Aws::Amplify::EndpointParameters.new(
161
- region: context.config.region,
162
- use_dual_stack: context.config.use_dualstack_endpoint,
163
- use_fips: context.config.use_fips_endpoint,
164
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
165
- )
166
- end
167
- end
168
-
169
- class GetArtifactUrl
170
- def self.build(context)
171
- Aws::Amplify::EndpointParameters.new(
172
- region: context.config.region,
173
- use_dual_stack: context.config.use_dualstack_endpoint,
174
- use_fips: context.config.use_fips_endpoint,
175
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
176
- )
177
- end
178
- end
179
-
180
- class GetBackendEnvironment
181
- def self.build(context)
182
- Aws::Amplify::EndpointParameters.new(
183
- region: context.config.region,
184
- use_dual_stack: context.config.use_dualstack_endpoint,
185
- use_fips: context.config.use_fips_endpoint,
186
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
187
- )
188
- end
189
- end
190
-
191
- class GetBranch
192
- def self.build(context)
193
- Aws::Amplify::EndpointParameters.new(
194
- region: context.config.region,
195
- use_dual_stack: context.config.use_dualstack_endpoint,
196
- use_fips: context.config.use_fips_endpoint,
197
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
198
- )
199
- end
200
- end
201
-
202
- class GetDomainAssociation
203
- def self.build(context)
204
- Aws::Amplify::EndpointParameters.new(
205
- region: context.config.region,
206
- use_dual_stack: context.config.use_dualstack_endpoint,
207
- use_fips: context.config.use_fips_endpoint,
208
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
209
- )
210
- end
211
- end
212
-
213
- class GetJob
214
- def self.build(context)
215
- Aws::Amplify::EndpointParameters.new(
216
- region: context.config.region,
217
- use_dual_stack: context.config.use_dualstack_endpoint,
218
- use_fips: context.config.use_fips_endpoint,
219
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
220
- )
221
- end
222
- end
223
-
224
- class GetWebhook
225
- def self.build(context)
226
- Aws::Amplify::EndpointParameters.new(
227
- region: context.config.region,
228
- use_dual_stack: context.config.use_dualstack_endpoint,
229
- use_fips: context.config.use_fips_endpoint,
230
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
231
- )
232
- end
233
- end
234
-
235
- class ListApps
236
- def self.build(context)
237
- Aws::Amplify::EndpointParameters.new(
238
- region: context.config.region,
239
- use_dual_stack: context.config.use_dualstack_endpoint,
240
- use_fips: context.config.use_fips_endpoint,
241
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
242
- )
243
- end
244
- end
245
-
246
- class ListArtifacts
247
- def self.build(context)
248
- Aws::Amplify::EndpointParameters.new(
249
- region: context.config.region,
250
- use_dual_stack: context.config.use_dualstack_endpoint,
251
- use_fips: context.config.use_fips_endpoint,
252
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
253
- )
254
- end
255
- end
256
-
257
- class ListBackendEnvironments
258
- def self.build(context)
259
- Aws::Amplify::EndpointParameters.new(
260
- region: context.config.region,
261
- use_dual_stack: context.config.use_dualstack_endpoint,
262
- use_fips: context.config.use_fips_endpoint,
263
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
264
- )
265
- end
266
- end
267
-
268
- class ListBranches
269
- def self.build(context)
270
- Aws::Amplify::EndpointParameters.new(
271
- region: context.config.region,
272
- use_dual_stack: context.config.use_dualstack_endpoint,
273
- use_fips: context.config.use_fips_endpoint,
274
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
275
- )
276
- end
277
- end
278
-
279
- class ListDomainAssociations
280
- def self.build(context)
281
- Aws::Amplify::EndpointParameters.new(
282
- region: context.config.region,
283
- use_dual_stack: context.config.use_dualstack_endpoint,
284
- use_fips: context.config.use_fips_endpoint,
285
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
286
- )
287
- end
288
- end
289
-
290
- class ListJobs
291
- def self.build(context)
292
- Aws::Amplify::EndpointParameters.new(
293
- region: context.config.region,
294
- use_dual_stack: context.config.use_dualstack_endpoint,
295
- use_fips: context.config.use_fips_endpoint,
296
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
297
- )
298
- end
299
- end
300
-
301
- class ListTagsForResource
302
- def self.build(context)
303
- Aws::Amplify::EndpointParameters.new(
304
- region: context.config.region,
305
- use_dual_stack: context.config.use_dualstack_endpoint,
306
- use_fips: context.config.use_fips_endpoint,
307
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
308
- )
309
- end
310
- end
311
-
312
- class ListWebhooks
313
- def self.build(context)
314
- Aws::Amplify::EndpointParameters.new(
315
- region: context.config.region,
316
- use_dual_stack: context.config.use_dualstack_endpoint,
317
- use_fips: context.config.use_fips_endpoint,
318
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
319
- )
320
- end
321
- end
322
-
323
- class StartDeployment
324
- def self.build(context)
325
- Aws::Amplify::EndpointParameters.new(
326
- region: context.config.region,
327
- use_dual_stack: context.config.use_dualstack_endpoint,
328
- use_fips: context.config.use_fips_endpoint,
329
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
330
- )
331
- end
332
- end
333
-
334
- class StartJob
335
- def self.build(context)
336
- Aws::Amplify::EndpointParameters.new(
337
- region: context.config.region,
338
- use_dual_stack: context.config.use_dualstack_endpoint,
339
- use_fips: context.config.use_fips_endpoint,
340
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
341
- )
342
- end
343
- end
344
-
345
- class StopJob
346
- def self.build(context)
347
- Aws::Amplify::EndpointParameters.new(
348
- region: context.config.region,
349
- use_dual_stack: context.config.use_dualstack_endpoint,
350
- use_fips: context.config.use_fips_endpoint,
351
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
352
- )
353
- end
354
- end
355
-
356
- class TagResource
357
- def self.build(context)
358
- Aws::Amplify::EndpointParameters.new(
359
- region: context.config.region,
360
- use_dual_stack: context.config.use_dualstack_endpoint,
361
- use_fips: context.config.use_fips_endpoint,
362
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
363
- )
364
- end
365
- end
366
15
 
367
- class UntagResource
368
- def self.build(context)
369
- Aws::Amplify::EndpointParameters.new(
370
- region: context.config.region,
371
- use_dual_stack: context.config.use_dualstack_endpoint,
372
- use_fips: context.config.use_fips_endpoint,
373
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
374
- )
375
- end
16
+ def self.parameters_for_operation(context)
17
+ Aws::Amplify::EndpointParameters.create(context.config)
376
18
  end
377
-
378
- class UpdateApp
379
- def self.build(context)
380
- Aws::Amplify::EndpointParameters.new(
381
- region: context.config.region,
382
- use_dual_stack: context.config.use_dualstack_endpoint,
383
- use_fips: context.config.use_fips_endpoint,
384
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
385
- )
386
- end
387
- end
388
-
389
- class UpdateBranch
390
- def self.build(context)
391
- Aws::Amplify::EndpointParameters.new(
392
- region: context.config.region,
393
- use_dual_stack: context.config.use_dualstack_endpoint,
394
- use_fips: context.config.use_fips_endpoint,
395
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
396
- )
397
- end
398
- end
399
-
400
- class UpdateDomainAssociation
401
- def self.build(context)
402
- Aws::Amplify::EndpointParameters.new(
403
- region: context.config.region,
404
- use_dual_stack: context.config.use_dualstack_endpoint,
405
- use_fips: context.config.use_fips_endpoint,
406
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
407
- )
408
- end
409
- end
410
-
411
- class UpdateWebhook
412
- def self.build(context)
413
- Aws::Amplify::EndpointParameters.new(
414
- region: context.config.region,
415
- use_dual_stack: context.config.use_dualstack_endpoint,
416
- use_fips: context.config.use_fips_endpoint,
417
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
418
- )
419
- end
420
- end
421
-
422
19
  end
423
20
  end
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::Amplify::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,85 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :create_app
74
- Aws::Amplify::Endpoints::CreateApp.build(context)
75
- when :create_backend_environment
76
- Aws::Amplify::Endpoints::CreateBackendEnvironment.build(context)
77
- when :create_branch
78
- Aws::Amplify::Endpoints::CreateBranch.build(context)
79
- when :create_deployment
80
- Aws::Amplify::Endpoints::CreateDeployment.build(context)
81
- when :create_domain_association
82
- Aws::Amplify::Endpoints::CreateDomainAssociation.build(context)
83
- when :create_webhook
84
- Aws::Amplify::Endpoints::CreateWebhook.build(context)
85
- when :delete_app
86
- Aws::Amplify::Endpoints::DeleteApp.build(context)
87
- when :delete_backend_environment
88
- Aws::Amplify::Endpoints::DeleteBackendEnvironment.build(context)
89
- when :delete_branch
90
- Aws::Amplify::Endpoints::DeleteBranch.build(context)
91
- when :delete_domain_association
92
- Aws::Amplify::Endpoints::DeleteDomainAssociation.build(context)
93
- when :delete_job
94
- Aws::Amplify::Endpoints::DeleteJob.build(context)
95
- when :delete_webhook
96
- Aws::Amplify::Endpoints::DeleteWebhook.build(context)
97
- when :generate_access_logs
98
- Aws::Amplify::Endpoints::GenerateAccessLogs.build(context)
99
- when :get_app
100
- Aws::Amplify::Endpoints::GetApp.build(context)
101
- when :get_artifact_url
102
- Aws::Amplify::Endpoints::GetArtifactUrl.build(context)
103
- when :get_backend_environment
104
- Aws::Amplify::Endpoints::GetBackendEnvironment.build(context)
105
- when :get_branch
106
- Aws::Amplify::Endpoints::GetBranch.build(context)
107
- when :get_domain_association
108
- Aws::Amplify::Endpoints::GetDomainAssociation.build(context)
109
- when :get_job
110
- Aws::Amplify::Endpoints::GetJob.build(context)
111
- when :get_webhook
112
- Aws::Amplify::Endpoints::GetWebhook.build(context)
113
- when :list_apps
114
- Aws::Amplify::Endpoints::ListApps.build(context)
115
- when :list_artifacts
116
- Aws::Amplify::Endpoints::ListArtifacts.build(context)
117
- when :list_backend_environments
118
- Aws::Amplify::Endpoints::ListBackendEnvironments.build(context)
119
- when :list_branches
120
- Aws::Amplify::Endpoints::ListBranches.build(context)
121
- when :list_domain_associations
122
- Aws::Amplify::Endpoints::ListDomainAssociations.build(context)
123
- when :list_jobs
124
- Aws::Amplify::Endpoints::ListJobs.build(context)
125
- when :list_tags_for_resource
126
- Aws::Amplify::Endpoints::ListTagsForResource.build(context)
127
- when :list_webhooks
128
- Aws::Amplify::Endpoints::ListWebhooks.build(context)
129
- when :start_deployment
130
- Aws::Amplify::Endpoints::StartDeployment.build(context)
131
- when :start_job
132
- Aws::Amplify::Endpoints::StartJob.build(context)
133
- when :stop_job
134
- Aws::Amplify::Endpoints::StopJob.build(context)
135
- when :tag_resource
136
- Aws::Amplify::Endpoints::TagResource.build(context)
137
- when :untag_resource
138
- Aws::Amplify::Endpoints::UntagResource.build(context)
139
- when :update_app
140
- Aws::Amplify::Endpoints::UpdateApp.build(context)
141
- when :update_branch
142
- Aws::Amplify::Endpoints::UpdateBranch.build(context)
143
- when :update_domain_association
144
- Aws::Amplify::Endpoints::UpdateDomainAssociation.build(context)
145
- when :update_webhook
146
- Aws::Amplify::Endpoints::UpdateWebhook.build(context)
147
- end
148
- end
149
70
  end
150
71
 
151
72
  def add_handlers(handlers, _config)
@@ -1863,10 +1863,27 @@ module Aws::Amplify
1863
1863
  #
1864
1864
  # @!attribute [rw] job_type
1865
1865
  # The type for the job. If the value is `RELEASE`, the job was
1866
- # manually released from its source by using the `StartJob` API. If
1867
- # the value is `RETRY`, the job was manually retried using the
1866
+ # manually released from its source by using the `StartJob` API. This
1867
+ # value is available only for apps that are connected to a repository.
1868
+ #
1869
+ # If the value is `RETRY`, the job was manually retried using the
1868
1870
  # `StartJob` API. If the value is `WEB_HOOK`, the job was
1869
- # automatically triggered by webhooks.
1871
+ # automatically triggered by webhooks. If the value is `MANUAL`, the
1872
+ # job is for a manually deployed app. Manually deployed apps are not
1873
+ # connected to a Git repository.
1874
+ # @return [String]
1875
+ #
1876
+ # @!attribute [rw] source_url
1877
+ # The source URL for the files to deploy. The source URL can be either
1878
+ # an HTTP GET URL that is publicly accessible and downloads a single
1879
+ # .zip file, or an Amazon S3 bucket and prefix.
1880
+ # @return [String]
1881
+ #
1882
+ # @!attribute [rw] source_url_type
1883
+ # The type of source specified by the `sourceURL`. If the value is
1884
+ # `ZIP`, the source is a .zip file. If the value is `BUCKET_PREFIX`,
1885
+ # the source is an Amazon S3 bucket and prefix. If no value is
1886
+ # specified, the default is `ZIP`.
1870
1887
  # @return [String]
1871
1888
  #
1872
1889
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/JobSummary AWS API Documentation
@@ -1880,7 +1897,9 @@ module Aws::Amplify
1880
1897
  :start_time,
1881
1898
  :status,
1882
1899
  :end_time,
1883
- :job_type)
1900
+ :job_type,
1901
+ :source_url,
1902
+ :source_url_type)
1884
1903
  SENSITIVE = []
1885
1904
  include Aws::Structure
1886
1905
  end
@@ -2334,19 +2353,26 @@ module Aws::Amplify
2334
2353
  # @return [String]
2335
2354
  #
2336
2355
  # @!attribute [rw] branch_name
2337
- # The name of the branch to use for the job.
2356
+ # The name of the branch to use for the deployment job.
2338
2357
  # @return [String]
2339
2358
  #
2340
2359
  # @!attribute [rw] job_id
2341
- # The job ID for this deployment, generated by the create deployment
2342
- # request.
2360
+ # The job ID for this deployment that is generated by the
2361
+ # `CreateDeployment` request.
2343
2362
  # @return [String]
2344
2363
  #
2345
2364
  # @!attribute [rw] source_url
2346
- # The source URL for this deployment, used when calling start
2347
- # deployment without create deployment. The source URL can be any HTTP
2348
- # GET URL that is publicly accessible and downloads a single .zip
2349
- # file.
2365
+ # The source URL for the deployment that is used when calling
2366
+ # `StartDeployment` without `CreateDeployment`. The source URL can be
2367
+ # either an HTTP GET URL that is publicly accessible and downloads a
2368
+ # single .zip file, or an Amazon S3 bucket and prefix.
2369
+ # @return [String]
2370
+ #
2371
+ # @!attribute [rw] source_url_type
2372
+ # The type of source specified by the `sourceURL`. If the value is
2373
+ # `ZIP`, the source is a .zip file. If the value is `BUCKET_PREFIX`,
2374
+ # the source is an Amazon S3 bucket and prefix. If no value is
2375
+ # specified, the default is `ZIP`.
2350
2376
  # @return [String]
2351
2377
  #
2352
2378
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartDeploymentRequest AWS API Documentation
@@ -2355,7 +2381,8 @@ module Aws::Amplify
2355
2381
  :app_id,
2356
2382
  :branch_name,
2357
2383
  :job_id,
2358
- :source_url)
2384
+ :source_url,
2385
+ :source_url_type)
2359
2386
  SENSITIVE = []
2360
2387
  include Aws::Structure
2361
2388
  end
@@ -54,7 +54,7 @@ module Aws::Amplify
54
54
  autoload :EndpointProvider, 'aws-sdk-amplify/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-amplify/endpoints'
56
56
 
57
- GEM_VERSION = '1.73.0'
57
+ GEM_VERSION = '1.75.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -484,7 +484,8 @@ module Aws
484
484
  app_id: ::String,
485
485
  branch_name: ::String,
486
486
  ?job_id: ::String,
487
- ?source_url: ::String
487
+ ?source_url: ::String,
488
+ ?source_url_type: ("ZIP" | "BUCKET_PREFIX")
488
489
  ) -> _StartDeploymentResponseSuccess
489
490
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartDeploymentResponseSuccess
490
491
 
data/sig/types.rbs CHANGED
@@ -442,6 +442,8 @@ module Aws::Amplify
442
442
  attr_accessor status: ("PENDING" | "PROVISIONING" | "RUNNING" | "FAILED" | "SUCCEED" | "CANCELLING" | "CANCELLED")
443
443
  attr_accessor end_time: ::Time
444
444
  attr_accessor job_type: ("RELEASE" | "RETRY" | "MANUAL" | "WEB_HOOK")
445
+ attr_accessor source_url: ::String
446
+ attr_accessor source_url_type: ("ZIP" | "BUCKET_PREFIX")
445
447
  SENSITIVE: []
446
448
  end
447
449
 
@@ -578,6 +580,7 @@ module Aws::Amplify
578
580
  attr_accessor branch_name: ::String
579
581
  attr_accessor job_id: ::String
580
582
  attr_accessor source_url: ::String
583
+ attr_accessor source_url_type: ("ZIP" | "BUCKET_PREFIX")
581
584
  SENSITIVE: []
582
585
  end
583
586
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-amplify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.73.0
4
+ version: 1.75.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-24 00:00:00.000000000 Z
11
+ date: 2024-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.207.0
22
+ version: 3.210.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.207.0
32
+ version: 3.210.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement