aws-sdk-dataexchange 1.19.0 → 1.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5164e756626a45f98a9ad33d425c8277b4077e2bcd5b6e68d798dbf3df98855e
4
- data.tar.gz: cb79bf519b75c6451d93747c4ea812005b2b8a6fb67ffbe17f60674b762457c3
3
+ metadata.gz: 2ac633af27b22ff5a05e047ced0d4b690a89e93952c0c4c456735f67796bfb66
4
+ data.tar.gz: 4b3f56f0097d418232fc0068eed041bae2480d1c8dd56c26c4a16b03af483f94
5
5
  SHA512:
6
- metadata.gz: 2b601a2abb87455d8e35ecc81d722d0d2688b1317f4ba8542992ba63c923c5da433091177db368c9bd3932ac08a92910476dae6997ed857b01b32977956d4292
7
- data.tar.gz: 4341c360985c54db45c614640e86f9719075207550873a2248f61bf56abff1f90c176dfd6ba3a557bb17d55ea14b1fb557ac22262c283c29bfe0f16da3cf9b57
6
+ metadata.gz: 905e1bcb2229956d3a39f295b64c9fface67bd1ff5f67daad1281a46f0eeef76b3214e72aa4909976a43c4c658e64ef774bed07b19efaa025409b955d3b46397
7
+ data.tar.gz: 333d574a9ffa76a2e30dbd361546006afc77e0150288e06521acc52e93d73a6f8c8d3d2dbb1f2ac6818f314e09949abb4e62256ec94d5905b2745d3aacde6241
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.23.0 (2021-12-21)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.22.0 (2021-11-30)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.21.0 (2021-11-29)
15
+ ------------------
16
+
17
+ * 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.
18
+
19
+ 1.20.0 (2021-11-04)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.19.0 (2021-10-19)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.19.0
1
+ 1.23.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
30
31
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
32
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
33
 
@@ -73,6 +74,7 @@ module Aws::DataExchange
73
74
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
75
  add_plugin(Aws::Plugins::TransferEncoding)
75
76
  add_plugin(Aws::Plugins::HttpChecksum)
77
+ add_plugin(Aws::Plugins::DefaultsMode)
76
78
  add_plugin(Aws::Plugins::SignatureV4)
77
79
  add_plugin(Aws::Plugins::Protocols::RestJson)
78
80
 
@@ -119,7 +121,9 @@ module Aws::DataExchange
119
121
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
122
  # are very aggressive. Construct and pass an instance of
121
123
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
124
+ # enable retries and extended timeouts. Instance profile credential
125
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
126
+ # to true.
123
127
  #
124
128
  # @option options [required, String] :region
125
129
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +177,10 @@ module Aws::DataExchange
173
177
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
178
  # a clock skew correction and retry requests with skewed client clocks.
175
179
  #
180
+ # @option options [String] :defaults_mode ("legacy")
181
+ # See {Aws::DefaultsModeConfiguration} for a list of the
182
+ # accepted modes and the configuration defaults that are included.
183
+ #
176
184
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
185
  # Set to true to disable SDK automatically adding host prefix
178
186
  # to default service endpoint when available.
@@ -275,6 +283,15 @@ module Aws::DataExchange
275
283
  # ** Please note ** When response stubbing is enabled, no HTTP
276
284
  # requests are made, and retries are disabled.
277
285
  #
286
+ # @option options [Boolean] :use_dualstack_endpoint
287
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
288
+ # will be used if available.
289
+ #
290
+ # @option options [Boolean] :use_fips_endpoint
291
+ # When set to `true`, fips compatible endpoints will be used if available.
292
+ # When a `fips` region is used, the region is normalized and this config
293
+ # is set to `true`.
294
+ #
278
295
  # @option options [Boolean] :validate_params (true)
279
296
  # When `true`, request parameters are validated before
280
297
  # sending the request.
@@ -286,7 +303,7 @@ module Aws::DataExchange
286
303
  # seconds to wait when opening a HTTP session before raising a
287
304
  # `Timeout::Error`.
288
305
  #
289
- # @option options [Integer] :http_read_timeout (60) The default
306
+ # @option options [Float] :http_read_timeout (60) The default
290
307
  # number of seconds to wait for response data. This value can
291
308
  # safely be set per-request on the session.
292
309
  #
@@ -302,6 +319,9 @@ module Aws::DataExchange
302
319
  # disables this behaviour. This value can safely be set per
303
320
  # request on the session.
304
321
  #
322
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
323
+ # in seconds.
324
+ #
305
325
  # @option options [Boolean] :http_wire_trace (false) When `true`,
306
326
  # HTTP debug output will be sent to the `:logger`.
307
327
  #
@@ -385,7 +405,7 @@ module Aws::DataExchange
385
405
  # @example Request syntax with placeholder values
386
406
  #
387
407
  # resp = client.create_data_set({
388
- # asset_type: "S3_SNAPSHOT", # required, accepts S3_SNAPSHOT, REDSHIFT_DATA_SHARE
408
+ # asset_type: "S3_SNAPSHOT", # required, accepts S3_SNAPSHOT, REDSHIFT_DATA_SHARE, API_GATEWAY_API
389
409
  # description: "Description", # required
390
410
  # name: "Name", # required
391
411
  # tags: {
@@ -396,7 +416,7 @@ module Aws::DataExchange
396
416
  # @example Response structure
397
417
  #
398
418
  # resp.arn #=> String
399
- # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
419
+ # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
400
420
  # resp.created_at #=> Time
401
421
  # resp.description #=> String
402
422
  # resp.id #=> String
@@ -559,8 +579,19 @@ module Aws::DataExchange
559
579
  # data_set_id: "Id", # required
560
580
  # revision_id: "Id", # required
561
581
  # },
582
+ # import_asset_from_api_gateway_api: {
583
+ # api_description: "ApiDescription",
584
+ # api_id: "__string", # required
585
+ # api_key: "__string",
586
+ # api_name: "__string", # required
587
+ # api_specification_md_5_hash: "__stringMin24Max24PatternAZaZ094AZaZ092AZaZ093", # required
588
+ # data_set_id: "Id", # required
589
+ # protocol_type: "REST", # required, accepts REST
590
+ # revision_id: "Id", # required
591
+ # stage: "__string", # required
592
+ # },
562
593
  # },
563
- # 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
594
+ # 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
564
595
  # })
565
596
  #
566
597
  # @example Response structure
@@ -603,6 +634,17 @@ module Aws::DataExchange
603
634
  # resp.details.import_assets_from_redshift_data_shares.asset_sources[0].data_share_arn #=> String
604
635
  # resp.details.import_assets_from_redshift_data_shares.data_set_id #=> String
605
636
  # resp.details.import_assets_from_redshift_data_shares.revision_id #=> String
637
+ # resp.details.import_asset_from_api_gateway_api.api_description #=> String
638
+ # resp.details.import_asset_from_api_gateway_api.api_id #=> String
639
+ # resp.details.import_asset_from_api_gateway_api.api_key #=> String
640
+ # resp.details.import_asset_from_api_gateway_api.api_name #=> String
641
+ # resp.details.import_asset_from_api_gateway_api.api_specification_md_5_hash #=> String
642
+ # resp.details.import_asset_from_api_gateway_api.api_specification_upload_url #=> String
643
+ # resp.details.import_asset_from_api_gateway_api.api_specification_upload_url_expires_at #=> Time
644
+ # resp.details.import_asset_from_api_gateway_api.data_set_id #=> String
645
+ # resp.details.import_asset_from_api_gateway_api.protocol_type #=> String, one of "REST"
646
+ # resp.details.import_asset_from_api_gateway_api.revision_id #=> String
647
+ # resp.details.import_asset_from_api_gateway_api.stage #=> String
606
648
  # resp.errors #=> Array
607
649
  # 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"
608
650
  # resp.errors[0].details.import_asset_from_signed_url_job_error_details.asset_name #=> String
@@ -616,7 +658,7 @@ module Aws::DataExchange
616
658
  # resp.errors[0].resource_type #=> String, one of "REVISION", "ASSET", "DATA_SET"
617
659
  # resp.id #=> String
618
660
  # resp.state #=> String, one of "WAITING", "IN_PROGRESS", "ERROR", "COMPLETED", "CANCELLED", "TIMED_OUT"
619
- # 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"
661
+ # 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"
620
662
  # resp.updated_at #=> Time
621
663
  #
622
664
  # @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateJob AWS API Documentation
@@ -813,7 +855,16 @@ module Aws::DataExchange
813
855
  # resp.arn #=> String
814
856
  # resp.asset_details.s3_snapshot_asset.size #=> Float
815
857
  # resp.asset_details.redshift_data_share_asset.arn #=> String
816
- # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
858
+ # resp.asset_details.api_gateway_api_asset.api_description #=> String
859
+ # resp.asset_details.api_gateway_api_asset.api_endpoint #=> String
860
+ # resp.asset_details.api_gateway_api_asset.api_id #=> String
861
+ # resp.asset_details.api_gateway_api_asset.api_key #=> String
862
+ # resp.asset_details.api_gateway_api_asset.api_name #=> String
863
+ # resp.asset_details.api_gateway_api_asset.api_specification_download_url #=> String
864
+ # resp.asset_details.api_gateway_api_asset.api_specification_download_url_expires_at #=> Time
865
+ # resp.asset_details.api_gateway_api_asset.protocol_type #=> String, one of "REST"
866
+ # resp.asset_details.api_gateway_api_asset.stage #=> String
867
+ # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
817
868
  # resp.created_at #=> Time
818
869
  # resp.data_set_id #=> String
819
870
  # resp.id #=> String
@@ -858,7 +909,7 @@ module Aws::DataExchange
858
909
  # @example Response structure
859
910
  #
860
911
  # resp.arn #=> String
861
- # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
912
+ # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
862
913
  # resp.created_at #=> Time
863
914
  # resp.description #=> String
864
915
  # resp.id #=> String
@@ -980,6 +1031,17 @@ module Aws::DataExchange
980
1031
  # resp.details.import_assets_from_redshift_data_shares.asset_sources[0].data_share_arn #=> String
981
1032
  # resp.details.import_assets_from_redshift_data_shares.data_set_id #=> String
982
1033
  # resp.details.import_assets_from_redshift_data_shares.revision_id #=> String
1034
+ # resp.details.import_asset_from_api_gateway_api.api_description #=> String
1035
+ # resp.details.import_asset_from_api_gateway_api.api_id #=> String
1036
+ # resp.details.import_asset_from_api_gateway_api.api_key #=> String
1037
+ # resp.details.import_asset_from_api_gateway_api.api_name #=> String
1038
+ # resp.details.import_asset_from_api_gateway_api.api_specification_md_5_hash #=> String
1039
+ # resp.details.import_asset_from_api_gateway_api.api_specification_upload_url #=> String
1040
+ # resp.details.import_asset_from_api_gateway_api.api_specification_upload_url_expires_at #=> Time
1041
+ # resp.details.import_asset_from_api_gateway_api.data_set_id #=> String
1042
+ # resp.details.import_asset_from_api_gateway_api.protocol_type #=> String, one of "REST"
1043
+ # resp.details.import_asset_from_api_gateway_api.revision_id #=> String
1044
+ # resp.details.import_asset_from_api_gateway_api.stage #=> String
983
1045
  # resp.errors #=> Array
984
1046
  # 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"
985
1047
  # resp.errors[0].details.import_asset_from_signed_url_job_error_details.asset_name #=> String
@@ -993,7 +1055,7 @@ module Aws::DataExchange
993
1055
  # resp.errors[0].resource_type #=> String, one of "REVISION", "ASSET", "DATA_SET"
994
1056
  # resp.id #=> String
995
1057
  # resp.state #=> String, one of "WAITING", "IN_PROGRESS", "ERROR", "COMPLETED", "CANCELLED", "TIMED_OUT"
996
- # 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"
1058
+ # 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"
997
1059
  # resp.updated_at #=> Time
998
1060
  #
999
1061
  # @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetJob AWS API Documentation
@@ -1128,7 +1190,7 @@ module Aws::DataExchange
1128
1190
  #
1129
1191
  # resp.data_sets #=> Array
1130
1192
  # resp.data_sets[0].arn #=> String
1131
- # resp.data_sets[0].asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
1193
+ # resp.data_sets[0].asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
1132
1194
  # resp.data_sets[0].created_at #=> Time
1133
1195
  # resp.data_sets[0].description #=> String
1134
1196
  # resp.data_sets[0].id #=> String
@@ -1262,6 +1324,17 @@ module Aws::DataExchange
1262
1324
  # resp.jobs[0].details.import_assets_from_redshift_data_shares.asset_sources[0].data_share_arn #=> String
1263
1325
  # resp.jobs[0].details.import_assets_from_redshift_data_shares.data_set_id #=> String
1264
1326
  # resp.jobs[0].details.import_assets_from_redshift_data_shares.revision_id #=> String
1327
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.api_description #=> String
1328
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.api_id #=> String
1329
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.api_key #=> String
1330
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.api_name #=> String
1331
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.api_specification_md_5_hash #=> String
1332
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.api_specification_upload_url #=> String
1333
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.api_specification_upload_url_expires_at #=> Time
1334
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.data_set_id #=> String
1335
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.protocol_type #=> String, one of "REST"
1336
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.revision_id #=> String
1337
+ # resp.jobs[0].details.import_asset_from_api_gateway_api.stage #=> String
1265
1338
  # resp.jobs[0].errors #=> Array
1266
1339
  # 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"
1267
1340
  # resp.jobs[0].errors[0].details.import_asset_from_signed_url_job_error_details.asset_name #=> String
@@ -1275,7 +1348,7 @@ module Aws::DataExchange
1275
1348
  # resp.jobs[0].errors[0].resource_type #=> String, one of "REVISION", "ASSET", "DATA_SET"
1276
1349
  # resp.jobs[0].id #=> String
1277
1350
  # resp.jobs[0].state #=> String, one of "WAITING", "IN_PROGRESS", "ERROR", "COMPLETED", "CANCELLED", "TIMED_OUT"
1278
- # 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"
1351
+ # 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"
1279
1352
  # resp.jobs[0].updated_at #=> Time
1280
1353
  # resp.next_token #=> String
1281
1354
  #
@@ -1321,7 +1394,16 @@ module Aws::DataExchange
1321
1394
  # resp.assets[0].arn #=> String
1322
1395
  # resp.assets[0].asset_details.s3_snapshot_asset.size #=> Float
1323
1396
  # resp.assets[0].asset_details.redshift_data_share_asset.arn #=> String
1324
- # resp.assets[0].asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
1397
+ # resp.assets[0].asset_details.api_gateway_api_asset.api_description #=> String
1398
+ # resp.assets[0].asset_details.api_gateway_api_asset.api_endpoint #=> String
1399
+ # resp.assets[0].asset_details.api_gateway_api_asset.api_id #=> String
1400
+ # resp.assets[0].asset_details.api_gateway_api_asset.api_key #=> String
1401
+ # resp.assets[0].asset_details.api_gateway_api_asset.api_name #=> String
1402
+ # resp.assets[0].asset_details.api_gateway_api_asset.api_specification_download_url #=> String
1403
+ # resp.assets[0].asset_details.api_gateway_api_asset.api_specification_download_url_expires_at #=> Time
1404
+ # resp.assets[0].asset_details.api_gateway_api_asset.protocol_type #=> String, one of "REST"
1405
+ # resp.assets[0].asset_details.api_gateway_api_asset.stage #=> String
1406
+ # resp.assets[0].asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
1325
1407
  # resp.assets[0].created_at #=> Time
1326
1408
  # resp.assets[0].data_set_id #=> String
1327
1409
  # resp.assets[0].id #=> String
@@ -1368,6 +1450,62 @@ module Aws::DataExchange
1368
1450
  req.send_request(options)
1369
1451
  end
1370
1452
 
1453
+ # This operation invokes an API Gateway API asset. The request is
1454
+ # proxied to the provider’s API Gateway API.
1455
+ #
1456
+ # @option params [String] :body
1457
+ #
1458
+ # @option params [Hash<String,String>] :query_string_parameters
1459
+ #
1460
+ # @option params [required, String] :asset_id
1461
+ #
1462
+ # @option params [required, String] :data_set_id
1463
+ #
1464
+ # @option params [Hash<String,String>] :request_headers
1465
+ #
1466
+ # @option params [String] :method
1467
+ #
1468
+ # @option params [String] :path
1469
+ #
1470
+ # @option params [required, String] :revision_id
1471
+ #
1472
+ # @return [Types::SendApiAssetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1473
+ #
1474
+ # * {Types::SendApiAssetResponse#body #body} => String
1475
+ # * {Types::SendApiAssetResponse#response_headers #response_headers} => Hash&lt;String,String&gt;
1476
+ #
1477
+ # @example Request syntax with placeholder values
1478
+ #
1479
+ # resp = client.send_api_asset({
1480
+ # body: "__string",
1481
+ # query_string_parameters: {
1482
+ # "__string" => "__string",
1483
+ # },
1484
+ # asset_id: "__string", # required
1485
+ # data_set_id: "__string", # required
1486
+ # request_headers: {
1487
+ # "__string" => "__string",
1488
+ # },
1489
+ # method: "__string",
1490
+ # path: "__string",
1491
+ # revision_id: "__string", # required
1492
+ # })
1493
+ #
1494
+ # @example Response structure
1495
+ #
1496
+ # resp.body #=> String
1497
+ # resp.response_headers #=> Hash
1498
+ # resp.response_headers["__string"] #=> String
1499
+ #
1500
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/SendApiAsset AWS API Documentation
1501
+ #
1502
+ # @overload send_api_asset(params = {})
1503
+ # @param [Hash] params ({})
1504
+ def send_api_asset(params = {}, options = {})
1505
+ req = build_request(:send_api_asset, params)
1506
+ req.send_request(options)
1507
+ end
1508
+
1371
1509
  # This operation starts a job.
1372
1510
  #
1373
1511
  # @option params [required, String] :job_id
@@ -1448,7 +1586,10 @@ module Aws::DataExchange
1448
1586
  # @option params [required, String] :name
1449
1587
  # The name of the asset. When importing from Amazon S3, the S3 object
1450
1588
  # key is used as the asset name. When exporting to Amazon S3, the asset
1451
- # name is used as default target S3 object key.
1589
+ # name is used as default target S3 object key. When importing from
1590
+ # Amazon API Gateway API, the API name is used as the asset name. When
1591
+ # importing from Amazon Redshift, the datashare name is used as the
1592
+ # asset name.
1452
1593
  #
1453
1594
  # @option params [required, String] :revision_id
1454
1595
  #
@@ -1479,7 +1620,16 @@ module Aws::DataExchange
1479
1620
  # resp.arn #=> String
1480
1621
  # resp.asset_details.s3_snapshot_asset.size #=> Float
1481
1622
  # resp.asset_details.redshift_data_share_asset.arn #=> String
1482
- # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
1623
+ # resp.asset_details.api_gateway_api_asset.api_description #=> String
1624
+ # resp.asset_details.api_gateway_api_asset.api_endpoint #=> String
1625
+ # resp.asset_details.api_gateway_api_asset.api_id #=> String
1626
+ # resp.asset_details.api_gateway_api_asset.api_key #=> String
1627
+ # resp.asset_details.api_gateway_api_asset.api_name #=> String
1628
+ # resp.asset_details.api_gateway_api_asset.api_specification_download_url #=> String
1629
+ # resp.asset_details.api_gateway_api_asset.api_specification_download_url_expires_at #=> Time
1630
+ # resp.asset_details.api_gateway_api_asset.protocol_type #=> String, one of "REST"
1631
+ # resp.asset_details.api_gateway_api_asset.stage #=> String
1632
+ # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
1483
1633
  # resp.created_at #=> Time
1484
1634
  # resp.data_set_id #=> String
1485
1635
  # resp.id #=> String
@@ -1531,7 +1681,7 @@ module Aws::DataExchange
1531
1681
  # @example Response structure
1532
1682
  #
1533
1683
  # resp.arn #=> String
1534
- # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE"
1684
+ # resp.asset_type #=> String, one of "S3_SNAPSHOT", "REDSHIFT_DATA_SHARE", "API_GATEWAY_API"
1535
1685
  # resp.created_at #=> Time
1536
1686
  # resp.description #=> String
1537
1687
  # resp.id #=> String
@@ -1672,7 +1822,7 @@ module Aws::DataExchange
1672
1822
  params: params,
1673
1823
  config: config)
1674
1824
  context[:gem_name] = 'aws-sdk-dataexchange'
1675
- context[:gem_version] = '1.19.0'
1825
+ context[:gem_version] = '1.23.0'
1676
1826
  Seahorse::Client::Request.new(handlers, context)
1677
1827
  end
1678
1828
 
@@ -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. The asset can be a
110
- # structured data file, an image file, or some other data file that can
111
- # be stored as an S3 object, or an Amazon Redshift datashare (Preview).
112
- # When you create an import job for your files, you create an asset in
113
- # AWS Data Exchange for each of those files.
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
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-dataexchange/customizations'
48
48
  # @!group service
49
49
  module Aws::DataExchange
50
50
 
51
- GEM_VERSION = '1.19.0'
51
+ GEM_VERSION = '1.23.0'
52
52
 
53
53
  end
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.19.0
4
+ version: 1.23.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-10-19 00:00:00.000000000 Z
11
+ date: 2021-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.121.2
22
+ version: 3.125.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.121.2
32
+ version: 3.125.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement