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
Idawscc.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.

For more information, see AWS::MediaConnect::Bridge.

Methods

NameResourceAccessible byRequired Params
create_resourcebridgesINSERTName, PlacementArn, Sources, region
delete_resourcebridgesDELETEIdentifier, region
update_resourcebridgesUPDATEIdentifier, PatchDocument, region
list_resourcesbridges_list_onlySELECTregion
get_resourcebridgesSELECTIdentifier, region

SELECT examples

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 awscc.mediaconnect.bridges
WHERE
region = '{{ region }}' AND
Identifier = '{{ bridge_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.mediaconnect.bridges (
Name,
PlacementArn,
Sources,
region
)
SELECT
'{{ name }}',
'{{ placement_arn }}',
'{{ sources }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.mediaconnect.bridges
SET PatchDocument = string('{{ {
"Name": name,
"PlacementArn": placement_arn,
"SourceFailoverConfig": source_failover_config,
"Outputs": outputs,
"Sources": sources,
"IngressGatewayBridge": ingress_gateway_bridge,
"EgressGatewayBridge": egress_gateway_bridge
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ bridge_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.mediaconnect.bridges
WHERE
Identifier = '{{ bridge_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

mediaconnect:CreateBridge,
mediaconnect:DescribeBridge,
mediaconnect:AddBridgeOutputs,
mediaconnect:AddBridgeSources