Class: Aws::DataExchange::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::DataExchange::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-dataexchange/client.rb
Overview
An API client for DataExchange. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::DataExchange::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#accept_data_grant(params = {}) ⇒ Types::AcceptDataGrantResponse
This operation accepts a data grant.
-
#cancel_job(params = {}) ⇒ Struct
This operation cancels a job.
-
#create_data_grant(params = {}) ⇒ Types::CreateDataGrantResponse
This operation creates a data grant.
-
#create_data_set(params = {}) ⇒ Types::CreateDataSetResponse
This operation creates a data set.
-
#create_event_action(params = {}) ⇒ Types::CreateEventActionResponse
This operation creates an event action.
-
#create_job(params = {}) ⇒ Types::CreateJobResponse
This operation creates a job.
-
#create_revision(params = {}) ⇒ Types::CreateRevisionResponse
This operation creates a revision for a data set.
-
#delete_asset(params = {}) ⇒ Struct
This operation deletes an asset.
-
#delete_data_grant(params = {}) ⇒ Struct
This operation deletes a data grant.
-
#delete_data_set(params = {}) ⇒ Struct
This operation deletes a data set.
-
#delete_event_action(params = {}) ⇒ Struct
This operation deletes the event action.
-
#delete_revision(params = {}) ⇒ Struct
This operation deletes a revision.
-
#get_asset(params = {}) ⇒ Types::GetAssetResponse
This operation returns information about an asset.
-
#get_data_grant(params = {}) ⇒ Types::GetDataGrantResponse
This operation returns information about a data grant.
-
#get_data_set(params = {}) ⇒ Types::GetDataSetResponse
This operation returns information about a data set.
-
#get_event_action(params = {}) ⇒ Types::GetEventActionResponse
This operation retrieves information about an event action.
-
#get_job(params = {}) ⇒ Types::GetJobResponse
This operation returns information about a job.
-
#get_received_data_grant(params = {}) ⇒ Types::GetReceivedDataGrantResponse
This operation returns information about a received data grant.
-
#get_revision(params = {}) ⇒ Types::GetRevisionResponse
This operation returns information about a revision.
-
#list_data_grants(params = {}) ⇒ Types::ListDataGrantsResponse
This operation returns information about all data grants.
-
#list_data_set_revisions(params = {}) ⇒ Types::ListDataSetRevisionsResponse
This operation lists a data set’s revisions sorted by CreatedAt in descending order.
-
#list_data_sets(params = {}) ⇒ Types::ListDataSetsResponse
This operation lists your data sets.
-
#list_event_actions(params = {}) ⇒ Types::ListEventActionsResponse
This operation lists your event actions.
-
#list_jobs(params = {}) ⇒ Types::ListJobsResponse
This operation lists your jobs sorted by CreatedAt in descending order.
-
#list_received_data_grants(params = {}) ⇒ Types::ListReceivedDataGrantsResponse
This operation returns information about all received data grants.
-
#list_revision_assets(params = {}) ⇒ Types::ListRevisionAssetsResponse
This operation lists a revision’s assets sorted alphabetically in descending order.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
This operation lists the tags on the resource.
-
#revoke_revision(params = {}) ⇒ Types::RevokeRevisionResponse
This operation revokes subscribers’ access to a revision.
-
#send_api_asset(params = {}) ⇒ Types::SendApiAssetResponse
This operation invokes an API Gateway API asset.
-
#send_data_set_notification(params = {}) ⇒ Struct
The type of event associated with the data set.
-
#start_job(params = {}) ⇒ Struct
This operation starts a job.
-
#tag_resource(params = {}) ⇒ Struct
This operation tags a resource.
-
#untag_resource(params = {}) ⇒ Struct
This operation removes one or more tags from a resource.
-
#update_asset(params = {}) ⇒ Types::UpdateAssetResponse
This operation updates an asset.
-
#update_data_set(params = {}) ⇒ Types::UpdateDataSetResponse
This operation updates a data set.
-
#update_event_action(params = {}) ⇒ Types::UpdateEventActionResponse
This operation updates the event action.
-
#update_revision(params = {}) ⇒ Types::UpdateRevisionResponse
This operation updates a revision.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
444 445 446 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 444 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2735 2736 2737 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2735 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2738 2739 2740 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2738 def errors_module Errors end |
Instance Method Details
#accept_data_grant(params = {}) ⇒ Types::AcceptDataGrantResponse
This operation accepts a data grant.
497 498 499 500 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 497 def accept_data_grant(params = {}, = {}) req = build_request(:accept_data_grant, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2708 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::DataExchange') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-dataexchange' context[:gem_version] = '1.61.0' Seahorse::Client::Request.new(handlers, context) end |
#cancel_job(params = {}) ⇒ Struct
This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state.
520 521 522 523 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 520 def cancel_job(params = {}, = {}) req = build_request(:cancel_job, params) req.send_request() end |
#create_data_grant(params = {}) ⇒ Types::CreateDataGrantResponse
This operation creates a data grant.
603 604 605 606 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 603 def create_data_grant(params = {}, = {}) req = build_request(:create_data_grant, params) req.send_request() end |
#create_data_set(params = {}) ⇒ Types::CreateDataSetResponse
This operation creates a data set.
672 673 674 675 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 672 def create_data_set(params = {}, = {}) req = build_request(:create_data_set, params) req.send_request() end |
#create_event_action(params = {}) ⇒ Types::CreateEventActionResponse
This operation creates an event action.
732 733 734 735 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 732 def create_event_action(params = {}, = {}) req = build_request(:create_event_action, params) req.send_request() end |
#create_job(params = {}) ⇒ Types::CreateJobResponse
This operation creates a job.
968 969 970 971 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 968 def create_job(params = {}, = {}) req = build_request(:create_job, params) req.send_request() end |
#create_revision(params = {}) ⇒ Types::CreateRevisionResponse
This operation creates a revision for a data set.
1033 1034 1035 1036 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1033 def create_revision(params = {}, = {}) req = build_request(:create_revision, params) req.send_request() end |
#delete_asset(params = {}) ⇒ Struct
This operation deletes an asset.
1063 1064 1065 1066 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1063 def delete_asset(params = {}, = {}) req = build_request(:delete_asset, params) req.send_request() end |
#delete_data_grant(params = {}) ⇒ Struct
This operation deletes a data grant.
1085 1086 1087 1088 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1085 def delete_data_grant(params = {}, = {}) req = build_request(:delete_data_grant, params) req.send_request() end |
#delete_data_set(params = {}) ⇒ Struct
This operation deletes a data set.
1107 1108 1109 1110 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1107 def delete_data_set(params = {}, = {}) req = build_request(:delete_data_set, params) req.send_request() end |
#delete_event_action(params = {}) ⇒ Struct
This operation deletes the event action.
1129 1130 1131 1132 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1129 def delete_event_action(params = {}, = {}) req = build_request(:delete_event_action, params) req.send_request() end |
#delete_revision(params = {}) ⇒ Struct
This operation deletes a revision.
1155 1156 1157 1158 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1155 def delete_revision(params = {}, = {}) req = build_request(:delete_revision, params) req.send_request() end |
#get_asset(params = {}) ⇒ Types::GetAssetResponse
This operation returns information about an asset.
1242 1243 1244 1245 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1242 def get_asset(params = {}, = {}) req = build_request(:get_asset, params) req.send_request() end |
#get_data_grant(params = {}) ⇒ Types::GetDataGrantResponse
This operation returns information about a data grant.
1299 1300 1301 1302 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1299 def get_data_grant(params = {}, = {}) req = build_request(:get_data_grant, params) req.send_request() end |
#get_data_set(params = {}) ⇒ Types::GetDataSetResponse
This operation returns information about a data set.
1349 1350 1351 1352 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1349 def get_data_set(params = {}, = {}) req = build_request(:get_data_set, params) req.send_request() end |
#get_event_action(params = {}) ⇒ Types::GetEventActionResponse
This operation retrieves information about an event action.
1390 1391 1392 1393 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1390 def get_event_action(params = {}, = {}) req = build_request(:get_event_action, params) req.send_request() end |
#get_job(params = {}) ⇒ Types::GetJobResponse
This operation returns information about a job.
1513 1514 1515 1516 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1513 def get_job(params = {}, = {}) req = build_request(:get_job, params) req.send_request() end |
#get_received_data_grant(params = {}) ⇒ Types::GetReceivedDataGrantResponse
This operation returns information about a received data grant.
1565 1566 1567 1568 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1565 def get_received_data_grant(params = {}, = {}) req = build_request(:get_received_data_grant, params) req.send_request() end |
#get_revision(params = {}) ⇒ Types::GetRevisionResponse
This operation returns information about a revision.
1620 1621 1622 1623 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1620 def get_revision(params = {}, = {}) req = build_request(:get_revision, params) req.send_request() end |
#list_data_grants(params = {}) ⇒ Types::ListDataGrantsResponse
This operation returns information about all data grants.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1669 1670 1671 1672 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1669 def list_data_grants(params = {}, = {}) req = build_request(:list_data_grants, params) req.send_request() end |
#list_data_set_revisions(params = {}) ⇒ Types::ListDataSetRevisionsResponse
This operation lists a data set’s revisions sorted by CreatedAt in descending order.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1722 1723 1724 1725 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1722 def list_data_set_revisions(params = {}, = {}) req = build_request(:list_data_set_revisions, params) req.send_request() end |
#list_data_sets(params = {}) ⇒ Types::ListDataSetsResponse
This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1777 1778 1779 1780 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1777 def list_data_sets(params = {}, = {}) req = build_request(:list_data_sets, params) req.send_request() end |
#list_event_actions(params = {}) ⇒ Types::ListEventActionsResponse
This operation lists your event actions.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1827 1828 1829 1830 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1827 def list_event_actions(params = {}, = {}) req = build_request(:list_event_actions, params) req.send_request() end |
#list_jobs(params = {}) ⇒ Types::ListJobsResponse
This operation lists your jobs sorted by CreatedAt in descending order.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1962 1963 1964 1965 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 1962 def list_jobs(params = {}, = {}) req = build_request(:list_jobs, params) req.send_request() end |
#list_received_data_grants(params = {}) ⇒ Types::ListReceivedDataGrantsResponse
This operation returns information about all received data grants.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2014 2015 2016 2017 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2014 def list_received_data_grants(params = {}, = {}) req = build_request(:list_received_data_grants, params) req.send_request() end |
#list_revision_assets(params = {}) ⇒ Types::ListRevisionAssetsResponse
This operation lists a revision’s assets sorted alphabetically in descending order.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2103 2104 2105 2106 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2103 def list_revision_assets(params = {}, = {}) req = build_request(:list_revision_assets, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
This operation lists the tags on the resource.
2133 2134 2135 2136 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2133 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#revoke_revision(params = {}) ⇒ Types::RevokeRevisionResponse
This operation revokes subscribers’ access to a revision.
2190 2191 2192 2193 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2190 def revoke_revision(params = {}, = {}) req = build_request(:revoke_revision, params) req.send_request() end |
#send_api_asset(params = {}) ⇒ Types::SendApiAssetResponse
This operation invokes an API Gateway API asset. The request is proxied to the provider’s API Gateway API.
2260 2261 2262 2263 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2260 def send_api_asset(params = {}, = {}) req = build_request(:send_api_asset, params) req.send_request() end |
#send_data_set_notification(params = {}) ⇒ Struct
The type of event associated with the data set.
2350 2351 2352 2353 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2350 def send_data_set_notification(params = {}, = {}) req = build_request(:send_data_set_notification, params) req.send_request() end |
#start_job(params = {}) ⇒ Struct
This operation starts a job.
2372 2373 2374 2375 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2372 def start_job(params = {}, = {}) req = build_request(:start_job, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
This operation tags a resource.
2401 2402 2403 2404 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2401 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
This operation removes one or more tags from a resource.
2428 2429 2430 2431 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2428 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_asset(params = {}) ⇒ Types::UpdateAssetResponse
This operation updates an asset.
2526 2527 2528 2529 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2526 def update_asset(params = {}, = {}) req = build_request(:update_asset, params) req.send_request() end |
#update_data_set(params = {}) ⇒ Types::UpdateDataSetResponse
This operation updates a data set.
2581 2582 2583 2584 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2581 def update_data_set(params = {}, = {}) req = build_request(:update_data_set, params) req.send_request() end |
#update_event_action(params = {}) ⇒ Types::UpdateEventActionResponse
This operation updates the event action.
2637 2638 2639 2640 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2637 def update_event_action(params = {}, = {}) req = build_request(:update_event_action, params) req.send_request() end |
#update_revision(params = {}) ⇒ Types::UpdateRevisionResponse
This operation updates a revision.
2699 2700 2701 2702 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2699 def update_revision(params = {}, = {}) req = build_request(:update_revision, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2728 2729 2730 |
# File 'lib/aws-sdk-dataexchange/client.rb', line 2728 def waiter_names [] end |