OutputFunctionArgs

data class OutputFunctionArgs(val apiKey: Output<String>? = null, val batchMaxCount: Output<Int>? = null, val batchMaxInBytes: Output<Int>? = null, val functionApp: Output<String>? = null, val functionName: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val streamAnalyticsJobName: Output<String>? = null) : ConvertibleToJava<OutputFunctionArgs>

Manages a Stream Analytics Output Function.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.appservice.Plan;
import com.pulumi.azure.appservice.PlanArgs;
import com.pulumi.azure.appservice.inputs.PlanSkuArgs;
import com.pulumi.azure.appservice.FunctionApp;
import com.pulumi.azure.appservice.FunctionAppArgs;
import com.pulumi.azure.streamanalytics.Job;
import com.pulumi.azure.streamanalytics.JobArgs;
import com.pulumi.azure.streamanalytics.OutputFunction;
import com.pulumi.azure.streamanalytics.OutputFunctionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var examplePlan = new Plan("examplePlan", PlanArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.kind("FunctionApp")
.reserved(true)
.sku(PlanSkuArgs.builder()
.tier("Dynamic")
.size("Y1")
.build())
.build());
var exampleFunctionApp = new FunctionApp("exampleFunctionApp", FunctionAppArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.appServicePlanId(examplePlan.id())
.storageAccountName(exampleAccount.name())
.storageAccountAccessKey(exampleAccount.primaryAccessKey())
.osType("linux")
.version("~3")
.build());
var exampleJob = new Job("exampleJob", JobArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.streamingUnits(3)
.transformationQuery("""
SELECT *
INTO [YourOutputAlias]
FROM [YourInputAlias]
""")
.build());
var exampleOutputFunction = new OutputFunction("exampleOutputFunction", OutputFunctionArgs.builder()
.resourceGroupName(exampleJob.resourceGroupName())
.streamAnalyticsJobName(exampleJob.name())
.functionApp(exampleFunctionApp.name())
.functionName("examplefunctionname")
.apiKey("exampleapikey")
.build());
}
}

Import

Stream Analytics Output Functions can be imported using the resource id, e.g.

$ pulumi import azure:streamanalytics/outputFunction:OutputFunction example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/outputs/output1

Constructors

Link copied to clipboard
fun OutputFunctionArgs(apiKey: Output<String>? = null, batchMaxCount: Output<Int>? = null, batchMaxInBytes: Output<Int>? = null, functionApp: Output<String>? = null, functionName: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, streamAnalyticsJobName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): OutputFunctionArgs

Properties

Link copied to clipboard
val apiKey: Output<String>? = null

The API key for the Function.

Link copied to clipboard
val batchMaxCount: Output<Int>? = null

The maximum number of events in each batch that's sent to the function. Defaults to 100.

Link copied to clipboard
val batchMaxInBytes: Output<Int>? = null

The maximum batch size in bytes that's sent to the function. Defaults to 262144 (256 kB).

Link copied to clipboard
val functionApp: Output<String>? = null

The name of the Function App.

Link copied to clipboard
val functionName: Output<String>? = null

The name of the function in the Function App.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Stream Analytics Output. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the Stream Analytics Output should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val streamAnalyticsJobName: Output<String>? = null

The name of the Stream Analytics Job. Changing this forces a new resource to be created.