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