bridges
Creates, updates, deletes or gets a bridge resource or lists bridges in a region
Overview
| Name | bridges |
| Type | Resource |
| Description | Resource schema for AWS::MediaConnect::Bridge |
| Id | awscc.mediaconnect.bridges |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the bridge. |
bridge_arn | string | The Amazon Resource Number (ARN) of the bridge. |
placement_arn | string | The placement Amazon Resource Number (ARN) of the bridge. |
bridge_state | string | |
source_failover_config | object | The settings for source failover |
outputs | array | The outputs on this bridge. |
sources | array | The sources on this bridge. |
ingress_gateway_bridge | object | |
egress_gateway_bridge | object | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
bridge_arn | string | The Amazon Resource Number (ARN) of the bridge. |
region | string | AWS region. |
For more information, see AWS::MediaConnect::Bridge.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | bridges | INSERT | Name, PlacementArn, Sources, region |
delete_resource | bridges | DELETE | Identifier, region |
update_resource | bridges | UPDATE | Identifier, PatchDocument, region |
list_resources | bridges_list_only | SELECT | region |
get_resource | bridges | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all bridges in a region.
SELECT
region,
bridge_arn
FROM awscc.mediaconnect.bridges_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new bridge resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ 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
;
/*+ create */
INSERT INTO awscc.mediaconnect.bridges (
Name,
PlacementArn,
SourceFailoverConfig,
Outputs,
Sources,
IngressGatewayBridge,
EgressGatewayBridge,
region
)
SELECT
'{{ name }}',
'{{ placement_arn }}',
'{{ source_failover_config }}',
'{{ outputs }}',
'{{ sources }}',
'{{ ingress_gateway_bridge }}',
'{{ egress_gateway_bridge }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: bridge
props:
- name: name
value: '{{ name }}'
- name: placement_arn
value: '{{ placement_arn }}'
- name: source_failover_config
value:
state: '{{ state }}'
recovery_window: '{{ recovery_window }}'
failover_mode: '{{ failover_mode }}'
source_priority:
primary_source: '{{ primary_source }}'
- name: outputs
value:
- bridge_arn: '{{ bridge_arn }}'
network_output:
protocol: '{{ protocol }}'
ip_address: '{{ ip_address }}'
port: '{{ port }}'
network_name: '{{ network_name }}'
ttl: '{{ ttl }}'
name: '{{ name }}'
- name: sources
value:
- name: '{{ name }}'
bridge_arn: '{{ bridge_arn }}'
flow_source:
flow_arn: '{{ flow_arn }}'
flow_vpc_interface_attachment:
vpc_interface_name: '{{ vpc_interface_name }}'
network_source:
protocol: '{{ protocol }}'
multicast_ip: '{{ multicast_ip }}'
multicast_source_settings:
multicast_source_ip: '{{ multicast_source_ip }}'
port: '{{ port }}'
network_name: '{{ network_name }}'
- name: ingress_gateway_bridge
value:
max_bitrate: '{{ max_bitrate }}'
max_outputs: '{{ max_outputs }}'
- name: egress_gateway_bridge
value:
max_bitrate: '{{ max_bitrate }}'
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:
| Parameter | Description |
|---|---|
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:
- Create
- Read
- Update
- Delete
- List
mediaconnect:CreateBridge,
mediaconnect:DescribeBridge,
mediaconnect:AddBridgeOutputs,
mediaconnect:AddBridgeSources
mediaconnect:DescribeBridge
mediaconnect:DescribeBridge,
mediaconnect:UpdateBridge
mediaconnect:DescribeBridge,
mediaconnect:DeleteBridge,
mediaconnect:RemoveBridgeOutput,
mediaconnect:RemoveBridgeSource
mediaconnect:ListBridges