mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 00:58:36 +00:00
20 lines
647 B
TypeScript
20 lines
647 B
TypeScript
import * as pulumi from '@pulumi/pulumi';
|
|
|
|
export type Kafka = ReturnType<typeof deployKafka>;
|
|
|
|
export function deployKafka() {
|
|
const eventhubConfig = new pulumi.Config('eventhub');
|
|
|
|
return {
|
|
config: {
|
|
key: eventhubConfig.requireSecret('key'),
|
|
user: '$ConnectionString',
|
|
endpoint: eventhubConfig.require('endpoint'),
|
|
bufferSize: eventhubConfig.require('bufferSize'),
|
|
bufferInterval: eventhubConfig.require('bufferInterval'),
|
|
bufferDynamic: eventhubConfig.require('bufferDynamic'),
|
|
topic: eventhubConfig.require('topic'),
|
|
consumerGroup: eventhubConfig.require('consumerGroup'),
|
|
},
|
|
};
|
|
}
|