Class: Aws::MediaConnect::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::MediaConnect::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb
Overview
An API client for MediaConnect. To construct a client, you need to configure a :region and :credentials.
client = Aws::MediaConnect::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
-
#add_bridge_outputs(params = {}) ⇒ Types::AddBridgeOutputsResponse
Adds outputs to an existing bridge.
-
#add_bridge_sources(params = {}) ⇒ Types::AddBridgeSourcesResponse
Adds sources to an existing bridge.
-
#add_flow_media_streams(params = {}) ⇒ Types::AddFlowMediaStreamsResponse
Adds media streams to an existing flow.
-
#add_flow_outputs(params = {}) ⇒ Types::AddFlowOutputsResponse
Adds outputs to an existing flow.
-
#add_flow_sources(params = {}) ⇒ Types::AddFlowSourcesResponse
Adds sources to a flow.
-
#add_flow_vpc_interfaces(params = {}) ⇒ Types::AddFlowVpcInterfacesResponse
Adds VPC interfaces to a flow.
-
#batch_get_router_input(params = {}) ⇒ Types::BatchGetRouterInputResponse
Retrieves information about multiple router inputs in AWS Elemental MediaConnect.
-
#batch_get_router_network_interface(params = {}) ⇒ Types::BatchGetRouterNetworkInterfaceResponse
Retrieves information about multiple router network interfaces in AWS Elemental MediaConnect.
-
#batch_get_router_output(params = {}) ⇒ Types::BatchGetRouterOutputResponse
Retrieves information about multiple router outputs in AWS Elemental MediaConnect.
-
#create_bridge(params = {}) ⇒ Types::CreateBridgeResponse
Creates a new bridge.
-
#create_flow(params = {}) ⇒ Types::CreateFlowResponse
Creates a new flow.
-
#create_gateway(params = {}) ⇒ Types::CreateGatewayResponse
Creates a new gateway.
-
#create_router_input(params = {}) ⇒ Types::CreateRouterInputResponse
Creates a new router input in AWS Elemental MediaConnect.
-
#create_router_network_interface(params = {}) ⇒ Types::CreateRouterNetworkInterfaceResponse
Creates a new router network interface in AWS Elemental MediaConnect.
-
#create_router_output(params = {}) ⇒ Types::CreateRouterOutputResponse
Creates a new router output in AWS Elemental MediaConnect.
-
#delete_bridge(params = {}) ⇒ Types::DeleteBridgeResponse
Deletes a bridge.
-
#delete_flow(params = {}) ⇒ Types::DeleteFlowResponse
Deletes a flow.
-
#delete_gateway(params = {}) ⇒ Types::DeleteGatewayResponse
Deletes a gateway.
-
#delete_router_input(params = {}) ⇒ Types::DeleteRouterInputResponse
Deletes a router input from AWS Elemental MediaConnect.
-
#delete_router_network_interface(params = {}) ⇒ Types::DeleteRouterNetworkInterfaceResponse
Deletes a router network interface from AWS Elemental MediaConnect.
-
#delete_router_output(params = {}) ⇒ Types::DeleteRouterOutputResponse
Deletes a router output from AWS Elemental MediaConnect.
-
#deregister_gateway_instance(params = {}) ⇒ Types::DeregisterGatewayInstanceResponse
Deregisters an instance.
-
#describe_bridge(params = {}) ⇒ Types::DescribeBridgeResponse
Displays the details of a bridge.
-
#describe_flow(params = {}) ⇒ Types::DescribeFlowResponse
Displays the details of a flow.
-
#describe_flow_source_metadata(params = {}) ⇒ Types::DescribeFlowSourceMetadataResponse
The
DescribeFlowSourceMetadataAPI is used to view information about the flow's source transport stream and programs. -
#describe_flow_source_thumbnail(params = {}) ⇒ Types::DescribeFlowSourceThumbnailResponse
Describes the thumbnail for the flow source.
-
#describe_gateway(params = {}) ⇒ Types::DescribeGatewayResponse
Displays the details of a gateway.
-
#describe_gateway_instance(params = {}) ⇒ Types::DescribeGatewayInstanceResponse
Displays the details of an instance.
-
#describe_offering(params = {}) ⇒ Types::DescribeOfferingResponse
Displays the details of an offering.
-
#describe_reservation(params = {}) ⇒ Types::DescribeReservationResponse
Displays the details of a reservation.
-
#get_router_input(params = {}) ⇒ Types::GetRouterInputResponse
Retrieves information about a specific router input in AWS Elemental MediaConnect.
-
#get_router_input_source_metadata(params = {}) ⇒ Types::GetRouterInputSourceMetadataResponse
Retrieves detailed metadata information about a specific router input source, including stream details and connection state.
-
#get_router_input_thumbnail(params = {}) ⇒ Types::GetRouterInputThumbnailResponse
Retrieves the thumbnail for a router input in AWS Elemental MediaConnect.
-
#get_router_network_interface(params = {}) ⇒ Types::GetRouterNetworkInterfaceResponse
Retrieves information about a specific router network interface in AWS Elemental MediaConnect.
-
#get_router_output(params = {}) ⇒ Types::GetRouterOutputResponse
Retrieves information about a specific router output in AWS Elemental MediaConnect.
-
#grant_flow_entitlements(params = {}) ⇒ Types::GrantFlowEntitlementsResponse
Grants entitlements to an existing flow.
-
#list_bridges(params = {}) ⇒ Types::ListBridgesResponse
Displays a list of bridges that are associated with this account and an optionally specified Amazon Resource Name (ARN).
-
#list_entitlements(params = {}) ⇒ Types::ListEntitlementsResponse
Displays a list of all entitlements that have been granted to this account.
-
#list_flows(params = {}) ⇒ Types::ListFlowsResponse
Displays a list of flows that are associated with this account.
-
#list_gateway_instances(params = {}) ⇒ Types::ListGatewayInstancesResponse
Displays a list of instances associated with the Amazon Web Services account.
-
#list_gateways(params = {}) ⇒ Types::ListGatewaysResponse
Displays a list of gateways that are associated with this account.
-
#list_offerings(params = {}) ⇒ Types::ListOfferingsResponse
Displays a list of all offerings that are available to this account in the current Amazon Web Services Region.
-
#list_reservations(params = {}) ⇒ Types::ListReservationsResponse
Displays a list of all reservations that have been purchased by this account in the current Amazon Web Services Region.
-
#list_router_inputs(params = {}) ⇒ Types::ListRouterInputsResponse
Retrieves a list of router inputs in AWS Elemental MediaConnect.
-
#list_router_network_interfaces(params = {}) ⇒ Types::ListRouterNetworkInterfacesResponse
Retrieves a list of router network interfaces in AWS Elemental MediaConnect.
-
#list_router_outputs(params = {}) ⇒ Types::ListRouterOutputsResponse
Retrieves a list of router outputs in AWS Elemental MediaConnect.
-
#list_tags_for_global_resource(params = {}) ⇒ Types::ListTagsForGlobalResourceResponse
Lists the tags associated with a global resource in AWS Elemental MediaConnect.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List all tags on a MediaConnect resource in the current region.
-
#purchase_offering(params = {}) ⇒ Types::PurchaseOfferingResponse
Submits a request to purchase an offering.
-
#remove_bridge_output(params = {}) ⇒ Types::RemoveBridgeOutputResponse
Removes an output from a bridge.
-
#remove_bridge_source(params = {}) ⇒ Types::RemoveBridgeSourceResponse
Removes a source from a bridge.
-
#remove_flow_media_stream(params = {}) ⇒ Types::RemoveFlowMediaStreamResponse
Removes a media stream from a flow.
-
#remove_flow_output(params = {}) ⇒ Types::RemoveFlowOutputResponse
Removes an output from an existing flow.
-
#remove_flow_source(params = {}) ⇒ Types::RemoveFlowSourceResponse
Removes a source from an existing flow.
-
#remove_flow_vpc_interface(params = {}) ⇒ Types::RemoveFlowVpcInterfaceResponse
Removes a VPC Interface from an existing flow.
-
#restart_router_input(params = {}) ⇒ Types::RestartRouterInputResponse
Restarts a router input.
-
#restart_router_output(params = {}) ⇒ Types::RestartRouterOutputResponse
Restarts a router output.
-
#revoke_flow_entitlement(params = {}) ⇒ Types::RevokeFlowEntitlementResponse
Revokes an entitlement from a flow.
-
#start_flow(params = {}) ⇒ Types::StartFlowResponse
Starts a flow.
-
#start_router_input(params = {}) ⇒ Types::StartRouterInputResponse
Starts a router input in AWS Elemental MediaConnect.
-
#start_router_output(params = {}) ⇒ Types::StartRouterOutputResponse
Starts a router output in AWS Elemental MediaConnect.
-
#stop_flow(params = {}) ⇒ Types::StopFlowResponse
Stops a flow.
-
#stop_router_input(params = {}) ⇒ Types::StopRouterInputResponse
Stops a router input in AWS Elemental MediaConnect.
-
#stop_router_output(params = {}) ⇒ Types::StopRouterOutputResponse
Stops a router output in AWS Elemental MediaConnect.
-
#tag_global_resource(params = {}) ⇒ Struct
Adds tags to a global resource in AWS Elemental MediaConnect.
-
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to a resource with the specified
resourceArnin the current region. -
#take_router_input(params = {}) ⇒ Types::TakeRouterInputResponse
Associates a router input with a router output in AWS Elemental MediaConnect.
-
#untag_global_resource(params = {}) ⇒ Struct
Removes tags from a global resource in AWS Elemental MediaConnect.
-
#untag_resource(params = {}) ⇒ Struct
Deletes specified tags from a resource in the current region.
-
#update_bridge(params = {}) ⇒ Types::UpdateBridgeResponse
Updates the bridge.
-
#update_bridge_output(params = {}) ⇒ Types::UpdateBridgeOutputResponse
Updates an existing bridge output.
-
#update_bridge_source(params = {}) ⇒ Types::UpdateBridgeSourceResponse
Updates an existing bridge source.
-
#update_bridge_state(params = {}) ⇒ Types::UpdateBridgeStateResponse
Updates the bridge state.
-
#update_flow(params = {}) ⇒ Types::UpdateFlowResponse
Updates an existing flow.
-
#update_flow_entitlement(params = {}) ⇒ Types::UpdateFlowEntitlementResponse
Updates an entitlement.
-
#update_flow_media_stream(params = {}) ⇒ Types::UpdateFlowMediaStreamResponse
Updates an existing media stream.
-
#update_flow_output(params = {}) ⇒ Types::UpdateFlowOutputResponse
Updates an existing flow output.
-
#update_flow_source(params = {}) ⇒ Types::UpdateFlowSourceResponse
Updates the source of a flow.
-
#update_gateway_instance(params = {}) ⇒ Types::UpdateGatewayInstanceResponse
Updates an existing gateway instance.
-
#update_router_input(params = {}) ⇒ Types::UpdateRouterInputResponse
Updates the configuration of an existing router input in AWS Elemental MediaConnect.
-
#update_router_network_interface(params = {}) ⇒ Types::UpdateRouterNetworkInterfaceResponse
Updates the configuration of an existing router network interface in AWS Elemental MediaConnect.
-
#update_router_output(params = {}) ⇒ Types::UpdateRouterOutputResponse
Updates the configuration of an existing router output in AWS Elemental MediaConnect.
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-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 473 def initialize(*args) super end |
Instance Method Details
#add_bridge_outputs(params = {}) ⇒ Types::AddBridgeOutputsResponse
Adds outputs to an existing bridge.
528 529 530 531 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 528 def add_bridge_outputs(params = {}, = {}) req = build_request(:add_bridge_outputs, params) req.send_request() end |
#add_bridge_sources(params = {}) ⇒ Types::AddBridgeSourcesResponse
Adds sources to an existing bridge.
592 593 594 595 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 592 def add_bridge_sources(params = {}, = {}) req = build_request(:add_bridge_sources, params) req.send_request() end |
#add_flow_media_streams(params = {}) ⇒ Types::AddFlowMediaStreamsResponse
Adds media streams to an existing flow. After you add a media stream to a flow, you can associate it with a source and/or an output that uses the ST 2110 JPEG XS or CDI protocol.
667 668 669 670 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 667 def add_flow_media_streams(params = {}, = {}) req = build_request(:add_flow_media_streams, params) req.send_request() end |
#add_flow_outputs(params = {}) ⇒ Types::AddFlowOutputsResponse
Adds outputs to an existing flow. You can create up to 50 outputs per flow.
825 826 827 828 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 825 def add_flow_outputs(params = {}, = {}) req = build_request(:add_flow_outputs, params) req.send_request() end |
#add_flow_sources(params = {}) ⇒ Types::AddFlowSourcesResponse
Adds sources to a flow.
979 980 981 982 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 979 def add_flow_sources(params = {}, = {}) req = build_request(:add_flow_sources, params) req.send_request() end |
#add_flow_vpc_interfaces(params = {}) ⇒ Types::AddFlowVpcInterfacesResponse
Adds VPC interfaces to a flow.
1032 1033 1034 1035 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 1032 def add_flow_vpc_interfaces(params = {}, = {}) req = build_request(:add_flow_vpc_interfaces, params) req.send_request() end |
#batch_get_router_input(params = {}) ⇒ Types::BatchGetRouterInputResponse
Retrieves information about multiple router inputs in AWS Elemental MediaConnect.
1152 1153 1154 1155 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 1152 def batch_get_router_input(params = {}, = {}) req = build_request(:batch_get_router_input, params) req.send_request() end |
#batch_get_router_network_interface(params = {}) ⇒ Types::BatchGetRouterNetworkInterfaceResponse
Retrieves information about multiple router network interfaces in AWS Elemental MediaConnect.
1204 1205 1206 1207 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 1204 def batch_get_router_network_interface(params = {}, = {}) req = build_request(:batch_get_router_network_interface, params) req.send_request() end |
#batch_get_router_output(params = {}) ⇒ Types::BatchGetRouterOutputResponse
Retrieves information about multiple router outputs in AWS Elemental MediaConnect.
1294 1295 1296 1297 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 1294 def batch_get_router_output(params = {}, = {}) req = build_request(:batch_get_router_output, params) req.send_request() end |
#create_bridge(params = {}) ⇒ Types::CreateBridgeResponse
Creates a new bridge. The request must include one source.
1429 1430 1431 1432 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 1429 def create_bridge(params = {}, = {}) req = build_request(:create_bridge, params) req.send_request() end |
#create_flow(params = {}) ⇒ Types::CreateFlowResponse
Creates a new flow. The request must include one source. The request optionally can include outputs (up to 50) and entitlements (up to 50).
2064 2065 2066 2067 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2064 def create_flow(params = {}, = {}) req = build_request(:create_flow, params) req.send_request() end |
#create_gateway(params = {}) ⇒ Types::CreateGatewayResponse
Creates a new gateway. The request must include at least one network (up to four).
2121 2122 2123 2124 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2121 def create_gateway(params = {}, = {}) req = build_request(:create_gateway, params) req.send_request() end |
#create_router_input(params = {}) ⇒ Types::CreateRouterInputResponse
Creates a new router input in AWS Elemental MediaConnect.
2410 2411 2412 2413 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2410 def create_router_input(params = {}, = {}) req = build_request(:create_router_input, params) req.send_request() end |
#create_router_network_interface(params = {}) ⇒ Types::CreateRouterNetworkInterfaceResponse
Creates a new router network interface in AWS Elemental MediaConnect.
2489 2490 2491 2492 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2489 def create_router_network_interface(params = {}, = {}) req = build_request(:create_router_network_interface, params) req.send_request() end |
#create_router_output(params = {}) ⇒ Types::CreateRouterOutputResponse
Creates a new router output in AWS Elemental MediaConnect.
2693 2694 2695 2696 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2693 def create_router_output(params = {}, = {}) req = build_request(:create_router_output, params) req.send_request() end |
#delete_bridge(params = {}) ⇒ Types::DeleteBridgeResponse
Deletes a bridge. Before you can delete a bridge, you must stop the bridge.
2722 2723 2724 2725 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2722 def delete_bridge(params = {}, = {}) req = build_request(:delete_bridge, params) req.send_request() end |
#delete_flow(params = {}) ⇒ Types::DeleteFlowResponse
Deletes a flow. Before you can delete a flow, you must stop the flow.
2752 2753 2754 2755 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2752 def delete_flow(params = {}, = {}) req = build_request(:delete_flow, params) req.send_request() end |
#delete_gateway(params = {}) ⇒ Types::DeleteGatewayResponse
Deletes a gateway. Before you can delete a gateway, you must deregister its instances and delete its bridges.
2781 2782 2783 2784 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2781 def delete_gateway(params = {}, = {}) req = build_request(:delete_gateway, params) req.send_request() end |
#delete_router_input(params = {}) ⇒ Types::DeleteRouterInputResponse
Deletes a router input from AWS Elemental MediaConnect.
2814 2815 2816 2817 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2814 def delete_router_input(params = {}, = {}) req = build_request(:delete_router_input, params) req.send_request() end |
#delete_router_network_interface(params = {}) ⇒ Types::DeleteRouterNetworkInterfaceResponse
Deletes a router network interface from AWS Elemental MediaConnect.
2847 2848 2849 2850 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2847 def delete_router_network_interface(params = {}, = {}) req = build_request(:delete_router_network_interface, params) req.send_request() end |
#delete_router_output(params = {}) ⇒ Types::DeleteRouterOutputResponse
Deletes a router output from AWS Elemental MediaConnect.
2880 2881 2882 2883 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2880 def delete_router_output(params = {}, = {}) req = build_request(:delete_router_output, params) req.send_request() end |
#deregister_gateway_instance(params = {}) ⇒ Types::DeregisterGatewayInstanceResponse
Deregisters an instance. Before you deregister an instance, all bridges running on the instance must be stopped. If you want to deregister an instance without stopping the bridges, you must use the --force option.
2919 2920 2921 2922 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2919 def deregister_gateway_instance(params = {}, = {}) req = build_request(:deregister_gateway_instance, params) req.send_request() end |
#describe_bridge(params = {}) ⇒ Types::DescribeBridgeResponse
Displays the details of a bridge.
2985 2986 2987 2988 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 2985 def describe_bridge(params = {}, = {}) req = build_request(:describe_bridge, params) req.send_request() end |
#describe_flow(params = {}) ⇒ Types::DescribeFlowResponse
Displays the details of a flow. The response includes the flow Amazon Resource Name (ARN), name, and Availability Zone, as well as details about the source, outputs, and entitlements.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- flow_active
- flow_deleted
- flow_standby
3261 3262 3263 3264 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3261 def describe_flow(params = {}, = {}) req = build_request(:describe_flow, params) req.send_request() end |
#describe_flow_source_metadata(params = {}) ⇒ Types::DescribeFlowSourceMetadataResponse
The DescribeFlowSourceMetadata API is used to view information about
the flow's source transport stream and programs. This API displays
status messages about the flow's source as well as details about the
program's video, audio, and other data.
3333 3334 3335 3336 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3333 def (params = {}, = {}) req = build_request(:describe_flow_source_metadata, params) req.send_request() end |
#describe_flow_source_thumbnail(params = {}) ⇒ Types::DescribeFlowSourceThumbnailResponse
Describes the thumbnail for the flow source.
3368 3369 3370 3371 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3368 def describe_flow_source_thumbnail(params = {}, = {}) req = build_request(:describe_flow_source_thumbnail, params) req.send_request() end |
#describe_gateway(params = {}) ⇒ Types::DescribeGatewayResponse
Displays the details of a gateway. The response includes the gateway Amazon Resource Name (ARN), name, and CIDR blocks, as well as details about the networks.
3409 3410 3411 3412 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3409 def describe_gateway(params = {}, = {}) req = build_request(:describe_gateway, params) req.send_request() end |
#describe_gateway_instance(params = {}) ⇒ Types::DescribeGatewayInstanceResponse
Displays the details of an instance.
3448 3449 3450 3451 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3448 def describe_gateway_instance(params = {}, = {}) req = build_request(:describe_gateway_instance, params) req.send_request() end |
#describe_offering(params = {}) ⇒ Types::DescribeOfferingResponse
Displays the details of an offering. The response includes the offering description, duration, outbound bandwidth, price, and Amazon Resource Name (ARN).
3486 3487 3488 3489 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3486 def describe_offering(params = {}, = {}) req = build_request(:describe_offering, params) req.send_request() end |
#describe_reservation(params = {}) ⇒ Types::DescribeReservationResponse
Displays the details of a reservation. The response includes the reservation name, state, start date and time, and the details of the offering that make up the rest of the reservation (such as price, duration, and outbound bandwidth).
3530 3531 3532 3533 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3530 def describe_reservation(params = {}, = {}) req = build_request(:describe_reservation, params) req.send_request() end |
#get_router_input(params = {}) ⇒ Types::GetRouterInputResponse
Retrieves information about a specific router input in AWS Elemental MediaConnect.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- input_active
- input_deleted
- input_standby
3651 3652 3653 3654 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3651 def get_router_input(params = {}, = {}) req = build_request(:get_router_input, params) req.send_request() end |
#get_router_input_source_metadata(params = {}) ⇒ Types::GetRouterInputSourceMetadataResponse
Retrieves detailed metadata information about a specific router input source, including stream details and connection state.
3703 3704 3705 3706 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3703 def (params = {}, = {}) req = build_request(:get_router_input_source_metadata, params) req.send_request() end |
#get_router_input_thumbnail(params = {}) ⇒ Types::GetRouterInputThumbnailResponse
Retrieves the thumbnail for a router input in AWS Elemental MediaConnect.
3742 3743 3744 3745 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3742 def get_router_input_thumbnail(params = {}, = {}) req = build_request(:get_router_input_thumbnail, params) req.send_request() end |
#get_router_network_interface(params = {}) ⇒ Types::GetRouterNetworkInterfaceResponse
Retrieves information about a specific router network interface in AWS Elemental MediaConnect.
3788 3789 3790 3791 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3788 def get_router_network_interface(params = {}, = {}) req = build_request(:get_router_network_interface, params) req.send_request() end |
#get_router_output(params = {}) ⇒ Types::GetRouterOutputResponse
Retrieves information about a specific router output in AWS Elemental MediaConnect.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- output_active
- output_deleted
- output_routed
- output_standby
- output_unrouted
3881 3882 3883 3884 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3881 def get_router_output(params = {}, = {}) req = build_request(:get_router_output, params) req.send_request() end |
#grant_flow_entitlements(params = {}) ⇒ Types::GrantFlowEntitlementsResponse
Grants entitlements to an existing flow.
3954 3955 3956 3957 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 3954 def grant_flow_entitlements(params = {}, = {}) req = build_request(:grant_flow_entitlements, params) req.send_request() end |
#list_bridges(params = {}) ⇒ Types::ListBridgesResponse
Displays a list of bridges that are associated with this account and an optionally specified Amazon Resource Name (ARN). This request returns a paginated result.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4017 4018 4019 4020 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4017 def list_bridges(params = {}, = {}) req = build_request(:list_bridges, params) req.send_request() end |
#list_entitlements(params = {}) ⇒ Types::ListEntitlementsResponse
Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4072 4073 4074 4075 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4072 def list_entitlements(params = {}, = {}) req = build_request(:list_entitlements, params) req.send_request() end |
#list_flows(params = {}) ⇒ Types::ListFlowsResponse
Displays a list of flows that are associated with this account. This request returns a paginated result.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4134 4135 4136 4137 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4134 def list_flows(params = {}, = {}) req = build_request(:list_flows, params) req.send_request() end |
#list_gateway_instances(params = {}) ⇒ Types::ListGatewayInstancesResponse
Displays a list of instances associated with the Amazon Web Services account. This request returns a paginated result. You can use the filterArn property to display only the instances associated with the selected Gateway Amazon Resource Name (ARN).
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4197 4198 4199 4200 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4197 def list_gateway_instances(params = {}, = {}) req = build_request(:list_gateway_instances, params) req.send_request() end |
#list_gateways(params = {}) ⇒ Types::ListGatewaysResponse
Displays a list of gateways that are associated with this account. This request returns a paginated result.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4252 4253 4254 4255 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4252 def list_gateways(params = {}, = {}) req = build_request(:list_gateways, params) req.send_request() end |
#list_offerings(params = {}) ⇒ Types::ListOfferingsResponse
Displays a list of all offerings that are available to this account in the current Amazon Web Services Region. If you have an active reservation (which means you've purchased an offering that has already started and hasn't expired yet), your account isn't eligible for other offerings.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4316 4317 4318 4319 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4316 def list_offerings(params = {}, = {}) req = build_request(:list_offerings, params) req.send_request() end |
#list_reservations(params = {}) ⇒ Types::ListReservationsResponse
Displays a list of all reservations that have been purchased by this account in the current Amazon Web Services Region. This list includes all reservations in all states (such as active and expired).
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4383 4384 4385 4386 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4383 def list_reservations(params = {}, = {}) req = build_request(:list_reservations, params) req.send_request() end |
#list_router_inputs(params = {}) ⇒ Types::ListRouterInputsResponse
Retrieves a list of router inputs in AWS Elemental MediaConnect.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4449 4450 4451 4452 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4449 def list_router_inputs(params = {}, = {}) req = build_request(:list_router_inputs, params) req.send_request() end |
#list_router_network_interfaces(params = {}) ⇒ Types::ListRouterNetworkInterfacesResponse
Retrieves a list of router network interfaces in AWS Elemental MediaConnect.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4508 4509 4510 4511 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4508 def list_router_network_interfaces(params = {}, = {}) req = build_request(:list_router_network_interfaces, params) req.send_request() end |
#list_router_outputs(params = {}) ⇒ Types::ListRouterOutputsResponse
Retrieves a list of router outputs in AWS Elemental MediaConnect.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4576 4577 4578 4579 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4576 def list_router_outputs(params = {}, = {}) req = build_request(:list_router_outputs, params) req.send_request() end |
#list_tags_for_global_resource(params = {}) ⇒ Types::ListTagsForGlobalResourceResponse
Lists the tags associated with a global resource in AWS Elemental MediaConnect. The API supports the following global resources: router inputs, router outputs and router network interfaces.
4608 4609 4610 4611 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4608 def (params = {}, = {}) req = build_request(:list_tags_for_global_resource, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List all tags on a MediaConnect resource in the current region.
4638 4639 4640 4641 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4638 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#purchase_offering(params = {}) ⇒ Types::PurchaseOfferingResponse
Submits a request to purchase an offering. If you already have an active reservation, you can't purchase another offering.
4696 4697 4698 4699 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4696 def purchase_offering(params = {}, = {}) req = build_request(:purchase_offering, params) req.send_request() end |
#remove_bridge_output(params = {}) ⇒ Types::RemoveBridgeOutputResponse
Removes an output from a bridge.
4730 4731 4732 4733 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4730 def remove_bridge_output(params = {}, = {}) req = build_request(:remove_bridge_output, params) req.send_request() end |
#remove_bridge_source(params = {}) ⇒ Types::RemoveBridgeSourceResponse
Removes a source from a bridge.
4764 4765 4766 4767 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4764 def remove_bridge_source(params = {}, = {}) req = build_request(:remove_bridge_source, params) req.send_request() end |
#remove_flow_media_stream(params = {}) ⇒ Types::RemoveFlowMediaStreamResponse
Removes a media stream from a flow. This action is only available if the media stream is not associated with a source or output.
4799 4800 4801 4802 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4799 def remove_flow_media_stream(params = {}, = {}) req = build_request(:remove_flow_media_stream, params) req.send_request() end |
#remove_flow_output(params = {}) ⇒ Types::RemoveFlowOutputResponse
Removes an output from an existing flow. This request can be made only on an output that does not have an entitlement associated with it. If the output has an entitlement, you must revoke the entitlement instead. When an entitlement is revoked from a flow, the service automatically removes the associated output.
4838 4839 4840 4841 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4838 def remove_flow_output(params = {}, = {}) req = build_request(:remove_flow_output, params) req.send_request() end |
#remove_flow_source(params = {}) ⇒ Types::RemoveFlowSourceResponse
Removes a source from an existing flow. This request can be made only if there is more than one source on the flow.
4874 4875 4876 4877 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4874 def remove_flow_source(params = {}, = {}) req = build_request(:remove_flow_source, params) req.send_request() end |
#remove_flow_vpc_interface(params = {}) ⇒ Types::RemoveFlowVpcInterfaceResponse
Removes a VPC Interface from an existing flow. This request can be made only on a VPC interface that does not have a Source or Output associated with it. If the VPC interface is referenced by a Source or Output, you must first delete or update the Source or Output to no longer reference the VPC interface.
4916 4917 4918 4919 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4916 def remove_flow_vpc_interface(params = {}, = {}) req = build_request(:remove_flow_vpc_interface, params) req.send_request() end |
#restart_router_input(params = {}) ⇒ Types::RestartRouterInputResponse
Restarts a router input. This operation can be used to recover from errors or refresh the input state.
4950 4951 4952 4953 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4950 def restart_router_input(params = {}, = {}) req = build_request(:restart_router_input, params) req.send_request() end |
#restart_router_output(params = {}) ⇒ Types::RestartRouterOutputResponse
Restarts a router output. This operation can be used to recover from errors or refresh the output state.
4984 4985 4986 4987 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 4984 def restart_router_output(params = {}, = {}) req = build_request(:restart_router_output, params) req.send_request() end |
#revoke_flow_entitlement(params = {}) ⇒ Types::RevokeFlowEntitlementResponse
Revokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed.
5021 5022 5023 5024 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5021 def revoke_flow_entitlement(params = {}, = {}) req = build_request(:revoke_flow_entitlement, params) req.send_request() end |
#start_flow(params = {}) ⇒ Types::StartFlowResponse
Starts a flow.
5051 5052 5053 5054 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5051 def start_flow(params = {}, = {}) req = build_request(:start_flow, params) req.send_request() end |
#start_router_input(params = {}) ⇒ Types::StartRouterInputResponse
Starts a router input in AWS Elemental MediaConnect.
5090 5091 5092 5093 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5090 def start_router_input(params = {}, = {}) req = build_request(:start_router_input, params) req.send_request() end |
#start_router_output(params = {}) ⇒ Types::StartRouterOutputResponse
Starts a router output in AWS Elemental MediaConnect.
5129 5130 5131 5132 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5129 def start_router_output(params = {}, = {}) req = build_request(:start_router_output, params) req.send_request() end |
#stop_flow(params = {}) ⇒ Types::StopFlowResponse
Stops a flow.
5159 5160 5161 5162 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5159 def stop_flow(params = {}, = {}) req = build_request(:stop_flow, params) req.send_request() end |
#stop_router_input(params = {}) ⇒ Types::StopRouterInputResponse
Stops a router input in AWS Elemental MediaConnect.
5192 5193 5194 5195 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5192 def stop_router_input(params = {}, = {}) req = build_request(:stop_router_input, params) req.send_request() end |
#stop_router_output(params = {}) ⇒ Types::StopRouterOutputResponse
Stops a router output in AWS Elemental MediaConnect.
5225 5226 5227 5228 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5225 def stop_router_output(params = {}, = {}) req = build_request(:stop_router_output, params) req.send_request() end |
#tag_global_resource(params = {}) ⇒ Struct
Adds tags to a global resource in AWS Elemental MediaConnect. The API supports the following global resources: router inputs, router outputs and router network interfaces.
5255 5256 5257 5258 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5255 def tag_global_resource(params = {}, = {}) req = build_request(:tag_global_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to a resource with the specified
resourceArn in the current region. If existing tags on a resource
are not specified in the request parameters, they are not changed.
When a resource is deleted, the tags associated with that resource are
deleted as well.
5290 5291 5292 5293 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5290 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#take_router_input(params = {}) ⇒ Types::TakeRouterInputResponse
Associates a router input with a router output in AWS Elemental MediaConnect.
5333 5334 5335 5336 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5333 def take_router_input(params = {}, = {}) req = build_request(:take_router_input, params) req.send_request() end |
#untag_global_resource(params = {}) ⇒ Struct
Removes tags from a global resource in AWS Elemental MediaConnect. The API supports the following global resources: router inputs, router outputs and router network interfaces.
5362 5363 5364 5365 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5362 def untag_global_resource(params = {}, = {}) req = build_request(:untag_global_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Deletes specified tags from a resource in the current region.
5388 5389 5390 5391 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5388 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_bridge(params = {}) ⇒ Types::UpdateBridgeResponse
Updates the bridge.
5479 5480 5481 5482 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5479 def update_bridge(params = {}, = {}) req = build_request(:update_bridge, params) req.send_request() end |
#update_bridge_output(params = {}) ⇒ Types::UpdateBridgeOutputResponse
Updates an existing bridge output.
5531 5532 5533 5534 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5531 def update_bridge_output(params = {}, = {}) req = build_request(:update_bridge_output, params) req.send_request() end |
#update_bridge_source(params = {}) ⇒ Types::UpdateBridgeSourceResponse
Updates an existing bridge source.
5595 5596 5597 5598 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5595 def update_bridge_source(params = {}, = {}) req = build_request(:update_bridge_source, params) req.send_request() end |
#update_bridge_state(params = {}) ⇒ Types::UpdateBridgeStateResponse
Updates the bridge state.
5630 5631 5632 5633 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5630 def update_bridge_state(params = {}, = {}) req = build_request(:update_bridge_state, params) req.send_request() end |
#update_flow(params = {}) ⇒ Types::UpdateFlowResponse
Updates an existing flow.
UpdateFlowSources and UpdateFlow are separate operations,
you can't change both the source type AND the flow size in a single
request.
If you have a
MEDIUMflow and you want to change the flow source to NDI®:First, use the
UpdateFlowoperation to upgrade the flow size toLARGE.After that, you can then use the
UpdateFlowSourceoperation to configure the NDI source.If you're switching from an NDI source to a transport stream (TS) source and want to downgrade the flow size:
First, use the
UpdateFlowSourceoperation to change the flow source type.After that, you can then use the
UpdateFlowoperation to downgrade the flow size toMEDIUM.
5992 5993 5994 5995 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 5992 def update_flow(params = {}, = {}) req = build_request(:update_flow, params) req.send_request() end |
#update_flow_entitlement(params = {}) ⇒ Types::UpdateFlowEntitlementResponse
Updates an entitlement. You can change an entitlement's description, subscribers, and encryption. If you change the subscribers, the service will remove the outputs that are are used by the subscribers that are removed.
6080 6081 6082 6083 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 6080 def update_flow_entitlement(params = {}, = {}) req = build_request(:update_flow_entitlement, params) req.send_request() end |
#update_flow_media_stream(params = {}) ⇒ Types::UpdateFlowMediaStreamResponse
Updates an existing media stream.
6161 6162 6163 6164 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 6161 def update_flow_media_stream(params = {}, = {}) req = build_request(:update_flow_media_stream, params) req.send_request() end |
#update_flow_output(params = {}) ⇒ Types::UpdateFlowOutputResponse
Updates an existing flow output.
6397 6398 6399 6400 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 6397 def update_flow_output(params = {}, = {}) req = build_request(:update_flow_output, params) req.send_request() end |
#update_flow_source(params = {}) ⇒ Types::UpdateFlowSourceResponse
Updates the source of a flow.
UpdateFlowSources and UpdateFlow are separate operations,
you can't change both the source type AND the flow size in a single
request.
If you have a
MEDIUMflow and you want to change the flow source to NDI®:First, use the
UpdateFlowoperation to upgrade the flow size toLARGE.After that, you can then use the
UpdateFlowSourceoperation to configure the NDI source.If you're switching from an NDI source to a transport stream (TS) source and want to downgrade the flow size:
First, use the
UpdateFlowSourceoperation to change the flow source type.After that, you can then use the
UpdateFlowoperation to downgrade the flow size toMEDIUM.
6658 6659 6660 6661 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 6658 def update_flow_source(params = {}, = {}) req = build_request(:update_flow_source, params) req.send_request() end |
#update_gateway_instance(params = {}) ⇒ Types::UpdateGatewayInstanceResponse
Updates an existing gateway instance.
6693 6694 6695 6696 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 6693 def update_gateway_instance(params = {}, = {}) req = build_request(:update_gateway_instance, params) req.send_request() end |
#update_router_input(params = {}) ⇒ Types::UpdateRouterInputResponse
Updates the configuration of an existing router input in AWS Elemental MediaConnect.
6964 6965 6966 6967 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 6964 def update_router_input(params = {}, = {}) req = build_request(:update_router_input, params) req.send_request() end |
#update_router_network_interface(params = {}) ⇒ Types::UpdateRouterNetworkInterfaceResponse
Updates the configuration of an existing router network interface in AWS Elemental MediaConnect.
7031 7032 7033 7034 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 7031 def update_router_network_interface(params = {}, = {}) req = build_request(:update_router_network_interface, params) req.send_request() end |
#update_router_output(params = {}) ⇒ Types::UpdateRouterOutputResponse
Updates the configuration of an existing router output in AWS Elemental MediaConnect.
7218 7219 7220 7221 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 7218 def update_router_output(params = {}, = {}) req = build_request(:update_router_output, 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 |
|---|---|---|---|
| flow_active | #describe_flow | 3 | 40 |
| flow_deleted | #describe_flow | 3 | 40 |
| flow_standby | #describe_flow | 3 | 40 |
| input_active | #get_router_input | 3 | 40 |
| input_deleted | #get_router_input | 3 | 40 |
| input_standby | #get_router_input | 3 | 40 |
| output_active | #get_router_output | 3 | 40 |
| output_deleted | #get_router_output | 3 | 40 |
| output_routed | #get_router_output | 3 | 40 |
| output_standby | #get_router_output | 3 | 40 |
| output_unrouted | #get_router_output | 3 | 40 |
7343 7344 7345 7346 7347 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/client.rb', line 7343 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |