Skip to main content

bridges

Creates, updates, deletes or gets a bridge resource or lists bridges in a region

Overview

Namebridges
TypeResource
DescriptionResource schema for AWS::MediaConnect::Bridge
Idaws.mediaconnect.bridges

Fields

NameDatatypeDescription
namestringThe name of the bridge.
bridge_arnstringThe Amazon Resource Number (ARN) of the bridge.
placement_arnstringThe placement Amazon Resource Number (ARN) of the bridge.
bridge_statestring
source_failover_configobjectThe settings for source failover
outputsarrayThe outputs on this bridge.
sourcesarrayThe sources on this bridge.
ingress_gateway_bridgeobject
egress_gateway_bridgeobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, PlacementArn, Sources, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all bridges in a region.

SELECT
region,
name,
bridge_arn,
placement_arn,
bridge_state,
source_failover_config,
outputs,
sources,
ingress_gateway_bridge,
egress_gateway_bridge
FROM aws.mediaconnect.bridges
WHERE region = 'us-east-1';

Gets all properties from an individual bridge.

SELECT
region,
name,
bridge_arn,
placement_arn,
bridge_state,
source_failover_config,
outputs,
sources,
ingress_gateway_bridge,
egress_gateway_bridge
FROM aws.mediaconnect.bridges
WHERE region = 'us-east-1' AND data__Identifier = '<BridgeArn>';

INSERT example

Use the following StackQL query and manifest file to create a new bridge resource, using stack-deploy.

/*+ create */
INSERT INTO aws.mediaconnect.bridges (
Name,
PlacementArn,
Sources,
region
)
SELECT
'{{ Name }}',
'{{ PlacementArn }}',
'{{ Sources }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediaconnect.bridges
WHERE data__Identifier = '<BridgeArn>'
AND region = 'us-east-1';

Permissions

To operate on the bridges resource, the following permissions are required:

Create

mediaconnect:CreateBridge,
mediaconnect:DescribeBridge

Read

mediaconnect:DescribeBridge

Update

mediaconnect:DescribeBridge,
mediaconnect:UpdateBridge

Delete

mediaconnect:DescribeBridge,
mediaconnect:DeleteBridge

List

mediaconnect:ListBridges