Class: Aws::RTBFabric::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::RTBFabric::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb
Overview
An API client for RTBFabric. To construct a client, you need to configure a :region and :credentials.
client = Aws::RTBFabric::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#accept_link(params = {}) ⇒ Types::AcceptLinkResponse
Accepts a link request between RTB applications.
-
#create_inbound_external_link(params = {}) ⇒ Types::CreateInboundExternalLinkResponse
Creates an inbound external link.
-
#create_link(params = {}) ⇒ Types::CreateLinkResponse
Creates a new link between RTB applications.
-
#create_outbound_external_link(params = {}) ⇒ Types::CreateOutboundExternalLinkResponse
Creates an outbound external link.
-
#create_requester_gateway(params = {}) ⇒ Types::CreateRequesterGatewayResponse
Creates a requester gateway.
-
#create_responder_gateway(params = {}) ⇒ Types::CreateResponderGatewayResponse
Creates a responder gateway.
-
#delete_inbound_external_link(params = {}) ⇒ Types::DeleteInboundExternalLinkResponse
Deletes an inbound external link.
-
#delete_link(params = {}) ⇒ Types::DeleteLinkResponse
Deletes a link between RTB applications.
-
#delete_outbound_external_link(params = {}) ⇒ Types::DeleteOutboundExternalLinkResponse
Deletes an outbound external link.
-
#delete_requester_gateway(params = {}) ⇒ Types::DeleteRequesterGatewayResponse
Deletes a requester gateway.
-
#delete_responder_gateway(params = {}) ⇒ Types::DeleteResponderGatewayResponse
Deletes a responder gateway.
-
#get_inbound_external_link(params = {}) ⇒ Types::GetInboundExternalLinkResponse
Retrieves information about an inbound external link.
-
#get_link(params = {}) ⇒ Types::GetLinkResponse
Retrieves information about a link between RTB applications.
-
#get_outbound_external_link(params = {}) ⇒ Types::GetOutboundExternalLinkResponse
Retrieves information about an outbound external link.
-
#get_requester_gateway(params = {}) ⇒ Types::GetRequesterGatewayResponse
Retrieves information about a requester gateway.
-
#get_responder_gateway(params = {}) ⇒ Types::GetResponderGatewayResponse
Retrieves information about a responder gateway.
-
#list_links(params = {}) ⇒ Types::ListLinksResponse
Lists links associated with an RTB application.
-
#list_requester_gateways(params = {}) ⇒ Types::ListRequesterGatewaysResponse
Lists requester gateways.
-
#list_responder_gateways(params = {}) ⇒ Types::ListResponderGatewaysResponse
Lists reponder gateways.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists tags for a resource.
-
#reject_link(params = {}) ⇒ Types::RejectLinkResponse
Rejects a link request between RTB applications.
-
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes a tag or tags from a resource.
-
#update_link(params = {}) ⇒ Types::UpdateLinkResponse
Updates the configuration of a link between RTB applications.
-
#update_link_module_flow(params = {}) ⇒ Types::UpdateLinkModuleFlowResponse
Updates a link module flow.
-
#update_requester_gateway(params = {}) ⇒ Types::UpdateRequesterGatewayResponse
Updates a requester gateway.
-
#update_responder_gateway(params = {}) ⇒ Types::UpdateResponderGatewayResponse
Updates a responder gateway.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 473 def initialize(*args) super end |
Instance Method Details
#accept_link(params = {}) ⇒ Types::AcceptLinkResponse
Accepts a link request between RTB applications.
When a requester RTB application requests to link with a responder RTB application, the responder can use this operation to accept the link request and establish the connection.
621 622 623 624 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 621 def accept_link(params = {}, = {}) req = build_request(:accept_link, params) req.send_request() end |
#create_inbound_external_link(params = {}) ⇒ Types::CreateInboundExternalLinkResponse
Creates an inbound external link.
701 702 703 704 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 701 def create_inbound_external_link(params = {}, = {}) req = build_request(:create_inbound_external_link, params) req.send_request() end |
#create_link(params = {}) ⇒ Types::CreateLinkResponse
Creates a new link between RTB applications.
Establishes a connection that allows RTB applications to communicate and exchange bid requests and responses.
860 861 862 863 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 860 def create_link(params = {}, = {}) req = build_request(:create_link, params) req.send_request() end |
#create_outbound_external_link(params = {}) ⇒ Types::CreateOutboundExternalLinkResponse
Creates an outbound external link.
928 929 930 931 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 928 def create_outbound_external_link(params = {}, = {}) req = build_request(:create_outbound_external_link, params) req.send_request() end |
#create_requester_gateway(params = {}) ⇒ Types::CreateRequesterGatewayResponse
Creates a requester gateway.
1011 1012 1013 1014 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1011 def create_requester_gateway(params = {}, = {}) req = build_request(:create_requester_gateway, params) req.send_request() end |
#create_responder_gateway(params = {}) ⇒ Types::CreateResponderGatewayResponse
Creates a responder gateway.
1128 1129 1130 1131 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1128 def create_responder_gateway(params = {}, = {}) req = build_request(:create_responder_gateway, params) req.send_request() end |
#delete_inbound_external_link(params = {}) ⇒ Types::DeleteInboundExternalLinkResponse
Deletes an inbound external link.
1178 1179 1180 1181 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1178 def delete_inbound_external_link(params = {}, = {}) req = build_request(:delete_inbound_external_link, params) req.send_request() end |
#delete_link(params = {}) ⇒ Types::DeleteLinkResponse
Deletes a link between RTB applications.
Permanently removes the connection between RTB applications. This action cannot be undone.
1231 1232 1233 1234 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1231 def delete_link(params = {}, = {}) req = build_request(:delete_link, params) req.send_request() end |
#delete_outbound_external_link(params = {}) ⇒ Types::DeleteOutboundExternalLinkResponse
Deletes an outbound external link.
1281 1282 1283 1284 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1281 def delete_outbound_external_link(params = {}, = {}) req = build_request(:delete_outbound_external_link, params) req.send_request() end |
#delete_requester_gateway(params = {}) ⇒ Types::DeleteRequesterGatewayResponse
Deletes a requester gateway.
1326 1327 1328 1329 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1326 def delete_requester_gateway(params = {}, = {}) req = build_request(:delete_requester_gateway, params) req.send_request() end |
#delete_responder_gateway(params = {}) ⇒ Types::DeleteResponderGatewayResponse
Deletes a responder gateway.
1371 1372 1373 1374 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1371 def delete_responder_gateway(params = {}, = {}) req = build_request(:delete_responder_gateway, params) req.send_request() end |
#get_inbound_external_link(params = {}) ⇒ Types::GetInboundExternalLinkResponse
Retrieves information about an inbound external link.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- inbound_external_link_active
1487 1488 1489 1490 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1487 def get_inbound_external_link(params = {}, = {}) req = build_request(:get_inbound_external_link, params) req.send_request() end |
#get_link(params = {}) ⇒ Types::GetLinkResponse
Retrieves information about a link between RTB applications.
Returns detailed information about the link configuration, status, and associated RTB applications.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- link_accepted
- link_active
1612 1613 1614 1615 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1612 def get_link(params = {}, = {}) req = build_request(:get_link, params) req.send_request() end |
#get_outbound_external_link(params = {}) ⇒ Types::GetOutboundExternalLinkResponse
Retrieves information about an outbound external link.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- outbound_external_link_active
1682 1683 1684 1685 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1682 def get_outbound_external_link(params = {}, = {}) req = build_request(:get_outbound_external_link, params) req.send_request() end |
#get_requester_gateway(params = {}) ⇒ Types::GetRequesterGatewayResponse
Retrieves information about a requester gateway.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- requester_gateway_active
- requester_gateway_deleted
1770 1771 1772 1773 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1770 def get_requester_gateway(params = {}, = {}) req = build_request(:get_requester_gateway, params) req.send_request() end |
#get_responder_gateway(params = {}) ⇒ Types::GetResponderGatewayResponse
Retrieves information about a responder gateway.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- responder_gateway_active
- responder_gateway_deleted
1879 1880 1881 1882 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 1879 def get_responder_gateway(params = {}, = {}) req = build_request(:get_responder_gateway, params) req.send_request() end |
#list_links(params = {}) ⇒ Types::ListLinksResponse
Lists links associated with an RTB application.
Returns a list of all links for the specified RTB application, including their status and configuration details.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2007 2008 2009 2010 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2007 def list_links(params = {}, = {}) req = build_request(:list_links, params) req.send_request() end |
#list_requester_gateways(params = {}) ⇒ Types::ListRequesterGatewaysResponse
Lists requester gateways.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2088 2089 2090 2091 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2088 def list_requester_gateways(params = {}, = {}) req = build_request(:list_requester_gateways, params) req.send_request() end |
#list_responder_gateways(params = {}) ⇒ Types::ListResponderGatewaysResponse
Lists reponder gateways.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2169 2170 2171 2172 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2169 def list_responder_gateways(params = {}, = {}) req = build_request(:list_responder_gateways, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists tags for a resource.
2216 2217 2218 2219 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2216 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#reject_link(params = {}) ⇒ Types::RejectLinkResponse
Rejects a link request between RTB applications.
When a requester RTB application requests to link with a responder RTB application, the responder can use this operation to decline the link request.
2330 2331 2332 2333 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2330 def reject_link(params = {}, = {}) req = build_request(:reject_link, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified resource.
2376 2377 2378 2379 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2376 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes a tag or tags from a resource.
2420 2421 2422 2423 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2420 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_link(params = {}) ⇒ Types::UpdateLinkResponse
Updates the configuration of a link between RTB applications.
Allows you to modify settings and parameters for an existing link.
2491 2492 2493 2494 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2491 def update_link(params = {}, = {}) req = build_request(:update_link, params) req.send_request() end |
#update_link_module_flow(params = {}) ⇒ Types::UpdateLinkModuleFlowResponse
Updates a link module flow.
2607 2608 2609 2610 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2607 def update_link_module_flow(params = {}, = {}) req = build_request(:update_link_module_flow, params) req.send_request() end |
#update_requester_gateway(params = {}) ⇒ Types::UpdateRequesterGatewayResponse
Updates a requester gateway.
2665 2666 2667 2668 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2665 def update_requester_gateway(params = {}, = {}) req = build_request(:update_requester_gateway, params) req.send_request() end |
#update_responder_gateway(params = {}) ⇒ Types::UpdateResponderGatewayResponse
Updates a responder gateway.
2760 2761 2762 2763 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2760 def update_responder_gateway(params = {}, = {}) req = build_request(:update_responder_gateway, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Basic Usage
A waiter will call an API operation until:
- It is successful
- It enters a terminal state
- It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success or :failure from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
Valid Waiters
The following table lists the valid waiter names, the operations they call,
and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts |
|---|---|---|---|
| inbound_external_link_active | #get_inbound_external_link | 30 | 5 |
| link_accepted | #get_link | 30 | 5 |
| link_active | #get_link | 30 | 5 |
| outbound_external_link_active | #get_outbound_external_link | 30 | 5 |
| requester_gateway_active | #get_requester_gateway | 30 | 5 |
| requester_gateway_deleted | #get_requester_gateway | 30 | 5 |
| responder_gateway_active | #get_responder_gateway | 30 | 5 |
| responder_gateway_deleted | #get_responder_gateway | 30 | 5 |
2882 2883 2884 2885 2886 |
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/client.rb', line 2882 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |