billions-crowd-71510
09/28/2022, 6:30 AMdef import_cluster(self) -> None:
"""
Import an event hub cluster.
Args:
Returns:
None
"""
cluster_name = environment_variables.CLUSTER_NAME
cluster_id_import = '/subscriptions/' + self.eh_subscription_id + '/resourceGroups/' + self.eh_rg + '/providers/Microsoft.EventHub/clusters/' + cluster_name
azure_native.eventhub.Cluster(
resource_name=cluster_name,
cluster_name=cluster_name,
location='West Europe',
resource_group_name='streamming-pulumi-poc',
sku=azure_native.eventhub.ClusterSkuArgs(
capacity=1,
name="Dedicated",
),
tags={
},
opts=pulumi.ResourceOptions(import_=cluster_id_import)
)