Azure Native

Pulumi Official
Package maintained by Pulumi
v1.68.2 published on Tuesday, Aug 16, 2022 by Pulumi

EventSource

Deprecated:

Please use one of the variants: EventHubEventSource, IoTHubEventSource.

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());

    }
}
import pulumi
import pulumi_azure_native as azure_native

event_source = azure_native.timeseriesinsights.EventSource("eventSource",
    environment_name="env1",
    event_source_name="es1",
    kind="Microsoft.EventHub",
    location="West US",
    resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const eventSource = new azure_native.timeseriesinsights.EventSource("eventSource", {
    environmentName: "env1",
    eventSourceName: "es1",
    kind: "Microsoft.EventHub",
    location: "West US",
    resourceGroupName: "rg1",
});
resources:
  eventSource:
    type: azure-native:timeseriesinsights:EventSource
    properties:
      environmentName: env1
      eventSourceName: es1
      kind: Microsoft.EventHub
      location: West US
      resourceGroupName: rg1

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 pulumi
import pulumi_azure_native as azure_native

event_source = azure_native.timeseriesinsights.EventSource("eventSource",
    environment_name="env1",
    event_source_name="es1",
    kind="Microsoft.EventHub",
    location="West US",
    resource_group_name="rg1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const eventSource = new azure_native.timeseriesinsights.EventSource("eventSource", {
    environmentName: "env1",
    eventSourceName: "es1",
    kind: "Microsoft.EventHub",
    location: "West US",
    resourceGroupName: "rg1",
});
resources:
  eventSource:
    type: azure-native:timeseriesinsights:EventSource
    properties:
      environmentName: env1
      eventSourceName: es1
      kind: Microsoft.EventHub
      location: West US
      resourceGroupName: rg1

Create a EventSource Resource

new EventSource(name: string, args: EventSourceArgs, opts?: CustomResourceOptions);
@overload
def EventSource(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                environment_name: Optional[str] = None,
                event_source_name: Optional[str] = None,
                kind: Optional[Union[str, EventSourceKind]] = None,
                local_timestamp: Optional[LocalTimestampArgs] = None,
                location: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None)
@overload
def EventSource(resource_name: str,
                args: EventSourceArgs,
                opts: Optional[ResourceOptions] = None)
func NewEventSource(ctx *Context, name string, args EventSourceArgs, opts ...ResourceOption) (*EventSource, error)
public EventSource(string name, EventSourceArgs args, CustomResourceOptions? opts = null)
public EventSource(String name, EventSourceArgs args)
public EventSource(String name, EventSourceArgs args, CustomResourceOptions options)
type: azure-native:timeseriesinsights:EventSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EventSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args EventSourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args EventSourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EventSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EventSourceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

EventSource Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The EventSource resource accepts the following input properties:

EnvironmentName string

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

Kind string | Pulumi.AzureNative.TimeSeriesInsights.EventSourceKind

The kind of the event source.

ResourceGroupName string

Name of an Azure Resource group.

EventSourceName string

Name of the event source.

LocalTimestamp Pulumi.AzureNative.TimeSeriesInsights.Inputs.LocalTimestampArgs

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.

Location string

The location of the resource.

Tags Dictionary<string, string>

Key-value pairs of additional properties for the resource.

EnvironmentName string

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

Kind string | EventSourceKind

The kind of the event source.

ResourceGroupName string

Name of an Azure Resource group.

EventSourceName string

Name of the event source.

LocalTimestamp LocalTimestampArgs

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.

Location string

The location of the resource.

Tags map[string]string

Key-value pairs of additional properties for the resource.

environmentName String

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

kind String | EventSourceKind

The kind of the event source.

resourceGroupName String

Name of an Azure Resource group.

eventSourceName String

Name of the event source.

localTimestamp LocalTimestampArgs

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.

location String

The location of the resource.

tags Map<String,String>

Key-value pairs of additional properties for the resource.

environmentName string

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

kind string | EventSourceKind

The kind of the event source.

resourceGroupName string

Name of an Azure Resource group.

eventSourceName string

Name of the event source.

localTimestamp LocalTimestampArgs

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.

location string

The location of the resource.

tags {[key: string]: string}

Key-value pairs of additional properties for the resource.

environment_name str

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

kind str | EventSourceKind

The kind of the event source.

resource_group_name str

Name of an Azure Resource group.

event_source_name str

Name of the event source.

local_timestamp LocalTimestampArgs

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.

location str

The location of the resource.

tags Mapping[str, str]

Key-value pairs of additional properties for the resource.

environmentName String

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

kind String | "Microsoft.EventHub" | "Microsoft.IoTHub"

The kind of the event source.

resourceGroupName String

Name of an Azure Resource group.

eventSourceName String

Name of the event source.

localTimestamp Property Map

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.

location String

The location of the resource.

tags Map<String>

Key-value pairs of additional properties for the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the EventSource resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

Type string

Resource type

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

Type string

Resource type

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

type String

Resource type

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name

type string

Resource type

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name

type str

Resource type

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

type String

Resource type

Supporting Types

EventSourceKind

Microsoft_EventHub
Microsoft.EventHub
Microsoft_IoTHub
Microsoft.IoTHub
EventSourceKind_Microsoft_EventHub
Microsoft.EventHub
EventSourceKind_Microsoft_IoTHub
Microsoft.IoTHub
Microsoft_EventHub
Microsoft.EventHub
Microsoft_IoTHub
Microsoft.IoTHub
Microsoft_EventHub
Microsoft.EventHub
Microsoft_IoTHub
Microsoft.IoTHub
MICROSOFT_EVENT_HUB
Microsoft.EventHub
MICROSOFT_IO_T_HUB
Microsoft.IoTHub
"Microsoft.EventHub"
Microsoft.EventHub
"Microsoft.IoTHub"
Microsoft.IoTHub

LocalTimestamp

Format string | Pulumi.AzureNative.TimeSeriesInsights.LocalTimestampFormat

An enum that represents the format of the local timestamp property that needs to be set.

TimeZoneOffset Pulumi.AzureNative.TimeSeriesInsights.Inputs.LocalTimestampTimeZoneOffset

An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.

Format string | LocalTimestampFormat

An enum that represents the format of the local timestamp property that needs to be set.

TimeZoneOffset LocalTimestampTimeZoneOffset

An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.

format String | LocalTimestampFormat

An enum that represents the format of the local timestamp property that needs to be set.

timeZoneOffset LocalTimestampTimeZoneOffset

An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.

format string | LocalTimestampFormat

An enum that represents the format of the local timestamp property that needs to be set.

timeZoneOffset LocalTimestampTimeZoneOffset

An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.

format str | LocalTimestampFormat

An enum that represents the format of the local timestamp property that needs to be set.

time_zone_offset LocalTimestampTimeZoneOffset

An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.

format String | "Embedded"

An enum that represents the format of the local timestamp property that needs to be set.

timeZoneOffset Property Map

An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.

LocalTimestampFormat

Embedded
Embedded
LocalTimestampFormatEmbedded
Embedded
Embedded
Embedded
Embedded
Embedded
EMBEDDED
Embedded
"Embedded"
Embedded

LocalTimestampTimeZoneOffset

PropertyName string

The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)

PropertyName string

The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)

propertyName String

The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)

propertyName string

The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)

property_name str

The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)

propertyName String

The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)

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 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0