Class: Aws::MediaConnect::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::MediaConnect::Client
- Includes:
- ClientStubs
- Defined in:
- 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](/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
-
#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 flow.
-
#add_flow_vpc_interfaces(params = {}) ⇒ Types::AddFlowVpcInterfacesResponse
Adds VPC interfaces to flow.
-
#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.
-
#delete_bridge(params = {}) ⇒ Types::DeleteBridgeResponse
Deletes a bridge.
-
#delete_flow(params = {}) ⇒ Types::DeleteFlowResponse
Deletes a flow.
-
#delete_gateway(params = {}) ⇒ Types::DeleteGatewayResponse
Deletes a gateway.
-
#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
Displays details of the flow’s source stream.
-
#describe_flow_source_thumbnail(params = {}) ⇒ Types::DescribeFlowSourceThumbnailResponse
Displays the thumbnail details of a flow’s source stream.
-
#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.
-
#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 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 AWS 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 AWS Region.
-
#list_reservations(params = {}) ⇒ Types::ListReservationsResponse
Displays a list of all reservations that have been purchased by this account in the current AWS Region.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List all tags on an AWS Elemental MediaConnect resource.
-
#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.
-
#revoke_flow_entitlement(params = {}) ⇒ Types::RevokeFlowEntitlementResponse
Revokes an entitlement from a flow.
-
#start_flow(params = {}) ⇒ Types::StartFlowResponse
Starts a flow.
-
#stop_flow(params = {}) ⇒ Types::StopFlowResponse
Stops a flow.
-
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to a resource with the specified resourceArn.
-
#untag_resource(params = {}) ⇒ Struct
Deletes specified tags from a resource.
-
#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 flow.
-
#update_flow_entitlement(params = {}) ⇒ Types::UpdateFlowEntitlementResponse
You can change an entitlement’s description, subscribers, and encryption.
-
#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 the configuration of an existing Gateway Instance.
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.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
444 445 446 |
# File 'lib/aws-sdk-mediaconnect/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.
4255 4256 4257 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 4255 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.
4258 4259 4260 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 4258 def errors_module Errors end |
Instance Method Details
#add_bridge_outputs(params = {}) ⇒ Types::AddBridgeOutputsResponse
Adds outputs to an existing bridge.
498 499 500 501 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 498 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.
557 558 559 560 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 557 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.
628 629 630 631 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 628 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.
758 759 760 761 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 758 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 flow
884 885 886 887 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 884 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 flow
933 934 935 936 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 933 def add_flow_vpc_interfaces(params = {}, = {}) req = build_request(:add_flow_vpc_interfaces, 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.
4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 4111 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::MediaConnect') ) 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-mediaconnect' context[:gem_version] = '1.72.0' Seahorse::Client::Request.new(handlers, context) end |
#create_bridge(params = {}) ⇒ Types::CreateBridgeResponse
Creates a new bridge. The request must include one source.
1066 1067 1068 1069 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 1066 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).
1535 1536 1537 1538 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 1535 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 4).
1592 1593 1594 1595 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 1592 def create_gateway(params = {}, = {}) req = build_request(:create_gateway, params) req.send_request() end |
#delete_bridge(params = {}) ⇒ Types::DeleteBridgeResponse
Deletes a bridge. Before you can delete a bridge, you must stop the bridge.
1620 1621 1622 1623 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 1620 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.
1649 1650 1651 1652 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 1649 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.
1677 1678 1679 1680 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 1677 def delete_gateway(params = {}, = {}) req = build_request(:delete_gateway, 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.
1712 1713 1714 1715 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 1712 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.
1775 1776 1777 1778 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 1775 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 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
2005 2006 2007 2008 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2005 def describe_flow(params = {}, = {}) req = build_request(:describe_flow, params) req.send_request() end |
#describe_flow_source_metadata(params = {}) ⇒ Types::DescribeFlowSourceMetadataResponse
Displays details of the flow’s source stream. The response contains information about the contents of the stream and its programs.
2056 2057 2058 2059 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2056 def (params = {}, = {}) req = build_request(:describe_flow_source_metadata, params) req.send_request() end |
#describe_flow_source_thumbnail(params = {}) ⇒ Types::DescribeFlowSourceThumbnailResponse
Displays the thumbnail details of a flow’s source stream.
2090 2091 2092 2093 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2090 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 ARN, name, and CIDR blocks, as well as details about the networks.
2129 2130 2131 2132 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2129 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.
2166 2167 2168 2169 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2166 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).
2203 2204 2205 2206 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2203 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).
2246 2247 2248 2249 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2246 def describe_reservation(params = {}, = {}) req = build_request(:describe_reservation, params) req.send_request() end |
#grant_flow_entitlements(params = {}) ⇒ Types::GrantFlowEntitlementsResponse
Grants entitlements to an existing flow.
2314 2315 2316 2317 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2314 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 Arn. This request returns a paginated result.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2357 2358 2359 2360 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2357 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.
2395 2396 2397 2398 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2395 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.
2440 2441 2442 2443 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2440 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 AWS 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.
2484 2485 2486 2487 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2484 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.
2522 2523 2524 2525 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2522 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 AWS 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.
2568 2569 2570 2571 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2568 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 AWS 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.
2618 2619 2620 2621 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2618 def list_reservations(params = {}, = {}) req = build_request(:list_reservations, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List all tags on an AWS Elemental MediaConnect resource
2646 2647 2648 2649 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2646 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.
2701 2702 2703 2704 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2701 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.
2733 2734 2735 2736 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2733 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.
2765 2766 2767 2768 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2765 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.
2798 2799 2800 2801 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2798 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.
2834 2835 2836 2837 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2834 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.
2867 2868 2869 2870 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2867 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.
2906 2907 2908 2909 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2906 def remove_flow_vpc_interface(params = {}, = {}) req = build_request(:remove_flow_vpc_interface, 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.
2940 2941 2942 2943 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2940 def revoke_flow_entitlement(params = {}, = {}) req = build_request(:revoke_flow_entitlement, params) req.send_request() end |
#start_flow(params = {}) ⇒ Types::StartFlowResponse
Starts a flow.
2969 2970 2971 2972 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2969 def start_flow(params = {}, = {}) req = build_request(:start_flow, params) req.send_request() end |
#stop_flow(params = {}) ⇒ Types::StopFlowResponse
Stops a flow.
2998 2999 3000 3001 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 2998 def stop_flow(params = {}, = {}) req = build_request(:stop_flow, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to a resource with the specified resourceArn. 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.
3030 3031 3032 3033 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3030 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Deletes specified tags from a resource.
3054 3055 3056 3057 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3054 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_bridge(params = {}) ⇒ Types::UpdateBridgeResponse
Updates the bridge
3139 3140 3141 3142 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3139 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.
3189 3190 3191 3192 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3189 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.
3247 3248 3249 3250 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3247 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
3279 3280 3281 3282 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3279 def update_bridge_state(params = {}, = {}) req = build_request(:update_bridge_state, params) req.send_request() end |
#update_flow(params = {}) ⇒ Types::UpdateFlowResponse
Updates flow
3522 3523 3524 3525 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3522 def update_flow(params = {}, = {}) req = build_request(:update_flow, params) req.send_request() end |
#update_flow_entitlement(params = {}) ⇒ Types::UpdateFlowEntitlementResponse
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.
3605 3606 3607 3608 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3605 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.
3684 3685 3686 3687 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3684 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.
3874 3875 3876 3877 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 3874 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.
4066 4067 4068 4069 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 4066 def update_flow_source(params = {}, = {}) req = build_request(:update_flow_source, params) req.send_request() end |
#update_gateway_instance(params = {}) ⇒ Types::UpdateGatewayInstanceResponse
Updates the configuration of an existing Gateway Instance.
4102 4103 4104 4105 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 4102 def update_gateway_instance(params = {}, = {}) req = build_request(:update_gateway_instance, 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 |
4219 4220 4221 4222 4223 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 4219 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) 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.
4227 4228 4229 |
# File 'lib/aws-sdk-mediaconnect/client.rb', line 4227 def waiter_names waiters.keys end |