aws-sdk-amplifybackend 1.11.0 → 1.15.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: 75929ec757bf6a29aab65a2e82cb51538d8f7d6dbecc35edc6fe83352e864713
4
- data.tar.gz: e143a76222ab20853ebd865c61081850df50df9fa8a28b40262398794b793054
3
+ metadata.gz: 84cb6c35aaf91fa4b695d4f20b8e56ee4e463beb26414aee425c8bc52da1b3dd
4
+ data.tar.gz: 4944a99c9b3fcdd821d6076e3f5c3247e4e786b7c0bce25780c15c3b496d9a0f
5
5
  SHA512:
6
- metadata.gz: 5508761bc3908b1e248673eb029a81bf496e3a54cbbf0c1632aeef31c1f478b8b61a5c5e5648c1928db16bd6754e0744dac0f2b5a24ad4de602a08399598544b
7
- data.tar.gz: 4120818898d2f3205eeea5a4f36707b9a74125377498931f0c94c96a6d921b611787f0f0c24ba3b733ea8e2d96a4e2e457ba91fb3201250948503cebd63abedb
6
+ metadata.gz: ac2ec530063b5da8f33e3d870df56d98b973add76e7be35ac6e37a5b48fa1592ed67d0249757a3607ea23407ba91d9731156926f638ccbf6453fdf2fa2003967
7
+ data.tar.gz: e9c4f68b626c6e6e4f67a9409e1b9a72573c3972bc08e6d7b8f9e09b09a5bbffaec5fa60d2b203cc22f34ba3cf0ea0f4a4062897d261b235f45990203f58fb4c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.15.0 (2022-02-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.14.0 (2021-12-21)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.13.0 (2021-11-30)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.12.0 (2021-11-17)
20
+ ------------------
21
+
22
+ * Feature - New APIs to support the Amplify Storage category. Add and manage file storage in your Amplify app backend.
23
+
4
24
  1.11.0 (2021-11-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.11.0
1
+ 1.15.0
@@ -27,6 +27,8 @@ 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'
31
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
30
32
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
33
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
34
 
@@ -73,6 +75,8 @@ module Aws::AmplifyBackend
73
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
76
  add_plugin(Aws::Plugins::TransferEncoding)
75
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
79
+ add_plugin(Aws::Plugins::RecursionDetection)
76
80
  add_plugin(Aws::Plugins::SignatureV4)
77
81
  add_plugin(Aws::Plugins::Protocols::RestJson)
78
82
 
@@ -119,7 +123,9 @@ module Aws::AmplifyBackend
119
123
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
124
  # are very aggressive. Construct and pass an instance of
121
125
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
126
+ # enable retries and extended timeouts. Instance profile credential
127
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
+ # to true.
123
129
  #
124
130
  # @option options [required, String] :region
125
131
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +179,10 @@ module Aws::AmplifyBackend
173
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
180
  # a clock skew correction and retry requests with skewed client clocks.
175
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
176
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
187
  # Set to true to disable SDK automatically adding host prefix
178
188
  # to default service endpoint when available.
@@ -295,7 +305,7 @@ module Aws::AmplifyBackend
295
305
  # seconds to wait when opening a HTTP session before raising a
296
306
  # `Timeout::Error`.
297
307
  #
298
- # @option options [Integer] :http_read_timeout (60) The default
308
+ # @option options [Float] :http_read_timeout (60) The default
299
309
  # number of seconds to wait for response data. This value can
300
310
  # safely be set per-request on the session.
301
311
  #
@@ -311,6 +321,9 @@ module Aws::AmplifyBackend
311
321
  # disables this behaviour. This value can safely be set per
312
322
  # request on the session.
313
323
  #
324
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
325
+ # in seconds.
326
+ #
314
327
  # @option options [Boolean] :http_wire_trace (false) When `true`,
315
328
  # HTTP debug output will be sent to the `:logger`.
316
329
  #
@@ -657,6 +670,56 @@ module Aws::AmplifyBackend
657
670
  req.send_request(options)
658
671
  end
659
672
 
673
+ # Creates a backend storage resource.
674
+ #
675
+ # @option params [required, String] :app_id
676
+ #
677
+ # @option params [required, String] :backend_environment_name
678
+ #
679
+ # @option params [required, Types::CreateBackendStorageResourceConfig] :resource_config
680
+ # The resource configuration for creating backend storage.
681
+ #
682
+ # @option params [required, String] :resource_name
683
+ #
684
+ # @return [Types::CreateBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
685
+ #
686
+ # * {Types::CreateBackendStorageResponse#app_id #app_id} => String
687
+ # * {Types::CreateBackendStorageResponse#backend_environment_name #backend_environment_name} => String
688
+ # * {Types::CreateBackendStorageResponse#job_id #job_id} => String
689
+ # * {Types::CreateBackendStorageResponse#status #status} => String
690
+ #
691
+ # @example Request syntax with placeholder values
692
+ #
693
+ # resp = client.create_backend_storage({
694
+ # app_id: "__string", # required
695
+ # backend_environment_name: "__string", # required
696
+ # resource_config: { # required
697
+ # bucket_name: "__string",
698
+ # permissions: { # required
699
+ # authenticated: ["READ"], # required, accepts READ, CREATE_AND_UPDATE, DELETE
700
+ # un_authenticated: ["READ"], # accepts READ, CREATE_AND_UPDATE, DELETE
701
+ # },
702
+ # service_name: "S3", # required, accepts S3
703
+ # },
704
+ # resource_name: "__string", # required
705
+ # })
706
+ #
707
+ # @example Response structure
708
+ #
709
+ # resp.app_id #=> String
710
+ # resp.backend_environment_name #=> String
711
+ # resp.job_id #=> String
712
+ # resp.status #=> String
713
+ #
714
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendStorage AWS API Documentation
715
+ #
716
+ # @overload create_backend_storage(params = {})
717
+ # @param [Hash] params ({})
718
+ def create_backend_storage(params = {}, options = {})
719
+ req = build_request(:create_backend_storage, params)
720
+ req.send_request(options)
721
+ end
722
+
660
723
  # Generates a one-time challenge code to authenticate a user into your
661
724
  # Amplify Admin UI.
662
725
  #
@@ -857,6 +920,48 @@ module Aws::AmplifyBackend
857
920
  req.send_request(options)
858
921
  end
859
922
 
923
+ # Removes the specified backend storage resource.
924
+ #
925
+ # @option params [required, String] :app_id
926
+ #
927
+ # @option params [required, String] :backend_environment_name
928
+ #
929
+ # @option params [required, String] :resource_name
930
+ #
931
+ # @option params [required, String] :service_name
932
+ #
933
+ # @return [Types::DeleteBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
934
+ #
935
+ # * {Types::DeleteBackendStorageResponse#app_id #app_id} => String
936
+ # * {Types::DeleteBackendStorageResponse#backend_environment_name #backend_environment_name} => String
937
+ # * {Types::DeleteBackendStorageResponse#job_id #job_id} => String
938
+ # * {Types::DeleteBackendStorageResponse#status #status} => String
939
+ #
940
+ # @example Request syntax with placeholder values
941
+ #
942
+ # resp = client.delete_backend_storage({
943
+ # app_id: "__string", # required
944
+ # backend_environment_name: "__string", # required
945
+ # resource_name: "__string", # required
946
+ # service_name: "S3", # required, accepts S3
947
+ # })
948
+ #
949
+ # @example Response structure
950
+ #
951
+ # resp.app_id #=> String
952
+ # resp.backend_environment_name #=> String
953
+ # resp.job_id #=> String
954
+ # resp.status #=> String
955
+ #
956
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendStorage AWS API Documentation
957
+ #
958
+ # @overload delete_backend_storage(params = {})
959
+ # @param [Hash] params ({})
960
+ def delete_backend_storage(params = {}, options = {})
961
+ req = build_request(:delete_backend_storage, params)
962
+ req.send_request(options)
963
+ end
964
+
860
965
  # Deletes the challenge token based on the given appId and sessionId.
861
966
  #
862
967
  # @option params [required, String] :app_id
@@ -1235,6 +1340,51 @@ module Aws::AmplifyBackend
1235
1340
  req.send_request(options)
1236
1341
  end
1237
1342
 
1343
+ # Gets details for a backend storage resource.
1344
+ #
1345
+ # @option params [required, String] :app_id
1346
+ #
1347
+ # @option params [required, String] :backend_environment_name
1348
+ #
1349
+ # @option params [required, String] :resource_name
1350
+ #
1351
+ # @return [Types::GetBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1352
+ #
1353
+ # * {Types::GetBackendStorageResponse#app_id #app_id} => String
1354
+ # * {Types::GetBackendStorageResponse#backend_environment_name #backend_environment_name} => String
1355
+ # * {Types::GetBackendStorageResponse#resource_config #resource_config} => Types::GetBackendStorageResourceConfig
1356
+ # * {Types::GetBackendStorageResponse#resource_name #resource_name} => String
1357
+ #
1358
+ # @example Request syntax with placeholder values
1359
+ #
1360
+ # resp = client.get_backend_storage({
1361
+ # app_id: "__string", # required
1362
+ # backend_environment_name: "__string", # required
1363
+ # resource_name: "__string", # required
1364
+ # })
1365
+ #
1366
+ # @example Response structure
1367
+ #
1368
+ # resp.app_id #=> String
1369
+ # resp.backend_environment_name #=> String
1370
+ # resp.resource_config.bucket_name #=> String
1371
+ # resp.resource_config.imported #=> Boolean
1372
+ # resp.resource_config.permissions.authenticated #=> Array
1373
+ # resp.resource_config.permissions.authenticated[0] #=> String, one of "READ", "CREATE_AND_UPDATE", "DELETE"
1374
+ # resp.resource_config.permissions.un_authenticated #=> Array
1375
+ # resp.resource_config.permissions.un_authenticated[0] #=> String, one of "READ", "CREATE_AND_UPDATE", "DELETE"
1376
+ # resp.resource_config.service_name #=> String, one of "S3"
1377
+ # resp.resource_name #=> String
1378
+ #
1379
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendStorage AWS API Documentation
1380
+ #
1381
+ # @overload get_backend_storage(params = {})
1382
+ # @param [Hash] params ({})
1383
+ def get_backend_storage(params = {}, options = {})
1384
+ req = build_request(:get_backend_storage, params)
1385
+ req.send_request(options)
1386
+ end
1387
+
1238
1388
  # Gets the challenge token based on the given appId and sessionId.
1239
1389
  #
1240
1390
  # @option params [required, String] :app_id
@@ -1323,6 +1473,48 @@ module Aws::AmplifyBackend
1323
1473
  req.send_request(options)
1324
1474
  end
1325
1475
 
1476
+ # Imports an existing backend storage resource.
1477
+ #
1478
+ # @option params [required, String] :app_id
1479
+ #
1480
+ # @option params [required, String] :backend_environment_name
1481
+ #
1482
+ # @option params [String] :bucket_name
1483
+ #
1484
+ # @option params [required, String] :service_name
1485
+ #
1486
+ # @return [Types::ImportBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1487
+ #
1488
+ # * {Types::ImportBackendStorageResponse#app_id #app_id} => String
1489
+ # * {Types::ImportBackendStorageResponse#backend_environment_name #backend_environment_name} => String
1490
+ # * {Types::ImportBackendStorageResponse#job_id #job_id} => String
1491
+ # * {Types::ImportBackendStorageResponse#status #status} => String
1492
+ #
1493
+ # @example Request syntax with placeholder values
1494
+ #
1495
+ # resp = client.import_backend_storage({
1496
+ # app_id: "__string", # required
1497
+ # backend_environment_name: "__string", # required
1498
+ # bucket_name: "__string",
1499
+ # service_name: "S3", # required, accepts S3
1500
+ # })
1501
+ #
1502
+ # @example Response structure
1503
+ #
1504
+ # resp.app_id #=> String
1505
+ # resp.backend_environment_name #=> String
1506
+ # resp.job_id #=> String
1507
+ # resp.status #=> String
1508
+ #
1509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ImportBackendStorage AWS API Documentation
1510
+ #
1511
+ # @overload import_backend_storage(params = {})
1512
+ # @param [Hash] params ({})
1513
+ def import_backend_storage(params = {}, options = {})
1514
+ req = build_request(:import_backend_storage, params)
1515
+ req.send_request(options)
1516
+ end
1517
+
1326
1518
  # Lists the jobs for the backend of an Amplify app.
1327
1519
  #
1328
1520
  # @option params [required, String] :app_id
@@ -1380,6 +1572,37 @@ module Aws::AmplifyBackend
1380
1572
  req.send_request(options)
1381
1573
  end
1382
1574
 
1575
+ # The list of S3 buckets in your account.
1576
+ #
1577
+ # @option params [String] :next_token
1578
+ #
1579
+ # @return [Types::ListS3BucketsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1580
+ #
1581
+ # * {Types::ListS3BucketsResponse#buckets #buckets} => Array<Types::S3BucketInfo>
1582
+ # * {Types::ListS3BucketsResponse#next_token #next_token} => String
1583
+ #
1584
+ # @example Request syntax with placeholder values
1585
+ #
1586
+ # resp = client.list_s3_buckets({
1587
+ # next_token: "__string",
1588
+ # })
1589
+ #
1590
+ # @example Response structure
1591
+ #
1592
+ # resp.buckets #=> Array
1593
+ # resp.buckets[0].creation_date #=> String
1594
+ # resp.buckets[0].name #=> String
1595
+ # resp.next_token #=> String
1596
+ #
1597
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ListS3Buckets AWS API Documentation
1598
+ #
1599
+ # @overload list_s3_buckets(params = {})
1600
+ # @param [Hash] params ({})
1601
+ def list_s3_buckets(params = {}, options = {})
1602
+ req = build_request(:list_s3_buckets, params)
1603
+ req.send_request(options)
1604
+ end
1605
+
1383
1606
  # Removes all backend environments from your Amplify project.
1384
1607
  #
1385
1608
  # @option params [required, String] :app_id
@@ -1730,6 +1953,55 @@ module Aws::AmplifyBackend
1730
1953
  req.send_request(options)
1731
1954
  end
1732
1955
 
1956
+ # Updates an existing backend storage resource.
1957
+ #
1958
+ # @option params [required, String] :app_id
1959
+ #
1960
+ # @option params [required, String] :backend_environment_name
1961
+ #
1962
+ # @option params [required, Types::UpdateBackendStorageResourceConfig] :resource_config
1963
+ # The resource configuration for updating backend storage.
1964
+ #
1965
+ # @option params [required, String] :resource_name
1966
+ #
1967
+ # @return [Types::UpdateBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1968
+ #
1969
+ # * {Types::UpdateBackendStorageResponse#app_id #app_id} => String
1970
+ # * {Types::UpdateBackendStorageResponse#backend_environment_name #backend_environment_name} => String
1971
+ # * {Types::UpdateBackendStorageResponse#job_id #job_id} => String
1972
+ # * {Types::UpdateBackendStorageResponse#status #status} => String
1973
+ #
1974
+ # @example Request syntax with placeholder values
1975
+ #
1976
+ # resp = client.update_backend_storage({
1977
+ # app_id: "__string", # required
1978
+ # backend_environment_name: "__string", # required
1979
+ # resource_config: { # required
1980
+ # permissions: { # required
1981
+ # authenticated: ["READ"], # required, accepts READ, CREATE_AND_UPDATE, DELETE
1982
+ # un_authenticated: ["READ"], # accepts READ, CREATE_AND_UPDATE, DELETE
1983
+ # },
1984
+ # service_name: "S3", # required, accepts S3
1985
+ # },
1986
+ # resource_name: "__string", # required
1987
+ # })
1988
+ #
1989
+ # @example Response structure
1990
+ #
1991
+ # resp.app_id #=> String
1992
+ # resp.backend_environment_name #=> String
1993
+ # resp.job_id #=> String
1994
+ # resp.status #=> String
1995
+ #
1996
+ # @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendStorage AWS API Documentation
1997
+ #
1998
+ # @overload update_backend_storage(params = {})
1999
+ # @param [Hash] params ({})
2000
+ def update_backend_storage(params = {}, options = {})
2001
+ req = build_request(:update_backend_storage, params)
2002
+ req.send_request(options)
2003
+ end
2004
+
1733
2005
  # @!endgroup
1734
2006
 
1735
2007
  # @param params ({})
@@ -1743,7 +2015,7 @@ module Aws::AmplifyBackend
1743
2015
  params: params,
1744
2016
  config: config)
1745
2017
  context[:gem_name] = 'aws-sdk-amplifybackend'
1746
- context[:gem_version] = '1.11.0'
2018
+ context[:gem_version] = '1.15.0'
1747
2019
  Seahorse::Client::Request.new(handlers, context)
1748
2020
  end
1749
2021