EventSourceArgs

data class EventSourceArgs constructor(val environmentName: Output<String>? = null, val eventSourceName: Output<String>? = null, val kind: Output<Either<String, EventSourceKind>>? = null, val localTimestamp: Output<LocalTimestampArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EventSourceArgs>

An environment receives data from one or more event sources. Each event source has associated connection info that allows the Time Series Insights ingress pipeline to connect to and pull data from the event source API Version: 2020-05-15.

Example Usage

CreateEventHubEventSource

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var eventSource = new AzureNative.TimeSeriesInsights.EventSource("eventSource", new()
{
EnvironmentName = "env1",
EventSourceName = "es1",
Kind = "Microsoft.EventHub",
Location = "West US",
ResourceGroupName = "rg1",
});
});
package main
import (
timeseriesinsights "github.com/pulumi/pulumi-azure-native/sdk/go/azure/timeseriesinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := timeseriesinsights.NewEventSource(ctx, "eventSource", &timeseriesinsights.EventSourceArgs{
EnvironmentName: pulumi.String("env1"),
EventSourceName: pulumi.String("es1"),
Kind: pulumi.String("Microsoft.EventHub"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.timeseriesinsights.EventSource;
import com.pulumi.azurenative.timeseriesinsights.EventSourceArgs;
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 eventSource = new EventSource("eventSource", EventSourceArgs.builder()
.environmentName("env1")
.eventSourceName("es1")
.kind("Microsoft.EventHub")
.location("West US")
.resourceGroupName("rg1")
.build());
}
}

EventSourcesCreateEventHubWithCustomEnquedTime

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var eventSource = new AzureNative.TimeSeriesInsights.EventSource("eventSource", new()
{
EnvironmentName = "env1",
EventSourceName = "es1",
Kind = "Microsoft.EventHub",
Location = "West US",
ResourceGroupName = "rg1",
});
});
package main
import (
timeseriesinsights "github.com/pulumi/pulumi-azure-native/sdk/go/azure/timeseriesinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := timeseriesinsights.NewEventSource(ctx, "eventSource", &timeseriesinsights.EventSourceArgs{
EnvironmentName: pulumi.String("env1"),
EventSourceName: pulumi.String("es1"),
Kind: pulumi.String("Microsoft.EventHub"),
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.timeseriesinsights.EventSource;
import com.pulumi.azurenative.timeseriesinsights.EventSourceArgs;
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 eventSource = new EventSource("eventSource", EventSourceArgs.builder()
.environmentName("env1")
.eventSourceName("es1")
.kind("Microsoft.EventHub")
.location("West US")
.resourceGroupName("rg1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:timeseriesinsights:EventSource es1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1

Constructors

Link copied to clipboard
fun EventSourceArgs(environmentName: Output<String>? = null, eventSourceName: Output<String>? = null, kind: Output<Either<String, EventSourceKind>>? = null, localTimestamp: Output<LocalTimestampArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

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

The name of the Time Series Insights environment associated with the specified resource group.

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

Name of the event source.

Link copied to clipboard
val kind: Output<Either<String, EventSourceKind>>? = null

The kind of the event source.

Link copied to clipboard
val localTimestamp: Output<LocalTimestampArgs>? = null

An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.

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

The location of the resource.

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

Name of an Azure Resource group.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value pairs of additional properties for the resource.