azurermStreamAnalyticsOutputTable
Manages a Stream Analytics Output Table.
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: "rg-example",
}
);
const azurermStorageAccountExample = new azurerm.storageAccount.StorageAccount(
this,
"example_1",
{
account_replication_type: "LRS",
account_tier: "Standard",
location: azurermResourceGroupExample.location,
name: "examplesa",
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 azurermStorageTableExample = new azurerm.storageTable.StorageTable(
this,
"example_2",
{
name: "exampletable",
storage_account_name: azurermStorageAccountExample.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.*/
azurermStorageTableExample.overrideLogicalId("example");
const dataAzurermStreamAnalyticsJobExample =
new azurerm.dataAzurermStreamAnalyticsJob.DataAzurermStreamAnalyticsJob(
this,
"example_3",
{
name: "example-job",
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.*/
dataAzurermStreamAnalyticsJobExample.overrideLogicalId("example");
const azurermStreamAnalyticsOutputTableExample =
new azurerm.streamAnalyticsOutputTable.StreamAnalyticsOutputTable(
this,
"example_4",
{
batch_size: 100,
name: "output-to-storage-table",
partition_key: "foo",
resource_group_name:
dataAzurermStreamAnalyticsJobExample.resourceGroupName,
row_key: "bar",
storage_account_key: azurermStorageAccountExample.primaryAccessKey,
storage_account_name: azurermStorageAccountExample.name,
stream_analytics_job_name: dataAzurermStreamAnalyticsJobExample.name,
table: azurermStorageTableExample.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.*/
azurermStreamAnalyticsOutputTableExample.overrideLogicalId("example");
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name of the Stream Output. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created. -
streamAnalyticsJobName
- (Required) The name of the Stream Analytics Job. Changing this forces a new resource to be created. -
storageAccountName
- (Required) The name of the Storage Account. -
storageAccountKey
- (Required) The Access Key which should be used to connect to this Storage Account. -
table
- (Required) The name of the table where the stream should be output to. -
partitionKey
- (Required) The name of the output column that contains the partition key. -
rowKey
- (Required) The name of the output column that contains the row key. -
batchSize
- (Required) The number of records for a batch operation. Must be between1
and100
. -
columnsToRemove
- (Optional) A list of the column names to be removed from output event entities.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Stream Analytics Output Table.
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.update
- (Defaults to 30 minutes) Used when updating the Stream Analytics.delete
- (Defaults to 30 minutes) Used when deleting the Stream Analytics.
Import
Stream Analytics Output to Table can be imported using the resourceId
, e.g.