aws-sdk-amplify 1.74.0 → 1.76.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ac30633c88d99d94f0d20733f7dcea2de19d0973fe66db573551ebc45c2686f
4
- data.tar.gz: c268d09e149eef051f3d6994d2d31a0eda446a2dd4076cf5bcfbb21833b44d2d
3
+ metadata.gz: dc2b810d62508d920dad60b08fec2549e50aedd53aa5752c0849b2cdfea40b1f
4
+ data.tar.gz: a20e569464b752fff368b199a3657621563b4db698432a1e5a96da8fc91fcc7b
5
5
  SHA512:
6
- metadata.gz: 5d8644ad0a5d320df955e97f3e0c673aa33cbb1925460ec466fe097873bc96441f24b3c437801584f2e9fa45e4779b8a16660fba7abb940ef2c4881fc094703e
7
- data.tar.gz: 75ee73b48ccffeb1e0391c6751be694f98d0e6ccf75334cf658a3cf37e06636d6610be8c9fcf5bd1d9a6720ba10c941717cd15bc2b54dd6d4ef0239bd8ca9e31
6
+ metadata.gz: a8e246a13fa89166dd0f126cb321f275d3a5d162701a43eb0c1e6b6559903bc1ea61aa4e32027365e908b84f3d281caa770e79150a0992549d682c737ab39ae9
7
+ data.tar.gz: a768a417e0fd4edd4620c74c6add267440d5d88fd21df8a34d4703c9cc7f032d455ca7b15a124e22b3bc8e2fec08a5bbc24d4b9c60df35b9fc26af3e307cc08a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.76.0 (2024-12-18)
5
+ ------------------
6
+
7
+ * Feature - Added WAF Configuration to Amplify Apps
8
+
9
+ 1.75.0 (2024-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.74.0 (2024-10-15)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.74.0
1
+ 1.76.0
@@ -677,6 +677,10 @@ module Aws::Amplify
677
677
  # resp.app.auto_branch_creation_config.pull_request_environment_name #=> String
678
678
  # resp.app.repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
679
679
  # resp.app.cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
680
+ # resp.app.webhook_create_time #=> Time
681
+ # resp.app.waf_configuration.web_acl_arn #=> String
682
+ # resp.app.waf_configuration.waf_status #=> String, one of "ASSOCIATING", "ASSOCIATION_FAILED", "ASSOCIATION_SUCCESS", "DISASSOCIATING", "DISASSOCIATION_FAILED"
683
+ # resp.app.waf_configuration.status_reason #=> String
680
684
  #
681
685
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateApp AWS API Documentation
682
686
  #
@@ -1130,6 +1134,10 @@ module Aws::Amplify
1130
1134
  # resp.app.auto_branch_creation_config.pull_request_environment_name #=> String
1131
1135
  # resp.app.repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
1132
1136
  # resp.app.cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
1137
+ # resp.app.webhook_create_time #=> Time
1138
+ # resp.app.waf_configuration.web_acl_arn #=> String
1139
+ # resp.app.waf_configuration.waf_status #=> String, one of "ASSOCIATING", "ASSOCIATION_FAILED", "ASSOCIATION_SUCCESS", "DISASSOCIATING", "DISASSOCIATION_FAILED"
1140
+ # resp.app.waf_configuration.status_reason #=> String
1133
1141
  #
1134
1142
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteApp AWS API Documentation
1135
1143
  #
@@ -1326,7 +1334,7 @@ module Aws::Amplify
1326
1334
  # resp.job_summary.commit_message #=> String
1327
1335
  # resp.job_summary.commit_time #=> Time
1328
1336
  # resp.job_summary.start_time #=> Time
1329
- # resp.job_summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
1337
+ # resp.job_summary.status #=> String, one of "CREATED", "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
1330
1338
  # resp.job_summary.end_time #=> Time
1331
1339
  # resp.job_summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
1332
1340
  # resp.job_summary.source_url #=> String
@@ -1480,6 +1488,10 @@ module Aws::Amplify
1480
1488
  # resp.app.auto_branch_creation_config.pull_request_environment_name #=> String
1481
1489
  # resp.app.repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
1482
1490
  # resp.app.cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
1491
+ # resp.app.webhook_create_time #=> Time
1492
+ # resp.app.waf_configuration.web_acl_arn #=> String
1493
+ # resp.app.waf_configuration.waf_status #=> String, one of "ASSOCIATING", "ASSOCIATION_FAILED", "ASSOCIATION_SUCCESS", "DISASSOCIATING", "DISASSOCIATION_FAILED"
1494
+ # resp.app.waf_configuration.status_reason #=> String
1483
1495
  #
1484
1496
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetApp AWS API Documentation
1485
1497
  #
@@ -1706,7 +1718,7 @@ module Aws::Amplify
1706
1718
  # resp.job.summary.commit_message #=> String
1707
1719
  # resp.job.summary.commit_time #=> Time
1708
1720
  # resp.job.summary.start_time #=> Time
1709
- # resp.job.summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
1721
+ # resp.job.summary.status #=> String, one of "CREATED", "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
1710
1722
  # resp.job.summary.end_time #=> Time
1711
1723
  # resp.job.summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
1712
1724
  # resp.job.summary.source_url #=> String
@@ -1714,7 +1726,7 @@ module Aws::Amplify
1714
1726
  # resp.job.steps #=> Array
1715
1727
  # resp.job.steps[0].step_name #=> String
1716
1728
  # resp.job.steps[0].start_time #=> Time
1717
- # resp.job.steps[0].status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
1729
+ # resp.job.steps[0].status #=> String, one of "CREATED", "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
1718
1730
  # resp.job.steps[0].end_time #=> Time
1719
1731
  # resp.job.steps[0].log_url #=> String
1720
1732
  # resp.job.steps[0].artifacts_url #=> String
@@ -1840,6 +1852,10 @@ module Aws::Amplify
1840
1852
  # resp.apps[0].auto_branch_creation_config.pull_request_environment_name #=> String
1841
1853
  # resp.apps[0].repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
1842
1854
  # resp.apps[0].cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
1855
+ # resp.apps[0].webhook_create_time #=> Time
1856
+ # resp.apps[0].waf_configuration.web_acl_arn #=> String
1857
+ # resp.apps[0].waf_configuration.waf_status #=> String, one of "ASSOCIATING", "ASSOCIATION_FAILED", "ASSOCIATION_SUCCESS", "DISASSOCIATING", "DISASSOCIATION_FAILED"
1858
+ # resp.apps[0].waf_configuration.status_reason #=> String
1843
1859
  # resp.next_token #=> String
1844
1860
  #
1845
1861
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListApps AWS API Documentation
@@ -2132,7 +2148,7 @@ module Aws::Amplify
2132
2148
  # resp.job_summaries[0].commit_message #=> String
2133
2149
  # resp.job_summaries[0].commit_time #=> Time
2134
2150
  # resp.job_summaries[0].start_time #=> Time
2135
- # resp.job_summaries[0].status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2151
+ # resp.job_summaries[0].status #=> String, one of "CREATED", "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2136
2152
  # resp.job_summaries[0].end_time #=> Time
2137
2153
  # resp.job_summaries[0].job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
2138
2154
  # resp.job_summaries[0].source_url #=> String
@@ -2276,7 +2292,7 @@ module Aws::Amplify
2276
2292
  # resp.job_summary.commit_message #=> String
2277
2293
  # resp.job_summary.commit_time #=> Time
2278
2294
  # resp.job_summary.start_time #=> Time
2279
- # resp.job_summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2295
+ # resp.job_summary.status #=> String, one of "CREATED", "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2280
2296
  # resp.job_summary.end_time #=> Time
2281
2297
  # resp.job_summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
2282
2298
  # resp.job_summary.source_url #=> String
@@ -2348,7 +2364,7 @@ module Aws::Amplify
2348
2364
  # resp.job_summary.commit_message #=> String
2349
2365
  # resp.job_summary.commit_time #=> Time
2350
2366
  # resp.job_summary.start_time #=> Time
2351
- # resp.job_summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2367
+ # resp.job_summary.status #=> String, one of "CREATED", "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2352
2368
  # resp.job_summary.end_time #=> Time
2353
2369
  # resp.job_summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
2354
2370
  # resp.job_summary.source_url #=> String
@@ -2394,7 +2410,7 @@ module Aws::Amplify
2394
2410
  # resp.job_summary.commit_message #=> String
2395
2411
  # resp.job_summary.commit_time #=> Time
2396
2412
  # resp.job_summary.start_time #=> Time
2397
- # resp.job_summary.status #=> String, one of "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2413
+ # resp.job_summary.status #=> String, one of "CREATED", "PENDING", "PROVISIONING", "RUNNING", "FAILED", "SUCCEED", "CANCELLING", "CANCELLED"
2398
2414
  # resp.job_summary.end_time #=> Time
2399
2415
  # resp.job_summary.job_type #=> String, one of "RELEASE", "RETRY", "MANUAL", "WEB_HOOK"
2400
2416
  # resp.job_summary.source_url #=> String
@@ -2677,6 +2693,10 @@ module Aws::Amplify
2677
2693
  # resp.app.auto_branch_creation_config.pull_request_environment_name #=> String
2678
2694
  # resp.app.repository_clone_method #=> String, one of "SSH", "TOKEN", "SIGV4"
2679
2695
  # resp.app.cache_config.type #=> String, one of "AMPLIFY_MANAGED", "AMPLIFY_MANAGED_NO_COOKIES"
2696
+ # resp.app.webhook_create_time #=> Time
2697
+ # resp.app.waf_configuration.web_acl_arn #=> String
2698
+ # resp.app.waf_configuration.waf_status #=> String, one of "ASSOCIATING", "ASSOCIATION_FAILED", "ASSOCIATION_SUCCESS", "DISASSOCIATING", "DISASSOCIATION_FAILED"
2699
+ # resp.app.waf_configuration.status_reason #=> String
2680
2700
  #
2681
2701
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateApp AWS API Documentation
2682
2702
  #
@@ -2974,7 +2994,7 @@ module Aws::Amplify
2974
2994
  tracer: tracer
2975
2995
  )
2976
2996
  context[:gem_name] = 'aws-sdk-amplify'
2977
- context[:gem_version] = '1.74.0'
2997
+ context[:gem_version] = '1.76.0'
2978
2998
  Seahorse::Client::Request.new(handlers, context)
2979
2999
  end
2980
3000
 
@@ -229,11 +229,15 @@ module Aws::Amplify
229
229
  UpdateWebhookResult = Shapes::StructureShape.new(name: 'UpdateWebhookResult')
230
230
  UploadUrl = Shapes::StringShape.new(name: 'UploadUrl')
231
231
  Verified = Shapes::BooleanShape.new(name: 'Verified')
232
+ WafConfiguration = Shapes::StructureShape.new(name: 'WafConfiguration')
233
+ WafStatus = Shapes::StringShape.new(name: 'WafStatus')
234
+ WebAclArn = Shapes::StringShape.new(name: 'WebAclArn')
232
235
  Webhook = Shapes::StructureShape.new(name: 'Webhook')
233
236
  WebhookArn = Shapes::StringShape.new(name: 'WebhookArn')
234
237
  WebhookId = Shapes::StringShape.new(name: 'WebhookId')
235
238
  WebhookUrl = Shapes::StringShape.new(name: 'WebhookUrl')
236
239
  Webhooks = Shapes::ListShape.new(name: 'Webhooks')
240
+ webhookCreateTime = Shapes::TimestampShape.new(name: 'webhookCreateTime')
237
241
 
238
242
  App.add_member(:app_id, Shapes::ShapeRef.new(shape: AppId, required: true, location_name: "appId"))
239
243
  App.add_member(:app_arn, Shapes::ShapeRef.new(shape: AppArn, required: true, location_name: "appArn"))
@@ -260,6 +264,8 @@ module Aws::Amplify
260
264
  App.add_member(:auto_branch_creation_config, Shapes::ShapeRef.new(shape: AutoBranchCreationConfig, location_name: "autoBranchCreationConfig"))
261
265
  App.add_member(:repository_clone_method, Shapes::ShapeRef.new(shape: RepositoryCloneMethod, location_name: "repositoryCloneMethod"))
262
266
  App.add_member(:cache_config, Shapes::ShapeRef.new(shape: CacheConfig, location_name: "cacheConfig"))
267
+ App.add_member(:webhook_create_time, Shapes::ShapeRef.new(shape: webhookCreateTime, location_name: "webhookCreateTime"))
268
+ App.add_member(:waf_configuration, Shapes::ShapeRef.new(shape: WafConfiguration, location_name: "wafConfiguration"))
263
269
  App.struct_class = Types::App
264
270
 
265
271
  Apps.member = Shapes::ShapeRef.new(shape: App)
@@ -831,6 +837,11 @@ module Aws::Amplify
831
837
  UpdateWebhookResult.add_member(:webhook, Shapes::ShapeRef.new(shape: Webhook, required: true, location_name: "webhook"))
832
838
  UpdateWebhookResult.struct_class = Types::UpdateWebhookResult
833
839
 
840
+ WafConfiguration.add_member(:web_acl_arn, Shapes::ShapeRef.new(shape: WebAclArn, location_name: "webAclArn"))
841
+ WafConfiguration.add_member(:waf_status, Shapes::ShapeRef.new(shape: WafStatus, location_name: "wafStatus"))
842
+ WafConfiguration.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
843
+ WafConfiguration.struct_class = Types::WafConfiguration
844
+
834
845
  Webhook.add_member(:webhook_arn, Shapes::ShapeRef.new(shape: WebhookArn, required: true, location_name: "webhookArn"))
835
846
  Webhook.add_member(:webhook_id, Shapes::ShapeRef.new(shape: WebhookId, required: true, location_name: "webhookId"))
836
847
  Webhook.add_member(:webhook_url, Shapes::ShapeRef.new(shape: WebhookUrl, required: true, location_name: "webhookUrl"))
@@ -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)
@@ -49,11 +49,11 @@ module Aws::Amplify
49
49
  # @return [String]
50
50
  #
51
51
  # @!attribute [rw] create_time
52
- # Creates a date and time for the Amplify app.
52
+ # A timestamp of when Amplify created the application.
53
53
  # @return [Time]
54
54
  #
55
55
  # @!attribute [rw] update_time
56
- # Updates the date and time for the Amplify app.
56
+ # A timestamp of when Amplify updated the application.
57
57
  # @return [Time]
58
58
  #
59
59
  # @!attribute [rw] iam_service_role_arn
@@ -146,6 +146,17 @@ module Aws::Amplify
146
146
  # `AMPLIFY_MANAGED` setting.
147
147
  # @return [Types::CacheConfig]
148
148
  #
149
+ # @!attribute [rw] webhook_create_time
150
+ # A timestamp of when Amplify created the webhook in your Git
151
+ # repository.
152
+ # @return [Time]
153
+ #
154
+ # @!attribute [rw] waf_configuration
155
+ # Describes the Firewall configuration for the Amplify app. Firewall
156
+ # support enables you to protect your hosted applications with a
157
+ # direct integration with WAF.
158
+ # @return [Types::WafConfiguration]
159
+ #
149
160
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/App AWS API Documentation
150
161
  #
151
162
  class App < Struct.new(
@@ -173,7 +184,9 @@ module Aws::Amplify
173
184
  :auto_branch_creation_patterns,
174
185
  :auto_branch_creation_config,
175
186
  :repository_clone_method,
176
- :cache_config)
187
+ :cache_config,
188
+ :webhook_create_time,
189
+ :waf_configuration)
177
190
  SENSITIVE = [:basic_auth_credentials, :build_spec]
178
191
  include Aws::Structure
179
192
  end
@@ -372,13 +385,11 @@ module Aws::Amplify
372
385
  # @return [Boolean]
373
386
  #
374
387
  # @!attribute [rw] create_time
375
- # The creation date and time for a branch that is part of an Amplify
376
- # app.
388
+ # A timestamp of when Amplify created the branch.
377
389
  # @return [Time]
378
390
  #
379
391
  # @!attribute [rw] update_time
380
- # The last updated date and time for a branch that is part of an
381
- # Amplify app.
392
+ # A timestamp for the last updated time for a branch.
382
393
  # @return [Time]
383
394
  #
384
395
  # @!attribute [rw] environment_variables
@@ -3089,6 +3100,40 @@ module Aws::Amplify
3089
3100
  include Aws::Structure
3090
3101
  end
3091
3102
 
3103
+ # Describes the Firewall configuration for a hosted Amplify application.
3104
+ # Firewall support enables you to protect your web applications with a
3105
+ # direct integration with WAF. For more information about using WAF
3106
+ # protections for an Amplify application, see [Firewall support for
3107
+ # hosted sites][1] in the *Amplify User Guide*.
3108
+ #
3109
+ #
3110
+ #
3111
+ # [1]: https://docs.aws.amazon.com/amplify/latest/userguide/WAF-integration.html
3112
+ #
3113
+ # @!attribute [rw] web_acl_arn
3114
+ # The Amazon Resource Name (ARN) for the web ACL associated with an
3115
+ # Amplify app.
3116
+ # @return [String]
3117
+ #
3118
+ # @!attribute [rw] waf_status
3119
+ # The status of the process to associate or disassociate a web ACL to
3120
+ # an Amplify app.
3121
+ # @return [String]
3122
+ #
3123
+ # @!attribute [rw] status_reason
3124
+ # The reason for the current status of the Firewall configuration.
3125
+ # @return [String]
3126
+ #
3127
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/WafConfiguration AWS API Documentation
3128
+ #
3129
+ class WafConfiguration < Struct.new(
3130
+ :web_acl_arn,
3131
+ :waf_status,
3132
+ :status_reason)
3133
+ SENSITIVE = []
3134
+ include Aws::Structure
3135
+ end
3136
+
3092
3137
  # Describes a webhook that connects repository events to an Amplify app.
3093
3138
  #
3094
3139
  # @!attribute [rw] webhook_arn
@@ -3112,11 +3157,13 @@ module Aws::Amplify
3112
3157
  # @return [String]
3113
3158
  #
3114
3159
  # @!attribute [rw] create_time
3115
- # The create date and time for a webhook.
3160
+ # A timestamp of when Amplify created the webhook in your Git
3161
+ # repository.
3116
3162
  # @return [Time]
3117
3163
  #
3118
3164
  # @!attribute [rw] update_time
3119
- # Updates the date and time for a webhook.
3165
+ # A timestamp of when Amplify updated the webhook in your Git
3166
+ # repository.
3120
3167
  # @return [Time]
3121
3168
  #
3122
3169
  # @see http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/Webhook AWS API Documentation
@@ -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.74.0'
57
+ GEM_VERSION = '1.76.0'
58
58
 
59
59
  end
60
60
 
data/sig/types.rbs CHANGED
@@ -34,6 +34,8 @@ module Aws::Amplify
34
34
  attr_accessor auto_branch_creation_config: Types::AutoBranchCreationConfig
35
35
  attr_accessor repository_clone_method: ("SSH" | "TOKEN" | "SIGV4")
36
36
  attr_accessor cache_config: Types::CacheConfig
37
+ attr_accessor webhook_create_time: ::Time
38
+ attr_accessor waf_configuration: Types::WafConfiguration
37
39
  SENSITIVE: [:basic_auth_credentials, :build_spec]
38
40
  end
39
41
 
@@ -439,7 +441,7 @@ module Aws::Amplify
439
441
  attr_accessor commit_message: ::String
440
442
  attr_accessor commit_time: ::Time
441
443
  attr_accessor start_time: ::Time
442
- attr_accessor status: ("PENDING" | "PROVISIONING" | "RUNNING" | "FAILED" | "SUCCEED" | "CANCELLING" | "CANCELLED")
444
+ attr_accessor status: ("CREATED" | "PENDING" | "PROVISIONING" | "RUNNING" | "FAILED" | "SUCCEED" | "CANCELLING" | "CANCELLED")
443
445
  attr_accessor end_time: ::Time
444
446
  attr_accessor job_type: ("RELEASE" | "RETRY" | "MANUAL" | "WEB_HOOK")
445
447
  attr_accessor source_url: ::String
@@ -609,7 +611,7 @@ module Aws::Amplify
609
611
  class Step
610
612
  attr_accessor step_name: ::String
611
613
  attr_accessor start_time: ::Time
612
- attr_accessor status: ("PENDING" | "PROVISIONING" | "RUNNING" | "FAILED" | "SUCCEED" | "CANCELLING" | "CANCELLED")
614
+ attr_accessor status: ("CREATED" | "PENDING" | "PROVISIONING" | "RUNNING" | "FAILED" | "SUCCEED" | "CANCELLING" | "CANCELLED")
613
615
  attr_accessor end_time: ::Time
614
616
  attr_accessor log_url: ::String
615
617
  attr_accessor artifacts_url: ::String
@@ -753,6 +755,13 @@ module Aws::Amplify
753
755
  SENSITIVE: []
754
756
  end
755
757
 
758
+ class WafConfiguration
759
+ attr_accessor web_acl_arn: ::String
760
+ attr_accessor waf_status: ("ASSOCIATING" | "ASSOCIATION_FAILED" | "ASSOCIATION_SUCCESS" | "DISASSOCIATING" | "DISASSOCIATION_FAILED")
761
+ attr_accessor status_reason: ::String
762
+ SENSITIVE: []
763
+ end
764
+
756
765
  class Webhook
757
766
  attr_accessor webhook_arn: ::String
758
767
  attr_accessor webhook_id: ::String
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.74.0
4
+ version: 1.76.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-10-15 00:00:00.000000000 Z
11
+ date: 2024-12-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