aws-sdk-amplifybackend 1.9.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-amplifybackend/client.rb +272 -2
- data/lib/aws-sdk-amplifybackend/client_api.rb +238 -0
- data/lib/aws-sdk-amplifybackend/types.rb +655 -1
- data/lib/aws-sdk-amplifybackend.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e1f9a77454bddb0d86efeda667f7b5f5b589c3c474081affb8b8eb9a976973c
|
4
|
+
data.tar.gz: cb72129085b7b49f9020e0c127042c5c35f8f25c9d64aedf47898e24254dc7bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a5675e1845c45b9f7af74f2327f46c28328020e6e5206a3d8610a668afa687349e6a10d45be461cd1cb786440480088384a8aa6a4d32fcbf382c0209d22b85c
|
7
|
+
data.tar.gz: 3abde07b5af1873cb69a7d206a7fb5dbd21767a9a32e2b3d121053954bcd00a9c90e134568cbd37c0f370705a4125ac4e62abd89d1283b39369d717d63498619
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.13.0 (2021-11-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.12.0 (2021-11-17)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - New APIs to support the Amplify Storage category. Add and manage file storage in your Amplify app backend.
|
13
|
+
|
14
|
+
1.11.0 (2021-11-04)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.10.0 (2021-10-18)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.9.0 (2021-10-06)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.13.0
|
@@ -119,7 +119,9 @@ module Aws::AmplifyBackend
|
|
119
119
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
120
|
# are very aggressive. Construct and pass an instance of
|
121
121
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
122
|
+
# enable retries and extended timeouts. Instance profile credential
|
123
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
124
|
+
# to true.
|
123
125
|
#
|
124
126
|
# @option options [required, String] :region
|
125
127
|
# The AWS region to connect to. The configured `:region` is
|
@@ -275,6 +277,15 @@ module Aws::AmplifyBackend
|
|
275
277
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
276
278
|
# requests are made, and retries are disabled.
|
277
279
|
#
|
280
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
281
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
282
|
+
# will be used if available.
|
283
|
+
#
|
284
|
+
# @option options [Boolean] :use_fips_endpoint
|
285
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
286
|
+
# When a `fips` region is used, the region is normalized and this config
|
287
|
+
# is set to `true`.
|
288
|
+
#
|
278
289
|
# @option options [Boolean] :validate_params (true)
|
279
290
|
# When `true`, request parameters are validated before
|
280
291
|
# sending the request.
|
@@ -648,6 +659,56 @@ module Aws::AmplifyBackend
|
|
648
659
|
req.send_request(options)
|
649
660
|
end
|
650
661
|
|
662
|
+
# Creates a backend storage resource.
|
663
|
+
#
|
664
|
+
# @option params [required, String] :app_id
|
665
|
+
#
|
666
|
+
# @option params [required, String] :backend_environment_name
|
667
|
+
#
|
668
|
+
# @option params [required, Types::CreateBackendStorageResourceConfig] :resource_config
|
669
|
+
# The resource configuration for creating backend storage.
|
670
|
+
#
|
671
|
+
# @option params [required, String] :resource_name
|
672
|
+
#
|
673
|
+
# @return [Types::CreateBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
674
|
+
#
|
675
|
+
# * {Types::CreateBackendStorageResponse#app_id #app_id} => String
|
676
|
+
# * {Types::CreateBackendStorageResponse#backend_environment_name #backend_environment_name} => String
|
677
|
+
# * {Types::CreateBackendStorageResponse#job_id #job_id} => String
|
678
|
+
# * {Types::CreateBackendStorageResponse#status #status} => String
|
679
|
+
#
|
680
|
+
# @example Request syntax with placeholder values
|
681
|
+
#
|
682
|
+
# resp = client.create_backend_storage({
|
683
|
+
# app_id: "__string", # required
|
684
|
+
# backend_environment_name: "__string", # required
|
685
|
+
# resource_config: { # required
|
686
|
+
# bucket_name: "__string",
|
687
|
+
# permissions: { # required
|
688
|
+
# authenticated: ["READ"], # required, accepts READ, CREATE_AND_UPDATE, DELETE
|
689
|
+
# un_authenticated: ["READ"], # accepts READ, CREATE_AND_UPDATE, DELETE
|
690
|
+
# },
|
691
|
+
# service_name: "S3", # required, accepts S3
|
692
|
+
# },
|
693
|
+
# resource_name: "__string", # required
|
694
|
+
# })
|
695
|
+
#
|
696
|
+
# @example Response structure
|
697
|
+
#
|
698
|
+
# resp.app_id #=> String
|
699
|
+
# resp.backend_environment_name #=> String
|
700
|
+
# resp.job_id #=> String
|
701
|
+
# resp.status #=> String
|
702
|
+
#
|
703
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendStorage AWS API Documentation
|
704
|
+
#
|
705
|
+
# @overload create_backend_storage(params = {})
|
706
|
+
# @param [Hash] params ({})
|
707
|
+
def create_backend_storage(params = {}, options = {})
|
708
|
+
req = build_request(:create_backend_storage, params)
|
709
|
+
req.send_request(options)
|
710
|
+
end
|
711
|
+
|
651
712
|
# Generates a one-time challenge code to authenticate a user into your
|
652
713
|
# Amplify Admin UI.
|
653
714
|
#
|
@@ -848,6 +909,48 @@ module Aws::AmplifyBackend
|
|
848
909
|
req.send_request(options)
|
849
910
|
end
|
850
911
|
|
912
|
+
# Removes the specified backend storage resource.
|
913
|
+
#
|
914
|
+
# @option params [required, String] :app_id
|
915
|
+
#
|
916
|
+
# @option params [required, String] :backend_environment_name
|
917
|
+
#
|
918
|
+
# @option params [required, String] :resource_name
|
919
|
+
#
|
920
|
+
# @option params [required, String] :service_name
|
921
|
+
#
|
922
|
+
# @return [Types::DeleteBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
923
|
+
#
|
924
|
+
# * {Types::DeleteBackendStorageResponse#app_id #app_id} => String
|
925
|
+
# * {Types::DeleteBackendStorageResponse#backend_environment_name #backend_environment_name} => String
|
926
|
+
# * {Types::DeleteBackendStorageResponse#job_id #job_id} => String
|
927
|
+
# * {Types::DeleteBackendStorageResponse#status #status} => String
|
928
|
+
#
|
929
|
+
# @example Request syntax with placeholder values
|
930
|
+
#
|
931
|
+
# resp = client.delete_backend_storage({
|
932
|
+
# app_id: "__string", # required
|
933
|
+
# backend_environment_name: "__string", # required
|
934
|
+
# resource_name: "__string", # required
|
935
|
+
# service_name: "S3", # required, accepts S3
|
936
|
+
# })
|
937
|
+
#
|
938
|
+
# @example Response structure
|
939
|
+
#
|
940
|
+
# resp.app_id #=> String
|
941
|
+
# resp.backend_environment_name #=> String
|
942
|
+
# resp.job_id #=> String
|
943
|
+
# resp.status #=> String
|
944
|
+
#
|
945
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendStorage AWS API Documentation
|
946
|
+
#
|
947
|
+
# @overload delete_backend_storage(params = {})
|
948
|
+
# @param [Hash] params ({})
|
949
|
+
def delete_backend_storage(params = {}, options = {})
|
950
|
+
req = build_request(:delete_backend_storage, params)
|
951
|
+
req.send_request(options)
|
952
|
+
end
|
953
|
+
|
851
954
|
# Deletes the challenge token based on the given appId and sessionId.
|
852
955
|
#
|
853
956
|
# @option params [required, String] :app_id
|
@@ -1226,6 +1329,51 @@ module Aws::AmplifyBackend
|
|
1226
1329
|
req.send_request(options)
|
1227
1330
|
end
|
1228
1331
|
|
1332
|
+
# Gets details for a backend storage resource.
|
1333
|
+
#
|
1334
|
+
# @option params [required, String] :app_id
|
1335
|
+
#
|
1336
|
+
# @option params [required, String] :backend_environment_name
|
1337
|
+
#
|
1338
|
+
# @option params [required, String] :resource_name
|
1339
|
+
#
|
1340
|
+
# @return [Types::GetBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1341
|
+
#
|
1342
|
+
# * {Types::GetBackendStorageResponse#app_id #app_id} => String
|
1343
|
+
# * {Types::GetBackendStorageResponse#backend_environment_name #backend_environment_name} => String
|
1344
|
+
# * {Types::GetBackendStorageResponse#resource_config #resource_config} => Types::GetBackendStorageResourceConfig
|
1345
|
+
# * {Types::GetBackendStorageResponse#resource_name #resource_name} => String
|
1346
|
+
#
|
1347
|
+
# @example Request syntax with placeholder values
|
1348
|
+
#
|
1349
|
+
# resp = client.get_backend_storage({
|
1350
|
+
# app_id: "__string", # required
|
1351
|
+
# backend_environment_name: "__string", # required
|
1352
|
+
# resource_name: "__string", # required
|
1353
|
+
# })
|
1354
|
+
#
|
1355
|
+
# @example Response structure
|
1356
|
+
#
|
1357
|
+
# resp.app_id #=> String
|
1358
|
+
# resp.backend_environment_name #=> String
|
1359
|
+
# resp.resource_config.bucket_name #=> String
|
1360
|
+
# resp.resource_config.imported #=> Boolean
|
1361
|
+
# resp.resource_config.permissions.authenticated #=> Array
|
1362
|
+
# resp.resource_config.permissions.authenticated[0] #=> String, one of "READ", "CREATE_AND_UPDATE", "DELETE"
|
1363
|
+
# resp.resource_config.permissions.un_authenticated #=> Array
|
1364
|
+
# resp.resource_config.permissions.un_authenticated[0] #=> String, one of "READ", "CREATE_AND_UPDATE", "DELETE"
|
1365
|
+
# resp.resource_config.service_name #=> String, one of "S3"
|
1366
|
+
# resp.resource_name #=> String
|
1367
|
+
#
|
1368
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendStorage AWS API Documentation
|
1369
|
+
#
|
1370
|
+
# @overload get_backend_storage(params = {})
|
1371
|
+
# @param [Hash] params ({})
|
1372
|
+
def get_backend_storage(params = {}, options = {})
|
1373
|
+
req = build_request(:get_backend_storage, params)
|
1374
|
+
req.send_request(options)
|
1375
|
+
end
|
1376
|
+
|
1229
1377
|
# Gets the challenge token based on the given appId and sessionId.
|
1230
1378
|
#
|
1231
1379
|
# @option params [required, String] :app_id
|
@@ -1314,6 +1462,48 @@ module Aws::AmplifyBackend
|
|
1314
1462
|
req.send_request(options)
|
1315
1463
|
end
|
1316
1464
|
|
1465
|
+
# Imports an existing backend storage resource.
|
1466
|
+
#
|
1467
|
+
# @option params [required, String] :app_id
|
1468
|
+
#
|
1469
|
+
# @option params [required, String] :backend_environment_name
|
1470
|
+
#
|
1471
|
+
# @option params [String] :bucket_name
|
1472
|
+
#
|
1473
|
+
# @option params [required, String] :service_name
|
1474
|
+
#
|
1475
|
+
# @return [Types::ImportBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1476
|
+
#
|
1477
|
+
# * {Types::ImportBackendStorageResponse#app_id #app_id} => String
|
1478
|
+
# * {Types::ImportBackendStorageResponse#backend_environment_name #backend_environment_name} => String
|
1479
|
+
# * {Types::ImportBackendStorageResponse#job_id #job_id} => String
|
1480
|
+
# * {Types::ImportBackendStorageResponse#status #status} => String
|
1481
|
+
#
|
1482
|
+
# @example Request syntax with placeholder values
|
1483
|
+
#
|
1484
|
+
# resp = client.import_backend_storage({
|
1485
|
+
# app_id: "__string", # required
|
1486
|
+
# backend_environment_name: "__string", # required
|
1487
|
+
# bucket_name: "__string",
|
1488
|
+
# service_name: "S3", # required, accepts S3
|
1489
|
+
# })
|
1490
|
+
#
|
1491
|
+
# @example Response structure
|
1492
|
+
#
|
1493
|
+
# resp.app_id #=> String
|
1494
|
+
# resp.backend_environment_name #=> String
|
1495
|
+
# resp.job_id #=> String
|
1496
|
+
# resp.status #=> String
|
1497
|
+
#
|
1498
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ImportBackendStorage AWS API Documentation
|
1499
|
+
#
|
1500
|
+
# @overload import_backend_storage(params = {})
|
1501
|
+
# @param [Hash] params ({})
|
1502
|
+
def import_backend_storage(params = {}, options = {})
|
1503
|
+
req = build_request(:import_backend_storage, params)
|
1504
|
+
req.send_request(options)
|
1505
|
+
end
|
1506
|
+
|
1317
1507
|
# Lists the jobs for the backend of an Amplify app.
|
1318
1508
|
#
|
1319
1509
|
# @option params [required, String] :app_id
|
@@ -1371,6 +1561,37 @@ module Aws::AmplifyBackend
|
|
1371
1561
|
req.send_request(options)
|
1372
1562
|
end
|
1373
1563
|
|
1564
|
+
# The list of S3 buckets in your account.
|
1565
|
+
#
|
1566
|
+
# @option params [String] :next_token
|
1567
|
+
#
|
1568
|
+
# @return [Types::ListS3BucketsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1569
|
+
#
|
1570
|
+
# * {Types::ListS3BucketsResponse#buckets #buckets} => Array<Types::S3BucketInfo>
|
1571
|
+
# * {Types::ListS3BucketsResponse#next_token #next_token} => String
|
1572
|
+
#
|
1573
|
+
# @example Request syntax with placeholder values
|
1574
|
+
#
|
1575
|
+
# resp = client.list_s3_buckets({
|
1576
|
+
# next_token: "__string",
|
1577
|
+
# })
|
1578
|
+
#
|
1579
|
+
# @example Response structure
|
1580
|
+
#
|
1581
|
+
# resp.buckets #=> Array
|
1582
|
+
# resp.buckets[0].creation_date #=> String
|
1583
|
+
# resp.buckets[0].name #=> String
|
1584
|
+
# resp.next_token #=> String
|
1585
|
+
#
|
1586
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ListS3Buckets AWS API Documentation
|
1587
|
+
#
|
1588
|
+
# @overload list_s3_buckets(params = {})
|
1589
|
+
# @param [Hash] params ({})
|
1590
|
+
def list_s3_buckets(params = {}, options = {})
|
1591
|
+
req = build_request(:list_s3_buckets, params)
|
1592
|
+
req.send_request(options)
|
1593
|
+
end
|
1594
|
+
|
1374
1595
|
# Removes all backend environments from your Amplify project.
|
1375
1596
|
#
|
1376
1597
|
# @option params [required, String] :app_id
|
@@ -1721,6 +1942,55 @@ module Aws::AmplifyBackend
|
|
1721
1942
|
req.send_request(options)
|
1722
1943
|
end
|
1723
1944
|
|
1945
|
+
# Updates an existing backend storage resource.
|
1946
|
+
#
|
1947
|
+
# @option params [required, String] :app_id
|
1948
|
+
#
|
1949
|
+
# @option params [required, String] :backend_environment_name
|
1950
|
+
#
|
1951
|
+
# @option params [required, Types::UpdateBackendStorageResourceConfig] :resource_config
|
1952
|
+
# The resource configuration for updating backend storage.
|
1953
|
+
#
|
1954
|
+
# @option params [required, String] :resource_name
|
1955
|
+
#
|
1956
|
+
# @return [Types::UpdateBackendStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1957
|
+
#
|
1958
|
+
# * {Types::UpdateBackendStorageResponse#app_id #app_id} => String
|
1959
|
+
# * {Types::UpdateBackendStorageResponse#backend_environment_name #backend_environment_name} => String
|
1960
|
+
# * {Types::UpdateBackendStorageResponse#job_id #job_id} => String
|
1961
|
+
# * {Types::UpdateBackendStorageResponse#status #status} => String
|
1962
|
+
#
|
1963
|
+
# @example Request syntax with placeholder values
|
1964
|
+
#
|
1965
|
+
# resp = client.update_backend_storage({
|
1966
|
+
# app_id: "__string", # required
|
1967
|
+
# backend_environment_name: "__string", # required
|
1968
|
+
# resource_config: { # required
|
1969
|
+
# permissions: { # required
|
1970
|
+
# authenticated: ["READ"], # required, accepts READ, CREATE_AND_UPDATE, DELETE
|
1971
|
+
# un_authenticated: ["READ"], # accepts READ, CREATE_AND_UPDATE, DELETE
|
1972
|
+
# },
|
1973
|
+
# service_name: "S3", # required, accepts S3
|
1974
|
+
# },
|
1975
|
+
# resource_name: "__string", # required
|
1976
|
+
# })
|
1977
|
+
#
|
1978
|
+
# @example Response structure
|
1979
|
+
#
|
1980
|
+
# resp.app_id #=> String
|
1981
|
+
# resp.backend_environment_name #=> String
|
1982
|
+
# resp.job_id #=> String
|
1983
|
+
# resp.status #=> String
|
1984
|
+
#
|
1985
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendStorage AWS API Documentation
|
1986
|
+
#
|
1987
|
+
# @overload update_backend_storage(params = {})
|
1988
|
+
# @param [Hash] params ({})
|
1989
|
+
def update_backend_storage(params = {}, options = {})
|
1990
|
+
req = build_request(:update_backend_storage, params)
|
1991
|
+
req.send_request(options)
|
1992
|
+
end
|
1993
|
+
|
1724
1994
|
# @!endgroup
|
1725
1995
|
|
1726
1996
|
# @param params ({})
|
@@ -1734,7 +2004,7 @@ module Aws::AmplifyBackend
|
|
1734
2004
|
params: params,
|
1735
2005
|
config: config)
|
1736
2006
|
context[:gem_name] = 'aws-sdk-amplifybackend'
|
1737
|
-
context[:gem_version] = '1.
|
2007
|
+
context[:gem_version] = '1.13.0'
|
1738
2008
|
Seahorse::Client::Request.new(handlers, context)
|
1739
2009
|
end
|
1740
2010
|
|