Skip to content

azurermStreamAnalyticsManagedPrivateEndpoint

Manages a Stream Analytics Managed Private Endpoint.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "example-resources",
  }
);
const azurermStorageAccountExample = new azurerm.storageAccount.StorageAccount(
  this,
  "example_1",
  {
    account_kind: "StorageV2",
    account_replication_type: "LRS",
    account_tier: "Standard",
    is_hns_enabled: "true",
    location: azurermResourceGroupExample.location,
    name: "examplestorageacc",
    resource_group_name: azurermResourceGroupExample.name,
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermStorageAccountExample.overrideLogicalId("example");
const azurermStreamAnalyticsClusterExample =
  new azurerm.streamAnalyticsCluster.StreamAnalyticsCluster(this, "example_2", {
    location: azurermResourceGroupExample.location,
    name: "examplestreamanalyticscluster",
    resource_group_name: azurermResourceGroupExample.name,
    streaming_capacity: 36,
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermStreamAnalyticsClusterExample.overrideLogicalId("example");
const azurermStreamAnalyticsManagedPrivateEndpointExample =
  new azurerm.streamAnalyticsManagedPrivateEndpoint.StreamAnalyticsManagedPrivateEndpoint(
    this,
    "example_3",
    {
      name: "exampleprivateendpoint",
      resource_group_name: azurermResourceGroupExample.name,
      stream_analytics_cluster_name: azurermStreamAnalyticsClusterExample.name,
      subresource_name: "blob",
      target_resource_id: azurermStorageAccountExample.id,
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermStreamAnalyticsManagedPrivateEndpointExample.overrideLogicalId(
  "example"
);

Arguments Reference

The following arguments are supported:

  • name - (Required) The name which should be used for this Stream Analytics Managed Private Endpoint. Changing this forces a new resource to be created.

  • resourceGroupName - (Required) The name of the Resource Group where the Stream Analytics Managed Private Endpoint should exist. Changing this forces a new resource to be created.

  • streamAnalyticsClusterName - (Required) The name of the Stream Analytics Cluster where the Managed Private Endpoint should be created. Changing this forces a new resource to be created.

  • targetResourceId - (Required) The ID of the Private Link Enabled Remote Resource which this Stream Analytics Private endpoint should be connected to. Changing this forces a new resource to be created.

  • subresourceName - (Required) Specifies the sub resource name which the Stream Analytics Private Endpoint is able to connect to. Changing this forces a new resource to be created.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Stream Analytics.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating the Stream Analytics.
  • read - (Defaults to 5 minutes) Used when retrieving the Stream Analytics.
  • delete - (Defaults to 5 minutes) Used when deleting the Stream Analytics.

Import

Stream Analytics Private Endpoints can be imported using the resourceId, e.g.

terraform import azurerm_stream_analytics_managed_private_endpoint.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.StreamAnalytics/clusters/cluster1/privateEndpoints/endpoint1