aws-sdk-amplifybackend 1.10.0 → 1.14.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: 8484bcc2e6444c7415ac8cf33c0467f7e7ae74d1a6bb86f828720da88e334d09
4
- data.tar.gz: 234a32d856bf2c782d5aac238940a18e7a831243f6d91ae8c57515403121298a
3
+ metadata.gz: 540f615954233e5b56ab9695ce7d834616025206ac9f457640ffec6bb7a5ed61
4
+ data.tar.gz: 547acdd4325d4d864772c3c65f1ce1fb04e2c22892028b0c9990693078485330
5
5
  SHA512:
6
- metadata.gz: 409122f1c16f81ef20bec996d37cd169e58cf212f0a586a26c777166b57dece0e308888bf21f0a77493aa0f8303457d309420d2379c0e45b55696441e91f2bcc
7
- data.tar.gz: edc3266eed9798fcbadcaac3ada7d1a8a79fd627a097f33112112f8d91bf27285412b2f22787ea757e22059f282f0ab7577950311f9ec963d43cd4558e93bb41
6
+ metadata.gz: fad58ad92bb1163bd21e537cdbf81dda0ba316855e377d5d164bcd1bb843fecb62b88e5f42d2abe1e508b29188b0848d36801af57c6fd582d5d6ec1f7ec0141d
7
+ data.tar.gz: d10cffbca8b7e3c5bf29c1f5850d026e27b8adef190099ab8cefd4f406ff7f26011d367acd6a8bb81ffd9b580178b11dd70722c08c15439b769c4d6ea6a93316
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.14.0 (2021-12-21)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.13.0 (2021-11-30)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.12.0 (2021-11-17)
15
+ ------------------
16
+
17
+ * Feature - New APIs to support the Amplify Storage category. Add and manage file storage in your Amplify app backend.
18
+
19
+ 1.11.0 (2021-11-04)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.10.0 (2021-10-18)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.10.0
1
+ 1.14.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
30
31
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
32
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
33
 
@@ -73,6 +74,7 @@ module Aws::AmplifyBackend
73
74
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
75
  add_plugin(Aws::Plugins::TransferEncoding)
75
76
  add_plugin(Aws::Plugins::HttpChecksum)
77
+ add_plugin(Aws::Plugins::DefaultsMode)
76
78
  add_plugin(Aws::Plugins::SignatureV4)
77
79
  add_plugin(Aws::Plugins::Protocols::RestJson)
78
80
 
@@ -119,7 +121,9 @@ module Aws::AmplifyBackend
119
121
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
122
  # are very aggressive. Construct and pass an instance of
121
123
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
124
+ # enable retries and extended timeouts. Instance profile credential
125
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
126
+ # to true.
123
127
  #
124
128
  # @option options [required, String] :region
125
129
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +177,10 @@ module Aws::AmplifyBackend
173
177
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
178
  # a clock skew correction and retry requests with skewed client clocks.
175
179
  #
180
+ # @option options [String] :defaults_mode ("legacy")
181
+ # See {Aws::DefaultsModeConfiguration} for a list of the
182
+ # accepted modes and the configuration defaults that are included.
183
+ #
176
184
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
185
  # Set to true to disable SDK automatically adding host prefix
178
186
  # to default service endpoint when available.
@@ -275,6 +283,15 @@ module Aws::AmplifyBackend
275
283
  # ** Please note ** When response stubbing is enabled, no HTTP
276
284
  # requests are made, and retries are disabled.
277
285
  #
286
+ # @option options [Boolean] :use_dualstack_endpoint
287
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
288
+ # will be used if available.
289
+ #
290
+ # @option options [Boolean] :use_fips_endpoint
291
+ # When set to `true`, fips compatible endpoints will be used if available.
292
+ # When a `fips` region is used, the region is normalized and this config
293
+ # is set to `true`.
294
+ #
278
295
  # @option options [Boolean] :validate_params (true)
279
296
  # When `true`, request parameters are validated before
280
297
  # sending the request.
@@ -286,7 +303,7 @@ module Aws::AmplifyBackend
286
303
  # seconds to wait when opening a HTTP session before raising a
287
304
  # `Timeout::Error`.
288
305
  #
289
- # @option options [Integer] :http_read_timeout (60) The default
306
+ # @option options [Float] :http_read_timeout (60) The default
290
307
  # number of seconds to wait for response data. This value can
291
308
  # safely be set per-request on the session.
292
309
  #
@@ -302,6 +319,9 @@ module Aws::AmplifyBackend
302
319
  # disables this behaviour. This value can safely be set per
303
320
  # request on the session.
304
321
  #
322
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
323
+ # in seconds.
324
+ #
305
325
  # @option options [Boolean] :http_wire_trace (false) When `true`,
306
326
  # HTTP debug output will be sent to the `:logger`.
307
327
  #
@@ -648,6 +668,56 @@ module Aws::AmplifyBackend
648
668
  req.send_request(options)
649
669
  end
650
670
 
671
+ # Creates a backend storage resource.
672
+ #
673
+ # @option params [required, String] :app_id
674
+ #
675
+ # @option params [required, String] :backend_environment_name
676
+ #
677
+ # @option params [required, Types::CreateBackendStorageResourceConfig] :resource_config
678
+ # The resource configuration for creating backend storage.
679
+ #
680
+ # @option params [required, String] :resource_name
681
+ #
682
+ # @return [Types::CreateBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
683
+ #
684
+ # * {Types::CreateBackendStorageResponse#app_id #app_id} => String
685
+ # * {Types::CreateBackendStorageResponse#backend_environment_name #backend_environment_name} => String
686
+ # * {Types::CreateBackendStorageResponse#job_id #job_id} => String
687
+ # * {Types::CreateBackendStorageResponse#status #status} => String
688
+ #
689
+ # @example Request syntax with placeholder values
690
+ #
691
+ # resp = client.create_backend_storage({
692
+ # app_id: "__string", # required
693
+ # backend_environment_name: "__string", # required
694
+ # resource_config: { # required
695
+ # bucket_name: "__string",
696
+ # permissions: { # required
697
+ # authenticated: ["READ"], # required, accepts READ, CREATE_AND_UPDATE, DELETE
698
+ # un_authenticated: ["READ"], # accepts READ, CREATE_AND_UPDATE, DELETE
699
+ # },
700
+ # service_name: "S3", # required, accepts S3
701
+ # },
702
+ # resource_name: "__string", # required
703
+ # })
704
+ #
705
+ # @example Response structure
706
+ #
707
+ # resp.app_id #=> String
708
+ # resp.backend_environment_name #=> String
709
+ # resp.job_id #=> String
710
+ # resp.status #=> String
711
+ #
712
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendStorage AWS API Documentation
713
+ #
714
+ # @overload create_backend_storage(params = {})
715
+ # @param [Hash] params ({})
716
+ def create_backend_storage(params = {}, options = {})
717
+ req = build_request(:create_backend_storage, params)
718
+ req.send_request(options)
719
+ end
720
+
651
721
  # Generates a one-time challenge code to authenticate a user into your
652
722
  # Amplify Admin UI.
653
723
  #
@@ -848,6 +918,48 @@ module Aws::AmplifyBackend
848
918
  req.send_request(options)
849
919
  end
850
920
 
921
+ # Removes the specified backend storage resource.
922
+ #
923
+ # @option params [required, String] :app_id
924
+ #
925
+ # @option params [required, String] :backend_environment_name
926
+ #
927
+ # @option params [required, String] :resource_name
928
+ #
929
+ # @option params [required, String] :service_name
930
+ #
931
+ # @return [Types::DeleteBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
932
+ #
933
+ # * {Types::DeleteBackendStorageResponse#app_id #app_id} => String
934
+ # * {Types::DeleteBackendStorageResponse#backend_environment_name #backend_environment_name} => String
935
+ # * {Types::DeleteBackendStorageResponse#job_id #job_id} => String
936
+ # * {Types::DeleteBackendStorageResponse#status #status} => String
937
+ #
938
+ # @example Request syntax with placeholder values
939
+ #
940
+ # resp = client.delete_backend_storage({
941
+ # app_id: "__string", # required
942
+ # backend_environment_name: "__string", # required
943
+ # resource_name: "__string", # required
944
+ # service_name: "S3", # required, accepts S3
945
+ # })
946
+ #
947
+ # @example Response structure
948
+ #
949
+ # resp.app_id #=> String
950
+ # resp.backend_environment_name #=> String
951
+ # resp.job_id #=> String
952
+ # resp.status #=> String
953
+ #
954
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendStorage AWS API Documentation
955
+ #
956
+ # @overload delete_backend_storage(params = {})
957
+ # @param [Hash] params ({})
958
+ def delete_backend_storage(params = {}, options = {})
959
+ req = build_request(:delete_backend_storage, params)
960
+ req.send_request(options)
961
+ end
962
+
851
963
  # Deletes the challenge token based on the given appId and sessionId.
852
964
  #
853
965
  # @option params [required, String] :app_id
@@ -1226,6 +1338,51 @@ module Aws::AmplifyBackend
1226
1338
  req.send_request(options)
1227
1339
  end
1228
1340
 
1341
+ # Gets details for a backend storage resource.
1342
+ #
1343
+ # @option params [required, String] :app_id
1344
+ #
1345
+ # @option params [required, String] :backend_environment_name
1346
+ #
1347
+ # @option params [required, String] :resource_name
1348
+ #
1349
+ # @return [Types::GetBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1350
+ #
1351
+ # * {Types::GetBackendStorageResponse#app_id #app_id} => String
1352
+ # * {Types::GetBackendStorageResponse#backend_environment_name #backend_environment_name} => String
1353
+ # * {Types::GetBackendStorageResponse#resource_config #resource_config} => Types::GetBackendStorageResourceConfig
1354
+ # * {Types::GetBackendStorageResponse#resource_name #resource_name} => String
1355
+ #
1356
+ # @example Request syntax with placeholder values
1357
+ #
1358
+ # resp = client.get_backend_storage({
1359
+ # app_id: "__string", # required
1360
+ # backend_environment_name: "__string", # required
1361
+ # resource_name: "__string", # required
1362
+ # })
1363
+ #
1364
+ # @example Response structure
1365
+ #
1366
+ # resp.app_id #=> String
1367
+ # resp.backend_environment_name #=> String
1368
+ # resp.resource_config.bucket_name #=> String
1369
+ # resp.resource_config.imported #=> Boolean
1370
+ # resp.resource_config.permissions.authenticated #=> Array
1371
+ # resp.resource_config.permissions.authenticated[0] #=> String, one of "READ", "CREATE_AND_UPDATE", "DELETE"
1372
+ # resp.resource_config.permissions.un_authenticated #=> Array
1373
+ # resp.resource_config.permissions.un_authenticated[0] #=> String, one of "READ", "CREATE_AND_UPDATE", "DELETE"
1374
+ # resp.resource_config.service_name #=> String, one of "S3"
1375
+ # resp.resource_name #=> String
1376
+ #
1377
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendStorage AWS API Documentation
1378
+ #
1379
+ # @overload get_backend_storage(params = {})
1380
+ # @param [Hash] params ({})
1381
+ def get_backend_storage(params = {}, options = {})
1382
+ req = build_request(:get_backend_storage, params)
1383
+ req.send_request(options)
1384
+ end
1385
+
1229
1386
  # Gets the challenge token based on the given appId and sessionId.
1230
1387
  #
1231
1388
  # @option params [required, String] :app_id
@@ -1314,6 +1471,48 @@ module Aws::AmplifyBackend
1314
1471
  req.send_request(options)
1315
1472
  end
1316
1473
 
1474
+ # Imports an existing backend storage resource.
1475
+ #
1476
+ # @option params [required, String] :app_id
1477
+ #
1478
+ # @option params [required, String] :backend_environment_name
1479
+ #
1480
+ # @option params [String] :bucket_name
1481
+ #
1482
+ # @option params [required, String] :service_name
1483
+ #
1484
+ # @return [Types::ImportBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1485
+ #
1486
+ # * {Types::ImportBackendStorageResponse#app_id #app_id} => String
1487
+ # * {Types::ImportBackendStorageResponse#backend_environment_name #backend_environment_name} => String
1488
+ # * {Types::ImportBackendStorageResponse#job_id #job_id} => String
1489
+ # * {Types::ImportBackendStorageResponse#status #status} => String
1490
+ #
1491
+ # @example Request syntax with placeholder values
1492
+ #
1493
+ # resp = client.import_backend_storage({
1494
+ # app_id: "__string", # required
1495
+ # backend_environment_name: "__string", # required
1496
+ # bucket_name: "__string",
1497
+ # service_name: "S3", # required, accepts S3
1498
+ # })
1499
+ #
1500
+ # @example Response structure
1501
+ #
1502
+ # resp.app_id #=> String
1503
+ # resp.backend_environment_name #=> String
1504
+ # resp.job_id #=> String
1505
+ # resp.status #=> String
1506
+ #
1507
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ImportBackendStorage AWS API Documentation
1508
+ #
1509
+ # @overload import_backend_storage(params = {})
1510
+ # @param [Hash] params ({})
1511
+ def import_backend_storage(params = {}, options = {})
1512
+ req = build_request(:import_backend_storage, params)
1513
+ req.send_request(options)
1514
+ end
1515
+
1317
1516
  # Lists the jobs for the backend of an Amplify app.
1318
1517
  #
1319
1518
  # @option params [required, String] :app_id
@@ -1371,6 +1570,37 @@ module Aws::AmplifyBackend
1371
1570
  req.send_request(options)
1372
1571
  end
1373
1572
 
1573
+ # The list of S3 buckets in your account.
1574
+ #
1575
+ # @option params [String] :next_token
1576
+ #
1577
+ # @return [Types::ListS3BucketsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1578
+ #
1579
+ # * {Types::ListS3BucketsResponse#buckets #buckets} => Array<Types::S3BucketInfo>
1580
+ # * {Types::ListS3BucketsResponse#next_token #next_token} => String
1581
+ #
1582
+ # @example Request syntax with placeholder values
1583
+ #
1584
+ # resp = client.list_s3_buckets({
1585
+ # next_token: "__string",
1586
+ # })
1587
+ #
1588
+ # @example Response structure
1589
+ #
1590
+ # resp.buckets #=> Array
1591
+ # resp.buckets[0].creation_date #=> String
1592
+ # resp.buckets[0].name #=> String
1593
+ # resp.next_token #=> String
1594
+ #
1595
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ListS3Buckets AWS API Documentation
1596
+ #
1597
+ # @overload list_s3_buckets(params = {})
1598
+ # @param [Hash] params ({})
1599
+ def list_s3_buckets(params = {}, options = {})
1600
+ req = build_request(:list_s3_buckets, params)
1601
+ req.send_request(options)
1602
+ end
1603
+
1374
1604
  # Removes all backend environments from your Amplify project.
1375
1605
  #
1376
1606
  # @option params [required, String] :app_id
@@ -1721,6 +1951,55 @@ module Aws::AmplifyBackend
1721
1951
  req.send_request(options)
1722
1952
  end
1723
1953
 
1954
+ # Updates an existing backend storage resource.
1955
+ #
1956
+ # @option params [required, String] :app_id
1957
+ #
1958
+ # @option params [required, String] :backend_environment_name
1959
+ #
1960
+ # @option params [required, Types::UpdateBackendStorageResourceConfig] :resource_config
1961
+ # The resource configuration for updating backend storage.
1962
+ #
1963
+ # @option params [required, String] :resource_name
1964
+ #
1965
+ # @return [Types::UpdateBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1966
+ #
1967
+ # * {Types::UpdateBackendStorageResponse#app_id #app_id} => String
1968
+ # * {Types::UpdateBackendStorageResponse#backend_environment_name #backend_environment_name} => String
1969
+ # * {Types::UpdateBackendStorageResponse#job_id #job_id} => String
1970
+ # * {Types::UpdateBackendStorageResponse#status #status} => String
1971
+ #
1972
+ # @example Request syntax with placeholder values
1973
+ #
1974
+ # resp = client.update_backend_storage({
1975
+ # app_id: "__string", # required
1976
+ # backend_environment_name: "__string", # required
1977
+ # resource_config: { # required
1978
+ # permissions: { # required
1979
+ # authenticated: ["READ"], # required, accepts READ, CREATE_AND_UPDATE, DELETE
1980
+ # un_authenticated: ["READ"], # accepts READ, CREATE_AND_UPDATE, DELETE
1981
+ # },
1982
+ # service_name: "S3", # required, accepts S3
1983
+ # },
1984
+ # resource_name: "__string", # required
1985
+ # })
1986
+ #
1987
+ # @example Response structure
1988
+ #
1989
+ # resp.app_id #=> String
1990
+ # resp.backend_environment_name #=> String
1991
+ # resp.job_id #=> String
1992
+ # resp.status #=> String
1993
+ #
1994
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendStorage AWS API Documentation
1995
+ #
1996
+ # @overload update_backend_storage(params = {})
1997
+ # @param [Hash] params ({})
1998
+ def update_backend_storage(params = {}, options = {})
1999
+ req = build_request(:update_backend_storage, params)
2000
+ req.send_request(options)
2001
+ end
2002
+
1724
2003
  # @!endgroup
1725
2004
 
1726
2005
  # @param params ({})
@@ -1734,7 +2013,7 @@ module Aws::AmplifyBackend
1734
2013
  params: params,
1735
2014
  config: config)
1736
2015
  context[:gem_name] = 'aws-sdk-amplifybackend'
1737
- context[:gem_version] = '1.10.0'
2016
+ context[:gem_version] = '1.14.0'
1738
2017
  Seahorse::Client::Request.new(handlers, context)
1739
2018
  end
1740
2019