azure-native.timeseriesinsights.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", ×eriesinsights.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", ×eriesinsights.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 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:
- Environment
Name string The name of the Time Series Insights environment associated with the specified resource group.
- Kind
string | Pulumi.
Azure Native. Time Series Insights. Event Source Kind The kind of the event source.
- Resource
Group stringName Name of an Azure Resource group.
- Event
Source stringName Name of the event source.
- Local
Timestamp Pulumi.Azure Native. Time Series Insights. Inputs. Local Timestamp Args 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.
- Dictionary<string, string>
Key-value pairs of additional properties for the resource.
- Environment
Name string The name of the Time Series Insights environment associated with the specified resource group.
- Kind
string | Event
Source Kind The kind of the event source.
- Resource
Group stringName Name of an Azure Resource group.
- Event
Source stringName Name of the event source.
- Local
Timestamp LocalTimestamp Args 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.
- map[string]string
Key-value pairs of additional properties for the resource.
- environment
Name String The name of the Time Series Insights environment associated with the specified resource group.
- kind
String | Event
Source Kind The kind of the event source.
- resource
Group StringName Name of an Azure Resource group.
- event
Source StringName Name of the event source.
- local
Timestamp LocalTimestamp Args 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.
- Map<String,String>
Key-value pairs of additional properties for the resource.
- environment
Name string The name of the Time Series Insights environment associated with the specified resource group.
- kind
string | Event
Source Kind The kind of the event source.
- resource
Group stringName Name of an Azure Resource group.
- event
Source stringName Name of the event source.
- local
Timestamp LocalTimestamp Args 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.
- {[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 | Event
Source Kind The kind of the event source.
- resource_
group_ strname Name of an Azure Resource group.
- event_
source_ strname Name of the event source.
- local_
timestamp LocalTimestamp Args 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.
- Mapping[str, str]
Key-value pairs of additional properties for the resource.
- environment
Name String The name of the Time Series Insights environment associated with the specified resource group.
- kind
String | "Microsoft.
Event Hub" | "Microsoft. Io THub" The kind of the event source.
- resource
Group StringName Name of an Azure Resource group.
- event
Source StringName Name of the event source.
- local
Timestamp 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.
- 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:
Supporting Types
EventSourceKind
- Microsoft_Event
Hub - Microsoft.EventHub
- Microsoft_Io
THub - Microsoft.IoTHub
- Event
Source Kind_Microsoft_Event Hub - Microsoft.EventHub
- Event
Source Kind_Microsoft_Io THub - Microsoft.IoTHub
- Microsoft_Event
Hub - Microsoft.EventHub
- Microsoft_Io
THub - Microsoft.IoTHub
- Microsoft_Event
Hub - Microsoft.EventHub
- Microsoft_Io
THub - Microsoft.IoTHub
- MICROSOFT_EVENT_HUB
- Microsoft.EventHub
- MICROSOFT_IO_T_HUB
- Microsoft.IoTHub
- "Microsoft.
Event Hub" - Microsoft.EventHub
- "Microsoft.
Io THub" - Microsoft.IoTHub
LocalTimestamp
- Format
string | Pulumi.
Azure Native. Time Series Insights. Local Timestamp Format An enum that represents the format of the local timestamp property that needs to be set.
- Time
Zone Pulumi.Offset Azure Native. Time Series Insights. Inputs. Local Timestamp Time Zone Offset An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.
- Format
string | Local
Timestamp Format An enum that represents the format of the local timestamp property that needs to be set.
- Time
Zone LocalOffset Timestamp Time Zone Offset An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.
- format
String | Local
Timestamp Format An enum that represents the format of the local timestamp property that needs to be set.
- time
Zone LocalOffset Timestamp Time Zone Offset An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.
- format
string | Local
Timestamp Format An enum that represents the format of the local timestamp property that needs to be set.
- time
Zone LocalOffset Timestamp Time Zone Offset An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.
- format
str | Local
Timestamp Format An enum that represents the format of the local timestamp property that needs to be set.
- time_
zone_ Localoffset Timestamp Time Zone Offset 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.
- time
Zone Property MapOffset An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.
LocalTimestampFormat
- Embedded
- Embedded
- Local
Timestamp Format Embedded - Embedded
- Embedded
- Embedded
- Embedded
- Embedded
- EMBEDDED
- Embedded
- "Embedded"
- Embedded
LocalTimestampTimeZoneOffset
- Property
Name 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 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 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 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)
- property
Name 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
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0