- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
AddBridgeSourcesCommand
Adds sources to an existing bridge.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { MediaConnectClient, AddBridgeSourcesCommand } from "@aws-sdk/client-mediaconnect"; // ES Modules import
// const { MediaConnectClient, AddBridgeSourcesCommand } = require("@aws-sdk/client-mediaconnect"); // CommonJS import
const client = new MediaConnectClient(config);
const input = { // AddBridgeSourcesRequest
BridgeArn: "STRING_VALUE", // required
Sources: [ // __listOfAddBridgeSourceRequest // required
{ // AddBridgeSourceRequest
FlowSource: { // AddBridgeFlowSourceRequest
FlowArn: "STRING_VALUE", // required
FlowVpcInterfaceAttachment: { // VpcInterfaceAttachment
VpcInterfaceName: "STRING_VALUE",
},
Name: "STRING_VALUE", // required
},
NetworkSource: { // AddBridgeNetworkSourceRequest
MulticastIp: "STRING_VALUE", // required
MulticastSourceSettings: { // MulticastSourceSettings
MulticastSourceIp: "STRING_VALUE",
},
Name: "STRING_VALUE", // required
NetworkName: "STRING_VALUE", // required
Port: Number("int"), // required
Protocol: "zixi-push" || "rtp-fec" || "rtp" || "zixi-pull" || "rist" || "st2110-jpegxs" || "cdi" || "srt-listener" || "srt-caller" || "fujitsu-qos" || "udp", // required
},
},
],
};
const command = new AddBridgeSourcesCommand(input);
const response = await client.send(command);
// { // AddBridgeSourcesResponse
// BridgeArn: "STRING_VALUE",
// Sources: [ // __listOfBridgeSource
// { // BridgeSource
// FlowSource: { // BridgeFlowSource
// FlowArn: "STRING_VALUE", // required
// FlowVpcInterfaceAttachment: { // VpcInterfaceAttachment
// VpcInterfaceName: "STRING_VALUE",
// },
// Name: "STRING_VALUE", // required
// OutputArn: "STRING_VALUE",
// },
// NetworkSource: { // BridgeNetworkSource
// MulticastIp: "STRING_VALUE", // required
// MulticastSourceSettings: { // MulticastSourceSettings
// MulticastSourceIp: "STRING_VALUE",
// },
// Name: "STRING_VALUE", // required
// NetworkName: "STRING_VALUE", // required
// Port: Number("int"), // required
// Protocol: "zixi-push" || "rtp-fec" || "rtp" || "zixi-pull" || "rist" || "st2110-jpegxs" || "cdi" || "srt-listener" || "srt-caller" || "fujitsu-qos" || "udp", // required
// },
// },
// ],
// };
AddBridgeSourcesCommand Input
See AddBridgeSourcesCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
BridgeArn Required | string | undefined | The ARN of the bridge that you want to update. |
Sources Required | AddBridgeSourceRequest[] | undefined | The sources that you want to add to this bridge. |
AddBridgeSourcesCommand Output
See AddBridgeSourcesCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
BridgeArn | string | undefined | The Amazon Resource Number (ARN) of the bridge. |
Sources | BridgeSource[] | undefined | The sources that you added to this bridge. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
BadRequestException | client | Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. |
ConflictException | client | Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. |
ForbiddenException | client | Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. |
InternalServerErrorException | server | Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. |
NotFoundException | client | Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. |
ServiceUnavailableException | server | Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. |
TooManyRequestsException | client | Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception. |
MediaConnectServiceException | Base exception class for all service exceptions from MediaConnect service. |