import { IVSClient } from '@aws-sdk/client-ivs' // AWS Client
import { BedrockClient } from '@aws-sdk/bedrock'
const streamConfig = {
channelArn: process.env.IVS_CHANNEL_ARN,
latencyMode: 'LOW',
type: 'STANDARD'
}
async function startStream() {
const client = new IVSClient({
region: 'us-east-1'
})
const response = await client
.startStream(streamConfig)
return response.streamKey
}