bridge_sources
Creates, updates, deletes or gets a bridge_source
resource or lists bridge_sources
in a region
Overview
Name | bridge_sources |
Type | Resource |
Description | Resource schema for AWS::MediaConnect::BridgeSource |
Id | aws.mediaconnect.bridge_sources |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the source. |
bridge_arn | string | The Amazon Resource Number (ARN) of the bridge. |
flow_source | object | The source of the bridge. A flow source originates in MediaConnect as an existing cloud flow. |
network_source | object | The source of the bridge. A network source originates at your premises. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, BridgeArn, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all properties from an individual bridge_source
.
SELECT
region,
name,
bridge_arn,
flow_source,
network_source
FROM aws.mediaconnect.bridge_sources
WHERE region = 'us-east-1' AND data__Identifier = '<BridgeArn>|<Name>';
INSERT
example
Use the following StackQL query and manifest file to create a new bridge_source
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.mediaconnect.bridge_sources (
Name,
BridgeArn,
region
)
SELECT
'{{ Name }}',
'{{ BridgeArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.mediaconnect.bridge_sources (
Name,
BridgeArn,
FlowSource,
NetworkSource,
region
)
SELECT
'{{ Name }}',
'{{ BridgeArn }}',
'{{ FlowSource }}',
'{{ NetworkSource }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: bridge_source
props:
- name: Name
value: '{{ Name }}'
- name: BridgeArn
value: '{{ BridgeArn }}'
- name: FlowSource
value:
FlowArn: '{{ FlowArn }}'
FlowVpcInterfaceAttachment:
VpcInterfaceName: '{{ VpcInterfaceName }}'
- name: NetworkSource
value:
Protocol: '{{ Protocol }}'
MulticastIp: '{{ MulticastIp }}'
Port: '{{ Port }}'
NetworkName: '{{ NetworkName }}'
DELETE
example
/*+ delete */
DELETE FROM aws.mediaconnect.bridge_sources
WHERE data__Identifier = '<BridgeArn|Name>'
AND region = 'us-east-1';
Permissions
To operate on the bridge_sources
resource, the following permissions are required:
Create
mediaconnect:AddBridgeSources,
mediaconnect:DescribeBridge
Read
mediaconnect:DescribeBridge
Update
mediaconnect:DescribeBridge,
mediaconnect:UpdateBridgeSource
Delete
mediaconnect:RemoveBridgeSource