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)
)
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by