Skip to main content

bridges

Creates, updates, deletes, gets or lists a bridges resource.

Overview

Namebridges
TypeResource
Idaws.mediaconnect.bridges

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bridge_arnstringThe Amazon Resource Number (ARN) of the bridge.
bridge_messagesarrayMessages with details about the bridge.
bridge_statestringThe state of the bridge. (CREATING, STANDBY, STARTING, DEPLOYING, ACTIVE, STOPPING, DELETING, DELETED, START_FAILED, START_PENDING, STOP_FAILED, UPDATING)
egress_gateway_bridgeobjectAn egress bridge is a cloud-to-ground bridge. The content comes from an existing MediaConnect flow and is delivered to your premises.
ingress_gateway_bridgeobjectAn ingress bridge is a ground-to-cloud bridge. The content originates at your premises and is delivered to the cloud.
namestringThe name of the bridge.
outputsarrayThe outputs on this bridge.
placement_arnstringThe placement Amazon Resource Number (ARN) of the bridge.
source_failover_configobjectThe settings for source failover.
sourcesarrayThe sources on this bridge.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_bridgeselectbridge_arn, regionDisplays the details of a bridge.
list_bridgesselectregionfilterArn, maxResults, nextTokenDisplays a list of bridges that are associated with this account and an optionally specified Amazon Resource Name (ARN). This request returns a paginated result.
create_bridgeinsertregion, PlacementArnCreates a new bridge. The request must include one source.
remove_bridge_outputupdatebridge_arn, output_name, regionRemoves an output from a bridge.
remove_bridge_sourceupdatebridge_arn, source_name, regionRemoves a source from a bridge.
update_bridge_stateupdatebridge_arn, region, DesiredStateUpdates the bridge state.
update_bridgeupdatebridge_arn, regionUpdates the bridge.
delete_bridgedeletebridge_arn, regionDeletes a bridge. Before you can delete a bridge, you must stop the bridge.
add_bridge_outputsexecbridge_arn, regionAdds outputs to an existing bridge.
add_bridge_sourcesexecbridge_arn, regionAdds sources to an existing bridge.
update_bridge_outputexecbridge_arn, output_name, regionUpdates an existing bridge output.
update_bridge_sourceexecbridge_arn, source_name, regionUpdates an existing bridge source.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bridge_arnstringThe Amazon Resource Name (ARN) of the bridge that you want to update.
output_namestringTname of the output that you want to update.
regionstringAWS region (default: us-east-1)
source_namestringThe name of the source that you want to update.
filterArnstringFilter the list results to display only the bridges associated with the selected ARN.
maxResultsintegerThe maximum number of results to return per API request. For example, you submit a ListBridges request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.
nextTokenstringThe token that identifies the batch of results that you want to see. For example, you submit a ListBridges request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListBridges request a second time and specify the NextToken value.

SELECT examples

Displays the details of a bridge.

SELECT
bridge_arn,
bridge_messages,
bridge_state,
egress_gateway_bridge,
ingress_gateway_bridge,
name,
outputs,
placement_arn,
source_failover_config,
sources
FROM aws.mediaconnect.bridges
WHERE bridge_arn = '{{ bridge_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new bridge. The request must include one source.

INSERT INTO aws.mediaconnect.bridges (
EgressGatewayBridge,
IngressGatewayBridge,
Name,
Outputs,
PlacementArn,
SourceFailoverConfig,
Sources,
region
)
SELECT
'{{ EgressGatewayBridge }}',
'{{ IngressGatewayBridge }}',
'{{ Name }}',
'{{ Outputs }}',
'{{ PlacementArn }}' /* required */,
'{{ SourceFailoverConfig }}',
'{{ Sources }}',
'{{ region }}'
RETURNING
bridge
;

UPDATE examples

Removes an output from a bridge.

UPDATE aws.mediaconnect.bridges
SET
-- No updatable properties
WHERE
bridge_arn = '{{ bridge_arn }}' --required
AND output_name = '{{ output_name }}' --required
AND region = '{{ region }}' --required
RETURNING
bridge_arn,
output_name;

DELETE examples

Deletes a bridge. Before you can delete a bridge, you must stop the bridge.

DELETE FROM aws.mediaconnect.bridges
WHERE bridge_arn = '{{ bridge_arn }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Adds outputs to an existing bridge.

EXEC aws.mediaconnect.bridges.add_bridge_outputs
@bridge_arn='{{ bridge_arn }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Outputs": "{{ Outputs }}"
}'
;