aws-sdk-dataexchange 1.20.0 → 1.21.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-dataexchange/client.rb +144 -14
- data/lib/aws-sdk-dataexchange/client_api.rb +79 -0
- data/lib/aws-sdk-dataexchange/types.rb +331 -14
- data/lib/aws-sdk-dataexchange.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: eb325cd0c9988509a68910e6af57675e2ec3924a5fe671ecaa11d7cb01594fb9
|
4
|
+
data.tar.gz: 19135bf437e76c41fac77f4da2a3fcdb7b60b401f9fa71323cfb5c677c2c61d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65b783feaac305cba5c412f4b9d2201d64c92c453679365ded1bc0886ec81047d9dd41d26a45b249ea9b191e0c5a3c925432b16b4401334a9be7586acd381250
|
7
|
+
data.tar.gz: f4daafcd9fed97497164a4045e65eae1ccee675bbf3190a8ac6625956604f3bd4271341fa6a96924f42204842b04cf4171192400a09b6576ecee23f11c3a0507
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.21.0 (2021-11-29)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release enables providers and subscribers to use Data Set, Job, and Asset operations to work with API assets from Amazon API Gateway. In addition, this release enables subscribers to use the SendApiAsset operation to invoke a provider's Amazon API Gateway API that they are entitled to.
|
8
|
+
|
4
9
|
1.20.0 (2021-11-04)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.21.0
|
@@ -394,7 +394,7 @@ module Aws::DataExchange
|
|
394
394
|
# @example Request syntax with placeholder values
|
395
395
|
#
|
396
396
|
# resp = client.create_data_set({
|
397
|
-
# asset_type: "S3_SNAPSHOT", # required, accepts S3_SNAPSHOT, REDSHIFT_DATA_SHARE
|
397
|
+
# asset_type: "S3_SNAPSHOT", # required, accepts S3_SNAPSHOT, REDSHIFT_DATA_SHARE, API_GATEWAY_API
|
398
398
|
# description: "Description", # required
|
399
399
|
# name: "Name", # required
|
400
400
|
# tags: {
|
@@ -405,7 +405,7 @@ module Aws::DataExchange
|
|
405
405
|
# @example Response structure
|
406
406
|
#
|
407
407
|
# resp.arn #=> String
|
408
|
-
# resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
|
408
|
+
# resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
|
409
409
|
# resp.created_at #=> Time
|
410
410
|
# resp.description #=> String
|
411
411
|
# resp.id #=> String
|
@@ -568,8 +568,19 @@ module Aws::DataExchange
|
|
568
568
|
# data_set_id: "Id", # required
|
569
569
|
# revision_id: "Id", # required
|
570
570
|
# },
|
571
|
+
# import_asset_from_api_gateway_api: {
|
572
|
+
# api_description: "ApiDescription",
|
573
|
+
# api_id: "__string", # required
|
574
|
+
# api_key: "__string",
|
575
|
+
# api_name: "__string", # required
|
576
|
+
# api_specification_md_5_hash: "__stringMin24Max24PatternAZaZ094AZaZ092AZaZ093", # required
|
577
|
+
# data_set_id: "Id", # required
|
578
|
+
# protocol_type: "REST", # required, accepts REST
|
579
|
+
# revision_id: "Id", # required
|
580
|
+
# stage: "__string", # required
|
581
|
+
# },
|
571
582
|
# },
|
572
|
-
# type: "IMPORT_ASSETS_FROM_S3", # required, accepts IMPORT_ASSETS_FROM_S3, IMPORT_ASSET_FROM_SIGNED_URL, EXPORT_ASSETS_TO_S3, EXPORT_ASSET_TO_SIGNED_URL, EXPORT_REVISIONS_TO_S3, IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES
|
583
|
+
# type: "IMPORT_ASSETS_FROM_S3", # required, accepts IMPORT_ASSETS_FROM_S3, IMPORT_ASSET_FROM_SIGNED_URL, EXPORT_ASSETS_TO_S3, EXPORT_ASSET_TO_SIGNED_URL, EXPORT_REVISIONS_TO_S3, IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES, IMPORT_ASSET_FROM_API_GATEWAY_API
|
573
584
|
# })
|
574
585
|
#
|
575
586
|
# @example Response structure
|
@@ -612,6 +623,17 @@ module Aws::DataExchange
|
|
612
623
|
# resp.details.import_assets_from_redshift_data_shares.asset_sources[0].data_share_arn #=> String
|
613
624
|
# resp.details.import_assets_from_redshift_data_shares.data_set_id #=> String
|
614
625
|
# resp.details.import_assets_from_redshift_data_shares.revision_id #=> String
|
626
|
+
# resp.details.import_asset_from_api_gateway_api.api_description #=> String
|
627
|
+
# resp.details.import_asset_from_api_gateway_api.api_id #=> String
|
628
|
+
# resp.details.import_asset_from_api_gateway_api.api_key #=> String
|
629
|
+
# resp.details.import_asset_from_api_gateway_api.api_name #=> String
|
630
|
+
# resp.details.import_asset_from_api_gateway_api.api_specification_md_5_hash #=> String
|
631
|
+
# resp.details.import_asset_from_api_gateway_api.api_specification_upload_url #=> String
|
632
|
+
# resp.details.import_asset_from_api_gateway_api.api_specification_upload_url_expires_at #=> Time
|
633
|
+
# resp.details.import_asset_from_api_gateway_api.data_set_id #=> String
|
634
|
+
# resp.details.import_asset_from_api_gateway_api.protocol_type #=> String, one of "REST"
|
635
|
+
# resp.details.import_asset_from_api_gateway_api.revision_id #=> String
|
636
|
+
# resp.details.import_asset_from_api_gateway_api.stage #=> String
|
615
637
|
# resp.errors #=> Array
|
616
638
|
# resp.errors[0].code #=> String, one of "ACCESS_DENIED_EXCEPTION", "INTERNAL_SERVER_EXCEPTION", "MALWARE_DETECTED", "RESOURCE_NOT_FOUND_EXCEPTION", "SERVICE_QUOTA_EXCEEDED_EXCEPTION", "VALIDATION_EXCEPTION", "MALWARE_SCAN_ENCRYPTED_FILE"
|
617
639
|
# resp.errors[0].details.import_asset_from_signed_url_job_error_details.asset_name #=> String
|
@@ -625,7 +647,7 @@ module Aws::DataExchange
|
|
625
647
|
# resp.errors[0].resource_type #=> String, one of "REVISION", "ASSET", "DATA_SET"
|
626
648
|
# resp.id #=> String
|
627
649
|
# resp.state #=> String, one of "WAITING", "IN_PROGRESS", "ERROR", "COMPLETED", "CANCELLED", "TIMED_OUT"
|
628
|
-
# resp.type #=> String, one of "IMPORT_ASSETS_FROM_S3", "IMPORT_ASSET_FROM_SIGNED_URL", "EXPORT_ASSETS_TO_S3", "EXPORT_ASSET_TO_SIGNED_URL", "EXPORT_REVISIONS_TO_S3", "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES"
|
650
|
+
# resp.type #=> String, one of "IMPORT_ASSETS_FROM_S3", "IMPORT_ASSET_FROM_SIGNED_URL", "EXPORT_ASSETS_TO_S3", "EXPORT_ASSET_TO_SIGNED_URL", "EXPORT_REVISIONS_TO_S3", "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES", "IMPORT_ASSET_FROM_API_GATEWAY_API"
|
629
651
|
# resp.updated_at #=> Time
|
630
652
|
#
|
631
653
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateJob AWS API Documentation
|
@@ -822,7 +844,16 @@ module Aws::DataExchange
|
|
822
844
|
# resp.arn #=> String
|
823
845
|
# resp.asset_details.s3_snapshot_asset.size #=> Float
|
824
846
|
# resp.asset_details.redshift_data_share_asset.arn #=> String
|
825
|
-
# resp.
|
847
|
+
# resp.asset_details.api_gateway_api_asset.api_description #=> String
|
848
|
+
# resp.asset_details.api_gateway_api_asset.api_endpoint #=> String
|
849
|
+
# resp.asset_details.api_gateway_api_asset.api_id #=> String
|
850
|
+
# resp.asset_details.api_gateway_api_asset.api_key #=> String
|
851
|
+
# resp.asset_details.api_gateway_api_asset.api_name #=> String
|
852
|
+
# resp.asset_details.api_gateway_api_asset.api_specification_download_url #=> String
|
853
|
+
# resp.asset_details.api_gateway_api_asset.api_specification_download_url_expires_at #=> Time
|
854
|
+
# resp.asset_details.api_gateway_api_asset.protocol_type #=> String, one of "REST"
|
855
|
+
# resp.asset_details.api_gateway_api_asset.stage #=> String
|
856
|
+
# resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
|
826
857
|
# resp.created_at #=> Time
|
827
858
|
# resp.data_set_id #=> String
|
828
859
|
# resp.id #=> String
|
@@ -867,7 +898,7 @@ module Aws::DataExchange
|
|
867
898
|
# @example Response structure
|
868
899
|
#
|
869
900
|
# resp.arn #=> String
|
870
|
-
# resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
|
901
|
+
# resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
|
871
902
|
# resp.created_at #=> Time
|
872
903
|
# resp.description #=> String
|
873
904
|
# resp.id #=> String
|
@@ -989,6 +1020,17 @@ module Aws::DataExchange
|
|
989
1020
|
# resp.details.import_assets_from_redshift_data_shares.asset_sources[0].data_share_arn #=> String
|
990
1021
|
# resp.details.import_assets_from_redshift_data_shares.data_set_id #=> String
|
991
1022
|
# resp.details.import_assets_from_redshift_data_shares.revision_id #=> String
|
1023
|
+
# resp.details.import_asset_from_api_gateway_api.api_description #=> String
|
1024
|
+
# resp.details.import_asset_from_api_gateway_api.api_id #=> String
|
1025
|
+
# resp.details.import_asset_from_api_gateway_api.api_key #=> String
|
1026
|
+
# resp.details.import_asset_from_api_gateway_api.api_name #=> String
|
1027
|
+
# resp.details.import_asset_from_api_gateway_api.api_specification_md_5_hash #=> String
|
1028
|
+
# resp.details.import_asset_from_api_gateway_api.api_specification_upload_url #=> String
|
1029
|
+
# resp.details.import_asset_from_api_gateway_api.api_specification_upload_url_expires_at #=> Time
|
1030
|
+
# resp.details.import_asset_from_api_gateway_api.data_set_id #=> String
|
1031
|
+
# resp.details.import_asset_from_api_gateway_api.protocol_type #=> String, one of "REST"
|
1032
|
+
# resp.details.import_asset_from_api_gateway_api.revision_id #=> String
|
1033
|
+
# resp.details.import_asset_from_api_gateway_api.stage #=> String
|
992
1034
|
# resp.errors #=> Array
|
993
1035
|
# resp.errors[0].code #=> String, one of "ACCESS_DENIED_EXCEPTION", "INTERNAL_SERVER_EXCEPTION", "MALWARE_DETECTED", "RESOURCE_NOT_FOUND_EXCEPTION", "SERVICE_QUOTA_EXCEEDED_EXCEPTION", "VALIDATION_EXCEPTION", "MALWARE_SCAN_ENCRYPTED_FILE"
|
994
1036
|
# resp.errors[0].details.import_asset_from_signed_url_job_error_details.asset_name #=> String
|
@@ -1002,7 +1044,7 @@ module Aws::DataExchange
|
|
1002
1044
|
# resp.errors[0].resource_type #=> String, one of "REVISION", "ASSET", "DATA_SET"
|
1003
1045
|
# resp.id #=> String
|
1004
1046
|
# resp.state #=> String, one of "WAITING", "IN_PROGRESS", "ERROR", "COMPLETED", "CANCELLED", "TIMED_OUT"
|
1005
|
-
# resp.type #=> String, one of "IMPORT_ASSETS_FROM_S3", "IMPORT_ASSET_FROM_SIGNED_URL", "EXPORT_ASSETS_TO_S3", "EXPORT_ASSET_TO_SIGNED_URL", "EXPORT_REVISIONS_TO_S3", "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES"
|
1047
|
+
# resp.type #=> String, one of "IMPORT_ASSETS_FROM_S3", "IMPORT_ASSET_FROM_SIGNED_URL", "EXPORT_ASSETS_TO_S3", "EXPORT_ASSET_TO_SIGNED_URL", "EXPORT_REVISIONS_TO_S3", "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES", "IMPORT_ASSET_FROM_API_GATEWAY_API"
|
1006
1048
|
# resp.updated_at #=> Time
|
1007
1049
|
#
|
1008
1050
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetJob AWS API Documentation
|
@@ -1137,7 +1179,7 @@ module Aws::DataExchange
|
|
1137
1179
|
#
|
1138
1180
|
# resp.data_sets #=> Array
|
1139
1181
|
# resp.data_sets[0].arn #=> String
|
1140
|
-
# resp.data_sets[0].asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
|
1182
|
+
# resp.data_sets[0].asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
|
1141
1183
|
# resp.data_sets[0].created_at #=> Time
|
1142
1184
|
# resp.data_sets[0].description #=> String
|
1143
1185
|
# resp.data_sets[0].id #=> String
|
@@ -1271,6 +1313,17 @@ module Aws::DataExchange
|
|
1271
1313
|
# resp.jobs[0].details.import_assets_from_redshift_data_shares.asset_sources[0].data_share_arn #=> String
|
1272
1314
|
# resp.jobs[0].details.import_assets_from_redshift_data_shares.data_set_id #=> String
|
1273
1315
|
# resp.jobs[0].details.import_assets_from_redshift_data_shares.revision_id #=> String
|
1316
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.api_description #=> String
|
1317
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.api_id #=> String
|
1318
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.api_key #=> String
|
1319
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.api_name #=> String
|
1320
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.api_specification_md_5_hash #=> String
|
1321
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.api_specification_upload_url #=> String
|
1322
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.api_specification_upload_url_expires_at #=> Time
|
1323
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.data_set_id #=> String
|
1324
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.protocol_type #=> String, one of "REST"
|
1325
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.revision_id #=> String
|
1326
|
+
# resp.jobs[0].details.import_asset_from_api_gateway_api.stage #=> String
|
1274
1327
|
# resp.jobs[0].errors #=> Array
|
1275
1328
|
# resp.jobs[0].errors[0].code #=> String, one of "ACCESS_DENIED_EXCEPTION", "INTERNAL_SERVER_EXCEPTION", "MALWARE_DETECTED", "RESOURCE_NOT_FOUND_EXCEPTION", "SERVICE_QUOTA_EXCEEDED_EXCEPTION", "VALIDATION_EXCEPTION", "MALWARE_SCAN_ENCRYPTED_FILE"
|
1276
1329
|
# resp.jobs[0].errors[0].details.import_asset_from_signed_url_job_error_details.asset_name #=> String
|
@@ -1284,7 +1337,7 @@ module Aws::DataExchange
|
|
1284
1337
|
# resp.jobs[0].errors[0].resource_type #=> String, one of "REVISION", "ASSET", "DATA_SET"
|
1285
1338
|
# resp.jobs[0].id #=> String
|
1286
1339
|
# resp.jobs[0].state #=> String, one of "WAITING", "IN_PROGRESS", "ERROR", "COMPLETED", "CANCELLED", "TIMED_OUT"
|
1287
|
-
# resp.jobs[0].type #=> String, one of "IMPORT_ASSETS_FROM_S3", "IMPORT_ASSET_FROM_SIGNED_URL", "EXPORT_ASSETS_TO_S3", "EXPORT_ASSET_TO_SIGNED_URL", "EXPORT_REVISIONS_TO_S3", "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES"
|
1340
|
+
# resp.jobs[0].type #=> String, one of "IMPORT_ASSETS_FROM_S3", "IMPORT_ASSET_FROM_SIGNED_URL", "EXPORT_ASSETS_TO_S3", "EXPORT_ASSET_TO_SIGNED_URL", "EXPORT_REVISIONS_TO_S3", "IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES", "IMPORT_ASSET_FROM_API_GATEWAY_API"
|
1288
1341
|
# resp.jobs[0].updated_at #=> Time
|
1289
1342
|
# resp.next_token #=> String
|
1290
1343
|
#
|
@@ -1330,7 +1383,16 @@ module Aws::DataExchange
|
|
1330
1383
|
# resp.assets[0].arn #=> String
|
1331
1384
|
# resp.assets[0].asset_details.s3_snapshot_asset.size #=> Float
|
1332
1385
|
# resp.assets[0].asset_details.redshift_data_share_asset.arn #=> String
|
1333
|
-
# resp.assets[0].
|
1386
|
+
# resp.assets[0].asset_details.api_gateway_api_asset.api_description #=> String
|
1387
|
+
# resp.assets[0].asset_details.api_gateway_api_asset.api_endpoint #=> String
|
1388
|
+
# resp.assets[0].asset_details.api_gateway_api_asset.api_id #=> String
|
1389
|
+
# resp.assets[0].asset_details.api_gateway_api_asset.api_key #=> String
|
1390
|
+
# resp.assets[0].asset_details.api_gateway_api_asset.api_name #=> String
|
1391
|
+
# resp.assets[0].asset_details.api_gateway_api_asset.api_specification_download_url #=> String
|
1392
|
+
# resp.assets[0].asset_details.api_gateway_api_asset.api_specification_download_url_expires_at #=> Time
|
1393
|
+
# resp.assets[0].asset_details.api_gateway_api_asset.protocol_type #=> String, one of "REST"
|
1394
|
+
# resp.assets[0].asset_details.api_gateway_api_asset.stage #=> String
|
1395
|
+
# resp.assets[0].asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
|
1334
1396
|
# resp.assets[0].created_at #=> Time
|
1335
1397
|
# resp.assets[0].data_set_id #=> String
|
1336
1398
|
# resp.assets[0].id #=> String
|
@@ -1377,6 +1439,62 @@ module Aws::DataExchange
|
|
1377
1439
|
req.send_request(options)
|
1378
1440
|
end
|
1379
1441
|
|
1442
|
+
# This operation invokes an API Gateway API asset. The request is
|
1443
|
+
# proxied to the provider’s API Gateway API.
|
1444
|
+
#
|
1445
|
+
# @option params [String] :body
|
1446
|
+
#
|
1447
|
+
# @option params [Hash<String,String>] :query_string_parameters
|
1448
|
+
#
|
1449
|
+
# @option params [required, String] :asset_id
|
1450
|
+
#
|
1451
|
+
# @option params [required, String] :data_set_id
|
1452
|
+
#
|
1453
|
+
# @option params [Hash<String,String>] :request_headers
|
1454
|
+
#
|
1455
|
+
# @option params [String] :method
|
1456
|
+
#
|
1457
|
+
# @option params [String] :path
|
1458
|
+
#
|
1459
|
+
# @option params [required, String] :revision_id
|
1460
|
+
#
|
1461
|
+
# @return [Types::SendApiAssetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1462
|
+
#
|
1463
|
+
# * {Types::SendApiAssetResponse#body #body} => String
|
1464
|
+
# * {Types::SendApiAssetResponse#response_headers #response_headers} => Hash<String,String>
|
1465
|
+
#
|
1466
|
+
# @example Request syntax with placeholder values
|
1467
|
+
#
|
1468
|
+
# resp = client.send_api_asset({
|
1469
|
+
# body: "__string",
|
1470
|
+
# query_string_parameters: {
|
1471
|
+
# "__string" => "__string",
|
1472
|
+
# },
|
1473
|
+
# asset_id: "__string", # required
|
1474
|
+
# data_set_id: "__string", # required
|
1475
|
+
# request_headers: {
|
1476
|
+
# "__string" => "__string",
|
1477
|
+
# },
|
1478
|
+
# method: "__string",
|
1479
|
+
# path: "__string",
|
1480
|
+
# revision_id: "__string", # required
|
1481
|
+
# })
|
1482
|
+
#
|
1483
|
+
# @example Response structure
|
1484
|
+
#
|
1485
|
+
# resp.body #=> String
|
1486
|
+
# resp.response_headers #=> Hash
|
1487
|
+
# resp.response_headers["__string"] #=> String
|
1488
|
+
#
|
1489
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/SendApiAsset AWS API Documentation
|
1490
|
+
#
|
1491
|
+
# @overload send_api_asset(params = {})
|
1492
|
+
# @param [Hash] params ({})
|
1493
|
+
def send_api_asset(params = {}, options = {})
|
1494
|
+
req = build_request(:send_api_asset, params)
|
1495
|
+
req.send_request(options)
|
1496
|
+
end
|
1497
|
+
|
1380
1498
|
# This operation starts a job.
|
1381
1499
|
#
|
1382
1500
|
# @option params [required, String] :job_id
|
@@ -1457,7 +1575,10 @@ module Aws::DataExchange
|
|
1457
1575
|
# @option params [required, String] :name
|
1458
1576
|
# The name of the asset. When importing from Amazon S3, the S3 object
|
1459
1577
|
# key is used as the asset name. When exporting to Amazon S3, the asset
|
1460
|
-
# name is used as default target S3 object key.
|
1578
|
+
# name is used as default target S3 object key. When importing from
|
1579
|
+
# Amazon API Gateway API, the API name is used as the asset name. When
|
1580
|
+
# importing from Amazon Redshift, the datashare name is used as the
|
1581
|
+
# asset name.
|
1461
1582
|
#
|
1462
1583
|
# @option params [required, String] :revision_id
|
1463
1584
|
#
|
@@ -1488,7 +1609,16 @@ module Aws::DataExchange
|
|
1488
1609
|
# resp.arn #=> String
|
1489
1610
|
# resp.asset_details.s3_snapshot_asset.size #=> Float
|
1490
1611
|
# resp.asset_details.redshift_data_share_asset.arn #=> String
|
1491
|
-
# resp.
|
1612
|
+
# resp.asset_details.api_gateway_api_asset.api_description #=> String
|
1613
|
+
# resp.asset_details.api_gateway_api_asset.api_endpoint #=> String
|
1614
|
+
# resp.asset_details.api_gateway_api_asset.api_id #=> String
|
1615
|
+
# resp.asset_details.api_gateway_api_asset.api_key #=> String
|
1616
|
+
# resp.asset_details.api_gateway_api_asset.api_name #=> String
|
1617
|
+
# resp.asset_details.api_gateway_api_asset.api_specification_download_url #=> String
|
1618
|
+
# resp.asset_details.api_gateway_api_asset.api_specification_download_url_expires_at #=> Time
|
1619
|
+
# resp.asset_details.api_gateway_api_asset.protocol_type #=> String, one of "REST"
|
1620
|
+
# resp.asset_details.api_gateway_api_asset.stage #=> String
|
1621
|
+
# resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
|
1492
1622
|
# resp.created_at #=> Time
|
1493
1623
|
# resp.data_set_id #=> String
|
1494
1624
|
# resp.id #=> String
|
@@ -1540,7 +1670,7 @@ module Aws::DataExchange
|
|
1540
1670
|
# @example Response structure
|
1541
1671
|
#
|
1542
1672
|
# resp.arn #=> String
|
1543
|
-
# resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
|
1673
|
+
# resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
|
1544
1674
|
# resp.created_at #=> Time
|
1545
1675
|
# resp.description #=> String
|
1546
1676
|
# resp.id #=> String
|
@@ -1681,7 +1811,7 @@ module Aws::DataExchange
|
|
1681
1811
|
params: params,
|
1682
1812
|
config: config)
|
1683
1813
|
context[:gem_name] = 'aws-sdk-dataexchange'
|
1684
|
-
context[:gem_version] = '1.
|
1814
|
+
context[:gem_version] = '1.21.0'
|
1685
1815
|
Seahorse::Client::Request.new(handlers, context)
|
1686
1816
|
end
|
1687
1817
|
|
@@ -15,6 +15,8 @@ module Aws::DataExchange
|
|
15
15
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
17
|
Action = Shapes::StructureShape.new(name: 'Action')
|
18
|
+
ApiDescription = Shapes::StringShape.new(name: 'ApiDescription')
|
19
|
+
ApiGatewayApiAsset = Shapes::StructureShape.new(name: 'ApiGatewayApiAsset')
|
18
20
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
19
21
|
AssetDestinationEntry = Shapes::StructureShape.new(name: 'AssetDestinationEntry')
|
20
22
|
AssetDetails = Shapes::StructureShape.new(name: 'AssetDetails')
|
@@ -63,6 +65,8 @@ module Aws::DataExchange
|
|
63
65
|
GetRevisionRequest = Shapes::StructureShape.new(name: 'GetRevisionRequest')
|
64
66
|
GetRevisionResponse = Shapes::StructureShape.new(name: 'GetRevisionResponse')
|
65
67
|
Id = Shapes::StringShape.new(name: 'Id')
|
68
|
+
ImportAssetFromApiGatewayApiRequestDetails = Shapes::StructureShape.new(name: 'ImportAssetFromApiGatewayApiRequestDetails')
|
69
|
+
ImportAssetFromApiGatewayApiResponseDetails = Shapes::StructureShape.new(name: 'ImportAssetFromApiGatewayApiResponseDetails')
|
66
70
|
ImportAssetFromSignedUrlJobErrorDetails = Shapes::StructureShape.new(name: 'ImportAssetFromSignedUrlJobErrorDetails')
|
67
71
|
ImportAssetFromSignedUrlRequestDetails = Shapes::StructureShape.new(name: 'ImportAssetFromSignedUrlRequestDetails')
|
68
72
|
ImportAssetFromSignedUrlResponseDetails = Shapes::StructureShape.new(name: 'ImportAssetFromSignedUrlResponseDetails')
|
@@ -105,6 +109,7 @@ module Aws::DataExchange
|
|
105
109
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
106
110
|
Origin = Shapes::StringShape.new(name: 'Origin')
|
107
111
|
OriginDetails = Shapes::StructureShape.new(name: 'OriginDetails')
|
112
|
+
ProtocolType = Shapes::StringShape.new(name: 'ProtocolType')
|
108
113
|
RedshiftDataShareAsset = Shapes::StructureShape.new(name: 'RedshiftDataShareAsset')
|
109
114
|
RedshiftDataShareAssetSourceEntry = Shapes::StructureShape.new(name: 'RedshiftDataShareAssetSourceEntry')
|
110
115
|
RequestDetails = Shapes::StructureShape.new(name: 'RequestDetails')
|
@@ -115,6 +120,8 @@ module Aws::DataExchange
|
|
115
120
|
RevisionEntry = Shapes::StructureShape.new(name: 'RevisionEntry')
|
116
121
|
RevisionPublished = Shapes::StructureShape.new(name: 'RevisionPublished')
|
117
122
|
S3SnapshotAsset = Shapes::StructureShape.new(name: 'S3SnapshotAsset')
|
123
|
+
SendApiAssetRequest = Shapes::StructureShape.new(name: 'SendApiAssetRequest')
|
124
|
+
SendApiAssetResponse = Shapes::StructureShape.new(name: 'SendApiAssetResponse')
|
118
125
|
ServerSideEncryptionTypes = Shapes::StringShape.new(name: 'ServerSideEncryptionTypes')
|
119
126
|
ServiceLimitExceededException = Shapes::StructureShape.new(name: 'ServiceLimitExceededException')
|
120
127
|
StartJobRequest = Shapes::StructureShape.new(name: 'StartJobRequest')
|
@@ -147,6 +154,17 @@ module Aws::DataExchange
|
|
147
154
|
Action.add_member(:export_revision_to_s3, Shapes::ShapeRef.new(shape: AutoExportRevisionToS3RequestDetails, location_name: "ExportRevisionToS3"))
|
148
155
|
Action.struct_class = Types::Action
|
149
156
|
|
157
|
+
ApiGatewayApiAsset.add_member(:api_description, Shapes::ShapeRef.new(shape: ApiDescription, location_name: "ApiDescription"))
|
158
|
+
ApiGatewayApiAsset.add_member(:api_endpoint, Shapes::ShapeRef.new(shape: __string, location_name: "ApiEndpoint"))
|
159
|
+
ApiGatewayApiAsset.add_member(:api_id, Shapes::ShapeRef.new(shape: __string, location_name: "ApiId"))
|
160
|
+
ApiGatewayApiAsset.add_member(:api_key, Shapes::ShapeRef.new(shape: __string, location_name: "ApiKey"))
|
161
|
+
ApiGatewayApiAsset.add_member(:api_name, Shapes::ShapeRef.new(shape: __string, location_name: "ApiName"))
|
162
|
+
ApiGatewayApiAsset.add_member(:api_specification_download_url, Shapes::ShapeRef.new(shape: __string, location_name: "ApiSpecificationDownloadUrl"))
|
163
|
+
ApiGatewayApiAsset.add_member(:api_specification_download_url_expires_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ApiSpecificationDownloadUrlExpiresAt"))
|
164
|
+
ApiGatewayApiAsset.add_member(:protocol_type, Shapes::ShapeRef.new(shape: ProtocolType, location_name: "ProtocolType"))
|
165
|
+
ApiGatewayApiAsset.add_member(:stage, Shapes::ShapeRef.new(shape: __string, location_name: "Stage"))
|
166
|
+
ApiGatewayApiAsset.struct_class = Types::ApiGatewayApiAsset
|
167
|
+
|
150
168
|
AssetDestinationEntry.add_member(:asset_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "AssetId"))
|
151
169
|
AssetDestinationEntry.add_member(:bucket, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Bucket"))
|
152
170
|
AssetDestinationEntry.add_member(:key, Shapes::ShapeRef.new(shape: __string, location_name: "Key"))
|
@@ -154,6 +172,7 @@ module Aws::DataExchange
|
|
154
172
|
|
155
173
|
AssetDetails.add_member(:s3_snapshot_asset, Shapes::ShapeRef.new(shape: S3SnapshotAsset, location_name: "S3SnapshotAsset"))
|
156
174
|
AssetDetails.add_member(:redshift_data_share_asset, Shapes::ShapeRef.new(shape: RedshiftDataShareAsset, location_name: "RedshiftDataShareAsset"))
|
175
|
+
AssetDetails.add_member(:api_gateway_api_asset, Shapes::ShapeRef.new(shape: ApiGatewayApiAsset, location_name: "ApiGatewayApiAsset"))
|
157
176
|
AssetDetails.struct_class = Types::AssetDetails
|
158
177
|
|
159
178
|
AssetEntry.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "Arn"))
|
@@ -402,6 +421,30 @@ module Aws::DataExchange
|
|
402
421
|
GetRevisionResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
|
403
422
|
GetRevisionResponse.struct_class = Types::GetRevisionResponse
|
404
423
|
|
424
|
+
ImportAssetFromApiGatewayApiRequestDetails.add_member(:api_description, Shapes::ShapeRef.new(shape: ApiDescription, location_name: "ApiDescription"))
|
425
|
+
ImportAssetFromApiGatewayApiRequestDetails.add_member(:api_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ApiId"))
|
426
|
+
ImportAssetFromApiGatewayApiRequestDetails.add_member(:api_key, Shapes::ShapeRef.new(shape: __string, location_name: "ApiKey"))
|
427
|
+
ImportAssetFromApiGatewayApiRequestDetails.add_member(:api_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ApiName"))
|
428
|
+
ImportAssetFromApiGatewayApiRequestDetails.add_member(:api_specification_md_5_hash, Shapes::ShapeRef.new(shape: __stringMin24Max24PatternAZaZ094AZaZ092AZaZ093, required: true, location_name: "ApiSpecificationMd5Hash"))
|
429
|
+
ImportAssetFromApiGatewayApiRequestDetails.add_member(:data_set_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "DataSetId"))
|
430
|
+
ImportAssetFromApiGatewayApiRequestDetails.add_member(:protocol_type, Shapes::ShapeRef.new(shape: ProtocolType, required: true, location_name: "ProtocolType"))
|
431
|
+
ImportAssetFromApiGatewayApiRequestDetails.add_member(:revision_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "RevisionId"))
|
432
|
+
ImportAssetFromApiGatewayApiRequestDetails.add_member(:stage, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Stage"))
|
433
|
+
ImportAssetFromApiGatewayApiRequestDetails.struct_class = Types::ImportAssetFromApiGatewayApiRequestDetails
|
434
|
+
|
435
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:api_description, Shapes::ShapeRef.new(shape: ApiDescription, location_name: "ApiDescription"))
|
436
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:api_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ApiId"))
|
437
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:api_key, Shapes::ShapeRef.new(shape: __string, location_name: "ApiKey"))
|
438
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:api_name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ApiName"))
|
439
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:api_specification_md_5_hash, Shapes::ShapeRef.new(shape: __stringMin24Max24PatternAZaZ094AZaZ092AZaZ093, required: true, location_name: "ApiSpecificationMd5Hash"))
|
440
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:api_specification_upload_url, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ApiSpecificationUploadUrl"))
|
441
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:api_specification_upload_url_expires_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ApiSpecificationUploadUrlExpiresAt"))
|
442
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:data_set_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "DataSetId"))
|
443
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:protocol_type, Shapes::ShapeRef.new(shape: ProtocolType, required: true, location_name: "ProtocolType"))
|
444
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:revision_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "RevisionId"))
|
445
|
+
ImportAssetFromApiGatewayApiResponseDetails.add_member(:stage, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Stage"))
|
446
|
+
ImportAssetFromApiGatewayApiResponseDetails.struct_class = Types::ImportAssetFromApiGatewayApiResponseDetails
|
447
|
+
|
405
448
|
ImportAssetFromSignedUrlJobErrorDetails.add_member(:asset_name, Shapes::ShapeRef.new(shape: AssetName, required: true, location_name: "AssetName"))
|
406
449
|
ImportAssetFromSignedUrlJobErrorDetails.struct_class = Types::ImportAssetFromSignedUrlJobErrorDetails
|
407
450
|
|
@@ -554,6 +597,7 @@ module Aws::DataExchange
|
|
554
597
|
RequestDetails.add_member(:import_asset_from_signed_url, Shapes::ShapeRef.new(shape: ImportAssetFromSignedUrlRequestDetails, location_name: "ImportAssetFromSignedUrl"))
|
555
598
|
RequestDetails.add_member(:import_assets_from_s3, Shapes::ShapeRef.new(shape: ImportAssetsFromS3RequestDetails, location_name: "ImportAssetsFromS3"))
|
556
599
|
RequestDetails.add_member(:import_assets_from_redshift_data_shares, Shapes::ShapeRef.new(shape: ImportAssetsFromRedshiftDataSharesRequestDetails, location_name: "ImportAssetsFromRedshiftDataShares"))
|
600
|
+
RequestDetails.add_member(:import_asset_from_api_gateway_api, Shapes::ShapeRef.new(shape: ImportAssetFromApiGatewayApiRequestDetails, location_name: "ImportAssetFromApiGatewayApi"))
|
557
601
|
RequestDetails.struct_class = Types::RequestDetails
|
558
602
|
|
559
603
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Message"))
|
@@ -567,6 +611,7 @@ module Aws::DataExchange
|
|
567
611
|
ResponseDetails.add_member(:import_asset_from_signed_url, Shapes::ShapeRef.new(shape: ImportAssetFromSignedUrlResponseDetails, location_name: "ImportAssetFromSignedUrl"))
|
568
612
|
ResponseDetails.add_member(:import_assets_from_s3, Shapes::ShapeRef.new(shape: ImportAssetsFromS3ResponseDetails, location_name: "ImportAssetsFromS3"))
|
569
613
|
ResponseDetails.add_member(:import_assets_from_redshift_data_shares, Shapes::ShapeRef.new(shape: ImportAssetsFromRedshiftDataSharesResponseDetails, location_name: "ImportAssetsFromRedshiftDataShares"))
|
614
|
+
ResponseDetails.add_member(:import_asset_from_api_gateway_api, Shapes::ShapeRef.new(shape: ImportAssetFromApiGatewayApiResponseDetails, location_name: "ImportAssetFromApiGatewayApi"))
|
570
615
|
ResponseDetails.struct_class = Types::ResponseDetails
|
571
616
|
|
572
617
|
RevisionDestinationEntry.add_member(:bucket, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Bucket"))
|
@@ -590,6 +635,24 @@ module Aws::DataExchange
|
|
590
635
|
S3SnapshotAsset.add_member(:size, Shapes::ShapeRef.new(shape: __doubleMin0, required: true, location_name: "Size"))
|
591
636
|
S3SnapshotAsset.struct_class = Types::S3SnapshotAsset
|
592
637
|
|
638
|
+
SendApiAssetRequest.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
|
639
|
+
SendApiAssetRequest.add_member(:query_string_parameters, Shapes::ShapeRef.new(shape: MapOf__string, location: "querystring", location_name: "QueryStringParameters"))
|
640
|
+
SendApiAssetRequest.add_member(:asset_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "header", location_name: "x-amzn-dataexchange-asset-id"))
|
641
|
+
SendApiAssetRequest.add_member(:data_set_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "header", location_name: "x-amzn-dataexchange-data-set-id"))
|
642
|
+
SendApiAssetRequest.add_member(:request_headers, Shapes::ShapeRef.new(shape: MapOf__string, location: "headers", location_name: "x-amzn-dataexchange-header-"))
|
643
|
+
SendApiAssetRequest.add_member(:method, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "x-amzn-dataexchange-http-method"))
|
644
|
+
SendApiAssetRequest.add_member(:path, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "x-amzn-dataexchange-path"))
|
645
|
+
SendApiAssetRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "header", location_name: "x-amzn-dataexchange-revision-id"))
|
646
|
+
SendApiAssetRequest.struct_class = Types::SendApiAssetRequest
|
647
|
+
SendApiAssetRequest[:payload] = :body
|
648
|
+
SendApiAssetRequest[:payload_member] = SendApiAssetRequest.member(:body)
|
649
|
+
|
650
|
+
SendApiAssetResponse.add_member(:body, Shapes::ShapeRef.new(shape: __string, location_name: "Body"))
|
651
|
+
SendApiAssetResponse.add_member(:response_headers, Shapes::ShapeRef.new(shape: MapOf__string, location: "headers", location_name: ""))
|
652
|
+
SendApiAssetResponse.struct_class = Types::SendApiAssetResponse
|
653
|
+
SendApiAssetResponse[:payload] = :body
|
654
|
+
SendApiAssetResponse[:payload_member] = SendApiAssetResponse.member(:body)
|
655
|
+
|
593
656
|
ServiceLimitExceededException.add_member(:limit_name, Shapes::ShapeRef.new(shape: LimitName, location_name: "LimitName"))
|
594
657
|
ServiceLimitExceededException.add_member(:limit_value, Shapes::ShapeRef.new(shape: __double, location_name: "LimitValue"))
|
595
658
|
ServiceLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Message"))
|
@@ -973,6 +1036,22 @@ module Aws::DataExchange
|
|
973
1036
|
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
974
1037
|
end)
|
975
1038
|
|
1039
|
+
api.add_operation(:send_api_asset, Seahorse::Model::Operation.new.tap do |o|
|
1040
|
+
o.name = "SendApiAsset"
|
1041
|
+
o.http_method = "POST"
|
1042
|
+
o.http_request_uri = "/v1"
|
1043
|
+
o.endpoint_pattern = {
|
1044
|
+
"hostPrefix" => "api-fulfill.",
|
1045
|
+
}
|
1046
|
+
o.input = Shapes::ShapeRef.new(shape: SendApiAssetRequest)
|
1047
|
+
o.output = Shapes::ShapeRef.new(shape: SendApiAssetResponse)
|
1048
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1049
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1050
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1051
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1052
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1053
|
+
end)
|
1054
|
+
|
976
1055
|
api.add_operation(:start_job, Seahorse::Model::Operation.new.tap do |o|
|
977
1056
|
o.name = "StartJob"
|
978
1057
|
o.http_method = "PATCH"
|
@@ -54,6 +54,60 @@ module Aws::DataExchange
|
|
54
54
|
include Aws::Structure
|
55
55
|
end
|
56
56
|
|
57
|
+
# The API Gateway API that is the asset.
|
58
|
+
#
|
59
|
+
# @!attribute [rw] api_description
|
60
|
+
# The API description of the API asset.
|
61
|
+
# @return [String]
|
62
|
+
#
|
63
|
+
# @!attribute [rw] api_endpoint
|
64
|
+
# The API endpoint of the API asset.
|
65
|
+
# @return [String]
|
66
|
+
#
|
67
|
+
# @!attribute [rw] api_id
|
68
|
+
# The unique identifier of the API asset.
|
69
|
+
# @return [String]
|
70
|
+
#
|
71
|
+
# @!attribute [rw] api_key
|
72
|
+
# The API key of the API asset.
|
73
|
+
# @return [String]
|
74
|
+
#
|
75
|
+
# @!attribute [rw] api_name
|
76
|
+
# The API name of the API asset.
|
77
|
+
# @return [String]
|
78
|
+
#
|
79
|
+
# @!attribute [rw] api_specification_download_url
|
80
|
+
# The download URL of the API specification of the API asset.
|
81
|
+
# @return [String]
|
82
|
+
#
|
83
|
+
# @!attribute [rw] api_specification_download_url_expires_at
|
84
|
+
# The date and time that the upload URL expires, in ISO 8601 format.
|
85
|
+
# @return [Time]
|
86
|
+
#
|
87
|
+
# @!attribute [rw] protocol_type
|
88
|
+
# The protocol type of the API asset.
|
89
|
+
# @return [String]
|
90
|
+
#
|
91
|
+
# @!attribute [rw] stage
|
92
|
+
# The stage of the API asset.
|
93
|
+
# @return [String]
|
94
|
+
#
|
95
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ApiGatewayApiAsset AWS API Documentation
|
96
|
+
#
|
97
|
+
class ApiGatewayApiAsset < Struct.new(
|
98
|
+
:api_description,
|
99
|
+
:api_endpoint,
|
100
|
+
:api_id,
|
101
|
+
:api_key,
|
102
|
+
:api_name,
|
103
|
+
:api_specification_download_url,
|
104
|
+
:api_specification_download_url_expires_at,
|
105
|
+
:protocol_type,
|
106
|
+
:stage)
|
107
|
+
SENSITIVE = []
|
108
|
+
include Aws::Structure
|
109
|
+
end
|
110
|
+
|
57
111
|
# The destination for the asset.
|
58
112
|
#
|
59
113
|
# @note When making an API call, you may pass AssetDestinationEntry
|
@@ -97,20 +151,27 @@ module Aws::DataExchange
|
|
97
151
|
# The Amazon Redshift datashare that is the asset.
|
98
152
|
# @return [Types::RedshiftDataShareAsset]
|
99
153
|
#
|
154
|
+
# @!attribute [rw] api_gateway_api_asset
|
155
|
+
# Information about the API Gateway API asset.
|
156
|
+
# @return [Types::ApiGatewayApiAsset]
|
157
|
+
#
|
100
158
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/AssetDetails AWS API Documentation
|
101
159
|
#
|
102
160
|
class AssetDetails < Struct.new(
|
103
161
|
:s3_snapshot_asset,
|
104
|
-
:redshift_data_share_asset
|
162
|
+
:redshift_data_share_asset,
|
163
|
+
:api_gateway_api_asset)
|
105
164
|
SENSITIVE = []
|
106
165
|
include Aws::Structure
|
107
166
|
end
|
108
167
|
|
109
|
-
# An asset in AWS Data Exchange is a piece of data
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
168
|
+
# An asset in AWS Data Exchange is a piece of data (S3 object) or a
|
169
|
+
# means of fulfilling data (Amazon Redshift datashare or Amazon API
|
170
|
+
# Gateway API). The asset can be a structured data file, an image file,
|
171
|
+
# or some other data file that can be stored as an S3 object, an Amazon
|
172
|
+
# API Gateway API, or an Amazon Redshift datashare (Preview). When you
|
173
|
+
# create an import job for your files, API Gateway APIs, or Amazon
|
174
|
+
# Redshift datashares, you create an asset in AWS Data Exchange.
|
114
175
|
#
|
115
176
|
# @!attribute [rw] arn
|
116
177
|
# The ARN for the asset.
|
@@ -139,7 +200,10 @@ module Aws::DataExchange
|
|
139
200
|
# @!attribute [rw] name
|
140
201
|
# The name of the asset. When importing from Amazon S3, the S3 object
|
141
202
|
# key is used as the asset name. When exporting to Amazon S3, the
|
142
|
-
# asset name is used as default target S3 object key.
|
203
|
+
# asset name is used as default target S3 object key. When importing
|
204
|
+
# from Amazon API Gateway API, the API name is used as the asset name.
|
205
|
+
# When importing from Amazon Redshift, the datashare name is used as
|
206
|
+
# the asset name.
|
143
207
|
# @return [String]
|
144
208
|
#
|
145
209
|
# @!attribute [rw] revision_id
|
@@ -319,7 +383,7 @@ module Aws::DataExchange
|
|
319
383
|
# data as a hash:
|
320
384
|
#
|
321
385
|
# {
|
322
|
-
# asset_type: "S3_SNAPSHOT", # required, accepts S3_SNAPSHOT, REDSHIFT_DATA_SHARE
|
386
|
+
# asset_type: "S3_SNAPSHOT", # required, accepts S3_SNAPSHOT, REDSHIFT_DATA_SHARE, API_GATEWAY_API
|
323
387
|
# description: "Description", # required
|
324
388
|
# name: "Name", # required
|
325
389
|
# tags: {
|
@@ -579,8 +643,19 @@ module Aws::DataExchange
|
|
579
643
|
# data_set_id: "Id", # required
|
580
644
|
# revision_id: "Id", # required
|
581
645
|
# },
|
646
|
+
# import_asset_from_api_gateway_api: {
|
647
|
+
# api_description: "ApiDescription",
|
648
|
+
# api_id: "__string", # required
|
649
|
+
# api_key: "__string",
|
650
|
+
# api_name: "__string", # required
|
651
|
+
# api_specification_md_5_hash: "__stringMin24Max24PatternAZaZ094AZaZ092AZaZ093", # required
|
652
|
+
# data_set_id: "Id", # required
|
653
|
+
# protocol_type: "REST", # required, accepts REST
|
654
|
+
# revision_id: "Id", # required
|
655
|
+
# stage: "__string", # required
|
656
|
+
# },
|
582
657
|
# },
|
583
|
-
# type: "IMPORT_ASSETS_FROM_S3", # required, accepts IMPORT_ASSETS_FROM_S3, IMPORT_ASSET_FROM_SIGNED_URL, EXPORT_ASSETS_TO_S3, EXPORT_ASSET_TO_SIGNED_URL, EXPORT_REVISIONS_TO_S3, IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES
|
658
|
+
# type: "IMPORT_ASSETS_FROM_S3", # required, accepts IMPORT_ASSETS_FROM_S3, IMPORT_ASSET_FROM_SIGNED_URL, EXPORT_ASSETS_TO_S3, EXPORT_ASSET_TO_SIGNED_URL, EXPORT_REVISIONS_TO_S3, IMPORT_ASSETS_FROM_REDSHIFT_DATA_SHARES, IMPORT_ASSET_FROM_API_GATEWAY_API
|
584
659
|
# }
|
585
660
|
#
|
586
661
|
# @!attribute [rw] details
|
@@ -1291,7 +1366,10 @@ module Aws::DataExchange
|
|
1291
1366
|
# @!attribute [rw] name
|
1292
1367
|
# The name of the asset. When importing from Amazon S3, the S3 object
|
1293
1368
|
# key is used as the asset name. When exporting to Amazon S3, the
|
1294
|
-
# asset name is used as default target S3 object key.
|
1369
|
+
# asset name is used as default target S3 object key. When importing
|
1370
|
+
# from Amazon API Gateway API, the API name is used as the asset name.
|
1371
|
+
# When importing from Amazon Redshift, the datashare name is used as
|
1372
|
+
# the asset name.
|
1295
1373
|
# @return [String]
|
1296
1374
|
#
|
1297
1375
|
# @!attribute [rw] revision_id
|
@@ -1608,6 +1686,141 @@ module Aws::DataExchange
|
|
1608
1686
|
include Aws::Structure
|
1609
1687
|
end
|
1610
1688
|
|
1689
|
+
# The request details.
|
1690
|
+
#
|
1691
|
+
# @note When making an API call, you may pass ImportAssetFromApiGatewayApiRequestDetails
|
1692
|
+
# data as a hash:
|
1693
|
+
#
|
1694
|
+
# {
|
1695
|
+
# api_description: "ApiDescription",
|
1696
|
+
# api_id: "__string", # required
|
1697
|
+
# api_key: "__string",
|
1698
|
+
# api_name: "__string", # required
|
1699
|
+
# api_specification_md_5_hash: "__stringMin24Max24PatternAZaZ094AZaZ092AZaZ093", # required
|
1700
|
+
# data_set_id: "Id", # required
|
1701
|
+
# protocol_type: "REST", # required, accepts REST
|
1702
|
+
# revision_id: "Id", # required
|
1703
|
+
# stage: "__string", # required
|
1704
|
+
# }
|
1705
|
+
#
|
1706
|
+
# @!attribute [rw] api_description
|
1707
|
+
# The API description. Markdown supported.
|
1708
|
+
# @return [String]
|
1709
|
+
#
|
1710
|
+
# @!attribute [rw] api_id
|
1711
|
+
# The API Gateway API ID.
|
1712
|
+
# @return [String]
|
1713
|
+
#
|
1714
|
+
# @!attribute [rw] api_key
|
1715
|
+
# The API Gateway API key.
|
1716
|
+
# @return [String]
|
1717
|
+
#
|
1718
|
+
# @!attribute [rw] api_name
|
1719
|
+
# The API name.
|
1720
|
+
# @return [String]
|
1721
|
+
#
|
1722
|
+
# @!attribute [rw] api_specification_md_5_hash
|
1723
|
+
# The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API
|
1724
|
+
# specification file. It is used to ensure the integrity of the file.
|
1725
|
+
# @return [String]
|
1726
|
+
#
|
1727
|
+
# @!attribute [rw] data_set_id
|
1728
|
+
# The data set ID.
|
1729
|
+
# @return [String]
|
1730
|
+
#
|
1731
|
+
# @!attribute [rw] protocol_type
|
1732
|
+
# The protocol type.
|
1733
|
+
# @return [String]
|
1734
|
+
#
|
1735
|
+
# @!attribute [rw] revision_id
|
1736
|
+
# The revision ID.
|
1737
|
+
# @return [String]
|
1738
|
+
#
|
1739
|
+
# @!attribute [rw] stage
|
1740
|
+
# The API stage.
|
1741
|
+
# @return [String]
|
1742
|
+
#
|
1743
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ImportAssetFromApiGatewayApiRequestDetails AWS API Documentation
|
1744
|
+
#
|
1745
|
+
class ImportAssetFromApiGatewayApiRequestDetails < Struct.new(
|
1746
|
+
:api_description,
|
1747
|
+
:api_id,
|
1748
|
+
:api_key,
|
1749
|
+
:api_name,
|
1750
|
+
:api_specification_md_5_hash,
|
1751
|
+
:data_set_id,
|
1752
|
+
:protocol_type,
|
1753
|
+
:revision_id,
|
1754
|
+
:stage)
|
1755
|
+
SENSITIVE = []
|
1756
|
+
include Aws::Structure
|
1757
|
+
end
|
1758
|
+
|
1759
|
+
# The response details.
|
1760
|
+
#
|
1761
|
+
# @!attribute [rw] api_description
|
1762
|
+
# The API description.
|
1763
|
+
# @return [String]
|
1764
|
+
#
|
1765
|
+
# @!attribute [rw] api_id
|
1766
|
+
# The API ID.
|
1767
|
+
# @return [String]
|
1768
|
+
#
|
1769
|
+
# @!attribute [rw] api_key
|
1770
|
+
# The API key.
|
1771
|
+
# @return [String]
|
1772
|
+
#
|
1773
|
+
# @!attribute [rw] api_name
|
1774
|
+
# The API name.
|
1775
|
+
# @return [String]
|
1776
|
+
#
|
1777
|
+
# @!attribute [rw] api_specification_md_5_hash
|
1778
|
+
# The Base64-encoded Md5 hash for the API asset, used to ensure the
|
1779
|
+
# integrity of the API at that location.
|
1780
|
+
# @return [String]
|
1781
|
+
#
|
1782
|
+
# @!attribute [rw] api_specification_upload_url
|
1783
|
+
# The upload URL of the API specification.
|
1784
|
+
# @return [String]
|
1785
|
+
#
|
1786
|
+
# @!attribute [rw] api_specification_upload_url_expires_at
|
1787
|
+
# The date and time that the upload URL expires, in ISO 8601 format.
|
1788
|
+
# @return [Time]
|
1789
|
+
#
|
1790
|
+
# @!attribute [rw] data_set_id
|
1791
|
+
# The data set ID.
|
1792
|
+
# @return [String]
|
1793
|
+
#
|
1794
|
+
# @!attribute [rw] protocol_type
|
1795
|
+
# The protocol type.
|
1796
|
+
# @return [String]
|
1797
|
+
#
|
1798
|
+
# @!attribute [rw] revision_id
|
1799
|
+
# The revision ID.
|
1800
|
+
# @return [String]
|
1801
|
+
#
|
1802
|
+
# @!attribute [rw] stage
|
1803
|
+
# The API stage.
|
1804
|
+
# @return [String]
|
1805
|
+
#
|
1806
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ImportAssetFromApiGatewayApiResponseDetails AWS API Documentation
|
1807
|
+
#
|
1808
|
+
class ImportAssetFromApiGatewayApiResponseDetails < Struct.new(
|
1809
|
+
:api_description,
|
1810
|
+
:api_id,
|
1811
|
+
:api_key,
|
1812
|
+
:api_name,
|
1813
|
+
:api_specification_md_5_hash,
|
1814
|
+
:api_specification_upload_url,
|
1815
|
+
:api_specification_upload_url_expires_at,
|
1816
|
+
:data_set_id,
|
1817
|
+
:protocol_type,
|
1818
|
+
:revision_id,
|
1819
|
+
:stage)
|
1820
|
+
SENSITIVE = []
|
1821
|
+
include Aws::Structure
|
1822
|
+
end
|
1823
|
+
|
1611
1824
|
# Information about the job error.
|
1612
1825
|
#
|
1613
1826
|
# @!attribute [rw] asset_name
|
@@ -2329,6 +2542,17 @@ module Aws::DataExchange
|
|
2329
2542
|
# data_set_id: "Id", # required
|
2330
2543
|
# revision_id: "Id", # required
|
2331
2544
|
# },
|
2545
|
+
# import_asset_from_api_gateway_api: {
|
2546
|
+
# api_description: "ApiDescription",
|
2547
|
+
# api_id: "__string", # required
|
2548
|
+
# api_key: "__string",
|
2549
|
+
# api_name: "__string", # required
|
2550
|
+
# api_specification_md_5_hash: "__stringMin24Max24PatternAZaZ094AZaZ092AZaZ093", # required
|
2551
|
+
# data_set_id: "Id", # required
|
2552
|
+
# protocol_type: "REST", # required, accepts REST
|
2553
|
+
# revision_id: "Id", # required
|
2554
|
+
# stage: "__string", # required
|
2555
|
+
# },
|
2332
2556
|
# }
|
2333
2557
|
#
|
2334
2558
|
# @!attribute [rw] export_asset_to_signed_url
|
@@ -2355,6 +2579,10 @@ module Aws::DataExchange
|
|
2355
2579
|
# Details from an import from Amazon Redshift datashare request.
|
2356
2580
|
# @return [Types::ImportAssetsFromRedshiftDataSharesRequestDetails]
|
2357
2581
|
#
|
2582
|
+
# @!attribute [rw] import_asset_from_api_gateway_api
|
2583
|
+
# Information about the import asset from API Gateway API request.
|
2584
|
+
# @return [Types::ImportAssetFromApiGatewayApiRequestDetails]
|
2585
|
+
#
|
2358
2586
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/RequestDetails AWS API Documentation
|
2359
2587
|
#
|
2360
2588
|
class RequestDetails < Struct.new(
|
@@ -2363,7 +2591,8 @@ module Aws::DataExchange
|
|
2363
2591
|
:export_revisions_to_s3,
|
2364
2592
|
:import_asset_from_signed_url,
|
2365
2593
|
:import_assets_from_s3,
|
2366
|
-
:import_assets_from_redshift_data_shares
|
2594
|
+
:import_assets_from_redshift_data_shares,
|
2595
|
+
:import_asset_from_api_gateway_api)
|
2367
2596
|
SENSITIVE = []
|
2368
2597
|
include Aws::Structure
|
2369
2598
|
end
|
@@ -2418,6 +2647,10 @@ module Aws::DataExchange
|
|
2418
2647
|
# Details from an import from Amazon Redshift datashare response.
|
2419
2648
|
# @return [Types::ImportAssetsFromRedshiftDataSharesResponseDetails]
|
2420
2649
|
#
|
2650
|
+
# @!attribute [rw] import_asset_from_api_gateway_api
|
2651
|
+
# The response details.
|
2652
|
+
# @return [Types::ImportAssetFromApiGatewayApiResponseDetails]
|
2653
|
+
#
|
2421
2654
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ResponseDetails AWS API Documentation
|
2422
2655
|
#
|
2423
2656
|
class ResponseDetails < Struct.new(
|
@@ -2426,7 +2659,8 @@ module Aws::DataExchange
|
|
2426
2659
|
:export_revisions_to_s3,
|
2427
2660
|
:import_asset_from_signed_url,
|
2428
2661
|
:import_assets_from_s3,
|
2429
|
-
:import_assets_from_redshift_data_shares
|
2662
|
+
:import_assets_from_redshift_data_shares,
|
2663
|
+
:import_asset_from_api_gateway_api)
|
2430
2664
|
SENSITIVE = []
|
2431
2665
|
include Aws::Structure
|
2432
2666
|
end
|
@@ -2568,6 +2802,83 @@ module Aws::DataExchange
|
|
2568
2802
|
include Aws::Structure
|
2569
2803
|
end
|
2570
2804
|
|
2805
|
+
# @note When making an API call, you may pass SendApiAssetRequest
|
2806
|
+
# data as a hash:
|
2807
|
+
#
|
2808
|
+
# {
|
2809
|
+
# body: "__string",
|
2810
|
+
# query_string_parameters: {
|
2811
|
+
# "__string" => "__string",
|
2812
|
+
# },
|
2813
|
+
# asset_id: "__string", # required
|
2814
|
+
# data_set_id: "__string", # required
|
2815
|
+
# request_headers: {
|
2816
|
+
# "__string" => "__string",
|
2817
|
+
# },
|
2818
|
+
# method: "__string",
|
2819
|
+
# path: "__string",
|
2820
|
+
# revision_id: "__string", # required
|
2821
|
+
# }
|
2822
|
+
#
|
2823
|
+
# @!attribute [rw] body
|
2824
|
+
# @return [String]
|
2825
|
+
#
|
2826
|
+
# @!attribute [rw] query_string_parameters
|
2827
|
+
# @return [Hash<String,String>]
|
2828
|
+
#
|
2829
|
+
# @!attribute [rw] asset_id
|
2830
|
+
# @return [String]
|
2831
|
+
#
|
2832
|
+
# @!attribute [rw] data_set_id
|
2833
|
+
# @return [String]
|
2834
|
+
#
|
2835
|
+
# @!attribute [rw] request_headers
|
2836
|
+
# @return [Hash<String,String>]
|
2837
|
+
#
|
2838
|
+
# @!attribute [rw] method
|
2839
|
+
# @return [String]
|
2840
|
+
#
|
2841
|
+
# @!attribute [rw] path
|
2842
|
+
# @return [String]
|
2843
|
+
#
|
2844
|
+
# @!attribute [rw] revision_id
|
2845
|
+
# @return [String]
|
2846
|
+
#
|
2847
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/SendApiAssetRequest AWS API Documentation
|
2848
|
+
#
|
2849
|
+
class SendApiAssetRequest < Struct.new(
|
2850
|
+
:body,
|
2851
|
+
:query_string_parameters,
|
2852
|
+
:asset_id,
|
2853
|
+
:data_set_id,
|
2854
|
+
:request_headers,
|
2855
|
+
:method,
|
2856
|
+
:path,
|
2857
|
+
:revision_id)
|
2858
|
+
SENSITIVE = []
|
2859
|
+
include Aws::Structure
|
2860
|
+
end
|
2861
|
+
|
2862
|
+
# The details of the send API asset response.
|
2863
|
+
#
|
2864
|
+
# @!attribute [rw] body
|
2865
|
+
# The response body from the underlying API tracked by the API asset.
|
2866
|
+
# @return [String]
|
2867
|
+
#
|
2868
|
+
# @!attribute [rw] response_headers
|
2869
|
+
# The response headers from the underlying API tracked by the API
|
2870
|
+
# asset.
|
2871
|
+
# @return [Hash<String,String>]
|
2872
|
+
#
|
2873
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/SendApiAssetResponse AWS API Documentation
|
2874
|
+
#
|
2875
|
+
class SendApiAssetResponse < Struct.new(
|
2876
|
+
:body,
|
2877
|
+
:response_headers)
|
2878
|
+
SENSITIVE = []
|
2879
|
+
include Aws::Structure
|
2880
|
+
end
|
2881
|
+
|
2571
2882
|
# The request has exceeded the quotas imposed by the service.
|
2572
2883
|
#
|
2573
2884
|
# @!attribute [rw] limit_name
|
@@ -2694,7 +3005,10 @@ module Aws::DataExchange
|
|
2694
3005
|
# @!attribute [rw] name
|
2695
3006
|
# The name of the asset. When importing from Amazon S3, the S3 object
|
2696
3007
|
# key is used as the asset name. When exporting to Amazon S3, the
|
2697
|
-
# asset name is used as default target S3 object key.
|
3008
|
+
# asset name is used as default target S3 object key. When importing
|
3009
|
+
# from Amazon API Gateway API, the API name is used as the asset name.
|
3010
|
+
# When importing from Amazon Redshift, the datashare name is used as
|
3011
|
+
# the asset name.
|
2698
3012
|
# @return [String]
|
2699
3013
|
#
|
2700
3014
|
# @!attribute [rw] revision_id
|
@@ -2740,7 +3054,10 @@ module Aws::DataExchange
|
|
2740
3054
|
# @!attribute [rw] name
|
2741
3055
|
# The name of the asset. When importing from Amazon S3, the S3 object
|
2742
3056
|
# key is used as the asset name. When exporting to Amazon S3, the
|
2743
|
-
# asset name is used as default target S3 object key.
|
3057
|
+
# asset name is used as default target S3 object key. When importing
|
3058
|
+
# from Amazon API Gateway API, the API name is used as the asset name.
|
3059
|
+
# When importing from Amazon Redshift, the datashare name is used as
|
3060
|
+
# the asset name.
|
2744
3061
|
# @return [String]
|
2745
3062
|
#
|
2746
3063
|
# @!attribute [rw] revision_id
|
data/lib/aws-sdk-dataexchange.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-dataexchange
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|