aws-sdk-amplifybackend 1.11.0 → 1.12.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-amplifybackend/client.rb +260 -1
- 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 +2 -2
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
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.12.0
|
@@ -657,6 +657,56 @@ module Aws::AmplifyBackend
|
|
657
657
|
req.send_request(options)
|
658
658
|
end
|
659
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
|
+
|
660
710
|
# Generates a one-time challenge code to authenticate a user into your
|
661
711
|
# Amplify Admin UI.
|
662
712
|
#
|
@@ -857,6 +907,48 @@ module Aws::AmplifyBackend
|
|
857
907
|
req.send_request(options)
|
858
908
|
end
|
859
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
|
+
|
860
952
|
# Deletes the challenge token based on the given appId and sessionId.
|
861
953
|
#
|
862
954
|
# @option params [required, String] :app_id
|
@@ -1235,6 +1327,51 @@ module Aws::AmplifyBackend
|
|
1235
1327
|
req.send_request(options)
|
1236
1328
|
end
|
1237
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
|
+
|
1238
1375
|
# Gets the challenge token based on the given appId and sessionId.
|
1239
1376
|
#
|
1240
1377
|
# @option params [required, String] :app_id
|
@@ -1323,6 +1460,48 @@ module Aws::AmplifyBackend
|
|
1323
1460
|
req.send_request(options)
|
1324
1461
|
end
|
1325
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
|
+
|
1326
1505
|
# Lists the jobs for the backend of an Amplify app.
|
1327
1506
|
#
|
1328
1507
|
# @option params [required, String] :app_id
|
@@ -1380,6 +1559,37 @@ module Aws::AmplifyBackend
|
|
1380
1559
|
req.send_request(options)
|
1381
1560
|
end
|
1382
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
|
+
|
1383
1593
|
# Removes all backend environments from your Amplify project.
|
1384
1594
|
#
|
1385
1595
|
# @option params [required, String] :app_id
|
@@ -1730,6 +1940,55 @@ module Aws::AmplifyBackend
|
|
1730
1940
|
req.send_request(options)
|
1731
1941
|
end
|
1732
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
|
+
|
1733
1992
|
# @!endgroup
|
1734
1993
|
|
1735
1994
|
# @param params ({})
|
@@ -1743,7 +2002,7 @@ module Aws::AmplifyBackend
|
|
1743
2002
|
params: params,
|
1744
2003
|
config: config)
|
1745
2004
|
context[:gem_name] = 'aws-sdk-amplifybackend'
|
1746
|
-
context[:gem_version] = '1.
|
2005
|
+
context[:gem_version] = '1.12.0'
|
1747
2006
|
Seahorse::Client::Request.new(handlers, context)
|
1748
2007
|
end
|
1749
2008
|
|