Documentation ¶
Index ¶
- type EndpointEventGrid
- type EndpointEventGridArgs
- type EndpointEventGridArray
- type EndpointEventGridArrayInput
- type EndpointEventGridArrayOutput
- func (EndpointEventGridArrayOutput) ElementType() reflect.Type
- func (o EndpointEventGridArrayOutput) Index(i pulumi.IntInput) EndpointEventGridOutput
- func (o EndpointEventGridArrayOutput) ToEndpointEventGridArrayOutput() EndpointEventGridArrayOutput
- func (o EndpointEventGridArrayOutput) ToEndpointEventGridArrayOutputWithContext(ctx context.Context) EndpointEventGridArrayOutput
- type EndpointEventGridInput
- type EndpointEventGridMap
- type EndpointEventGridMapInput
- type EndpointEventGridMapOutput
- func (EndpointEventGridMapOutput) ElementType() reflect.Type
- func (o EndpointEventGridMapOutput) MapIndex(k pulumi.StringInput) EndpointEventGridOutput
- func (o EndpointEventGridMapOutput) ToEndpointEventGridMapOutput() EndpointEventGridMapOutput
- func (o EndpointEventGridMapOutput) ToEndpointEventGridMapOutputWithContext(ctx context.Context) EndpointEventGridMapOutput
- type EndpointEventGridOutput
- func (o EndpointEventGridOutput) DeadLetterStorageSecret() pulumi.StringPtrOutput
- func (o EndpointEventGridOutput) DigitalTwinsId() pulumi.StringOutput
- func (EndpointEventGridOutput) ElementType() reflect.Type
- func (o EndpointEventGridOutput) EventgridTopicEndpoint() pulumi.StringOutput
- func (o EndpointEventGridOutput) EventgridTopicPrimaryAccessKey() pulumi.StringOutput
- func (o EndpointEventGridOutput) EventgridTopicSecondaryAccessKey() pulumi.StringOutput
- func (o EndpointEventGridOutput) Name() pulumi.StringOutput
- func (o EndpointEventGridOutput) ToEndpointEventGridOutput() EndpointEventGridOutput
- func (o EndpointEventGridOutput) ToEndpointEventGridOutputWithContext(ctx context.Context) EndpointEventGridOutput
- type EndpointEventGridState
- type EndpointEventHub
- type EndpointEventHubArgs
- type EndpointEventHubArray
- type EndpointEventHubArrayInput
- type EndpointEventHubArrayOutput
- func (EndpointEventHubArrayOutput) ElementType() reflect.Type
- func (o EndpointEventHubArrayOutput) Index(i pulumi.IntInput) EndpointEventHubOutput
- func (o EndpointEventHubArrayOutput) ToEndpointEventHubArrayOutput() EndpointEventHubArrayOutput
- func (o EndpointEventHubArrayOutput) ToEndpointEventHubArrayOutputWithContext(ctx context.Context) EndpointEventHubArrayOutput
- type EndpointEventHubInput
- type EndpointEventHubMap
- type EndpointEventHubMapInput
- type EndpointEventHubMapOutput
- func (EndpointEventHubMapOutput) ElementType() reflect.Type
- func (o EndpointEventHubMapOutput) MapIndex(k pulumi.StringInput) EndpointEventHubOutput
- func (o EndpointEventHubMapOutput) ToEndpointEventHubMapOutput() EndpointEventHubMapOutput
- func (o EndpointEventHubMapOutput) ToEndpointEventHubMapOutputWithContext(ctx context.Context) EndpointEventHubMapOutput
- type EndpointEventHubOutput
- func (o EndpointEventHubOutput) DeadLetterStorageSecret() pulumi.StringPtrOutput
- func (o EndpointEventHubOutput) DigitalTwinsId() pulumi.StringOutput
- func (EndpointEventHubOutput) ElementType() reflect.Type
- func (o EndpointEventHubOutput) EventhubPrimaryConnectionString() pulumi.StringOutput
- func (o EndpointEventHubOutput) EventhubSecondaryConnectionString() pulumi.StringOutput
- func (o EndpointEventHubOutput) Name() pulumi.StringOutput
- func (o EndpointEventHubOutput) ToEndpointEventHubOutput() EndpointEventHubOutput
- func (o EndpointEventHubOutput) ToEndpointEventHubOutputWithContext(ctx context.Context) EndpointEventHubOutput
- type EndpointEventHubState
- type EndpointServicebus
- type EndpointServicebusArgs
- type EndpointServicebusArray
- type EndpointServicebusArrayInput
- type EndpointServicebusArrayOutput
- func (EndpointServicebusArrayOutput) ElementType() reflect.Type
- func (o EndpointServicebusArrayOutput) Index(i pulumi.IntInput) EndpointServicebusOutput
- func (o EndpointServicebusArrayOutput) ToEndpointServicebusArrayOutput() EndpointServicebusArrayOutput
- func (o EndpointServicebusArrayOutput) ToEndpointServicebusArrayOutputWithContext(ctx context.Context) EndpointServicebusArrayOutput
- type EndpointServicebusInput
- type EndpointServicebusMap
- type EndpointServicebusMapInput
- type EndpointServicebusMapOutput
- func (EndpointServicebusMapOutput) ElementType() reflect.Type
- func (o EndpointServicebusMapOutput) MapIndex(k pulumi.StringInput) EndpointServicebusOutput
- func (o EndpointServicebusMapOutput) ToEndpointServicebusMapOutput() EndpointServicebusMapOutput
- func (o EndpointServicebusMapOutput) ToEndpointServicebusMapOutputWithContext(ctx context.Context) EndpointServicebusMapOutput
- type EndpointServicebusOutput
- func (o EndpointServicebusOutput) DeadLetterStorageSecret() pulumi.StringPtrOutput
- func (o EndpointServicebusOutput) DigitalTwinsId() pulumi.StringOutput
- func (EndpointServicebusOutput) ElementType() reflect.Type
- func (o EndpointServicebusOutput) Name() pulumi.StringOutput
- func (o EndpointServicebusOutput) ServicebusPrimaryConnectionString() pulumi.StringOutput
- func (o EndpointServicebusOutput) ServicebusSecondaryConnectionString() pulumi.StringOutput
- func (o EndpointServicebusOutput) ToEndpointServicebusOutput() EndpointServicebusOutput
- func (o EndpointServicebusOutput) ToEndpointServicebusOutputWithContext(ctx context.Context) EndpointServicebusOutput
- type EndpointServicebusState
- type Instance
- type InstanceArgs
- type InstanceArray
- type InstanceArrayInput
- type InstanceArrayOutput
- type InstanceIdentity
- type InstanceIdentityArgs
- func (InstanceIdentityArgs) ElementType() reflect.Type
- func (i InstanceIdentityArgs) ToInstanceIdentityOutput() InstanceIdentityOutput
- func (i InstanceIdentityArgs) ToInstanceIdentityOutputWithContext(ctx context.Context) InstanceIdentityOutput
- func (i InstanceIdentityArgs) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput
- func (i InstanceIdentityArgs) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput
- type InstanceIdentityInput
- type InstanceIdentityOutput
- func (InstanceIdentityOutput) ElementType() reflect.Type
- func (o InstanceIdentityOutput) IdentityIds() pulumi.StringArrayOutput
- func (o InstanceIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o InstanceIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o InstanceIdentityOutput) ToInstanceIdentityOutput() InstanceIdentityOutput
- func (o InstanceIdentityOutput) ToInstanceIdentityOutputWithContext(ctx context.Context) InstanceIdentityOutput
- func (o InstanceIdentityOutput) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput
- func (o InstanceIdentityOutput) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput
- func (o InstanceIdentityOutput) Type() pulumi.StringOutput
- type InstanceIdentityPtrInput
- type InstanceIdentityPtrOutput
- func (o InstanceIdentityPtrOutput) Elem() InstanceIdentityOutput
- func (InstanceIdentityPtrOutput) ElementType() reflect.Type
- func (o InstanceIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
- func (o InstanceIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o InstanceIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o InstanceIdentityPtrOutput) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput
- func (o InstanceIdentityPtrOutput) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput
- func (o InstanceIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type InstanceInput
- type InstanceMap
- type InstanceMapInput
- type InstanceMapOutput
- type InstanceOutput
- func (InstanceOutput) ElementType() reflect.Type
- func (o InstanceOutput) HostName() pulumi.StringOutput
- func (o InstanceOutput) Identity() InstanceIdentityPtrOutput
- func (o InstanceOutput) Location() pulumi.StringOutput
- func (o InstanceOutput) Name() pulumi.StringOutput
- func (o InstanceOutput) ResourceGroupName() pulumi.StringOutput
- func (o InstanceOutput) Tags() pulumi.StringMapOutput
- func (o InstanceOutput) ToInstanceOutput() InstanceOutput
- func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
- type InstanceState
- type LookupInstanceArgs
- type LookupInstanceOutputArgs
- type LookupInstanceResult
- type LookupInstanceResultOutput
- func (LookupInstanceResultOutput) ElementType() reflect.Type
- func (o LookupInstanceResultOutput) HostName() pulumi.StringOutput
- func (o LookupInstanceResultOutput) Id() pulumi.StringOutput
- func (o LookupInstanceResultOutput) Location() pulumi.StringOutput
- func (o LookupInstanceResultOutput) Name() pulumi.StringOutput
- func (o LookupInstanceResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupInstanceResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupInstanceResultOutput) ToLookupInstanceResultOutput() LookupInstanceResultOutput
- func (o LookupInstanceResultOutput) ToLookupInstanceResultOutputWithContext(ctx context.Context) LookupInstanceResultOutput
- type TimeSeriesDatabaseConnection
- func (*TimeSeriesDatabaseConnection) ElementType() reflect.Type
- func (i *TimeSeriesDatabaseConnection) ToTimeSeriesDatabaseConnectionOutput() TimeSeriesDatabaseConnectionOutput
- func (i *TimeSeriesDatabaseConnection) ToTimeSeriesDatabaseConnectionOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionOutput
- type TimeSeriesDatabaseConnectionArgs
- type TimeSeriesDatabaseConnectionArray
- func (TimeSeriesDatabaseConnectionArray) ElementType() reflect.Type
- func (i TimeSeriesDatabaseConnectionArray) ToTimeSeriesDatabaseConnectionArrayOutput() TimeSeriesDatabaseConnectionArrayOutput
- func (i TimeSeriesDatabaseConnectionArray) ToTimeSeriesDatabaseConnectionArrayOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionArrayOutput
- type TimeSeriesDatabaseConnectionArrayInput
- type TimeSeriesDatabaseConnectionArrayOutput
- func (TimeSeriesDatabaseConnectionArrayOutput) ElementType() reflect.Type
- func (o TimeSeriesDatabaseConnectionArrayOutput) Index(i pulumi.IntInput) TimeSeriesDatabaseConnectionOutput
- func (o TimeSeriesDatabaseConnectionArrayOutput) ToTimeSeriesDatabaseConnectionArrayOutput() TimeSeriesDatabaseConnectionArrayOutput
- func (o TimeSeriesDatabaseConnectionArrayOutput) ToTimeSeriesDatabaseConnectionArrayOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionArrayOutput
- type TimeSeriesDatabaseConnectionInput
- type TimeSeriesDatabaseConnectionMap
- func (TimeSeriesDatabaseConnectionMap) ElementType() reflect.Type
- func (i TimeSeriesDatabaseConnectionMap) ToTimeSeriesDatabaseConnectionMapOutput() TimeSeriesDatabaseConnectionMapOutput
- func (i TimeSeriesDatabaseConnectionMap) ToTimeSeriesDatabaseConnectionMapOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionMapOutput
- type TimeSeriesDatabaseConnectionMapInput
- type TimeSeriesDatabaseConnectionMapOutput
- func (TimeSeriesDatabaseConnectionMapOutput) ElementType() reflect.Type
- func (o TimeSeriesDatabaseConnectionMapOutput) MapIndex(k pulumi.StringInput) TimeSeriesDatabaseConnectionOutput
- func (o TimeSeriesDatabaseConnectionMapOutput) ToTimeSeriesDatabaseConnectionMapOutput() TimeSeriesDatabaseConnectionMapOutput
- func (o TimeSeriesDatabaseConnectionMapOutput) ToTimeSeriesDatabaseConnectionMapOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionMapOutput
- type TimeSeriesDatabaseConnectionOutput
- func (o TimeSeriesDatabaseConnectionOutput) DigitalTwinsId() pulumi.StringOutput
- func (TimeSeriesDatabaseConnectionOutput) ElementType() reflect.Type
- func (o TimeSeriesDatabaseConnectionOutput) EventhubConsumerGroupName() pulumi.StringPtrOutput
- func (o TimeSeriesDatabaseConnectionOutput) EventhubName() pulumi.StringOutput
- func (o TimeSeriesDatabaseConnectionOutput) EventhubNamespaceEndpointUri() pulumi.StringOutput
- func (o TimeSeriesDatabaseConnectionOutput) EventhubNamespaceId() pulumi.StringOutput
- func (o TimeSeriesDatabaseConnectionOutput) KustoClusterId() pulumi.StringOutput
- func (o TimeSeriesDatabaseConnectionOutput) KustoClusterUri() pulumi.StringOutput
- func (o TimeSeriesDatabaseConnectionOutput) KustoDatabaseName() pulumi.StringOutput
- func (o TimeSeriesDatabaseConnectionOutput) KustoTableName() pulumi.StringPtrOutput
- func (o TimeSeriesDatabaseConnectionOutput) Name() pulumi.StringOutput
- func (o TimeSeriesDatabaseConnectionOutput) ToTimeSeriesDatabaseConnectionOutput() TimeSeriesDatabaseConnectionOutput
- func (o TimeSeriesDatabaseConnectionOutput) ToTimeSeriesDatabaseConnectionOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionOutput
- type TimeSeriesDatabaseConnectionState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointEventGrid ¶
type EndpointEventGrid struct { pulumi.CustomResourceState // The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. DeadLetterStorageSecret pulumi.StringPtrOutput `pulumi:"deadLetterStorageSecret"` // The resource ID of the Digital Twins Instance. Changing this forces a new Digital Twins Eventgrid Endpoint to be created. DigitalTwinsId pulumi.StringOutput `pulumi:"digitalTwinsId"` // The endpoint of the Event Grid Topic. EventgridTopicEndpoint pulumi.StringOutput `pulumi:"eventgridTopicEndpoint"` // The primary access key of the Event Grid Topic. EventgridTopicPrimaryAccessKey pulumi.StringOutput `pulumi:"eventgridTopicPrimaryAccessKey"` // The secondary access key of the Event Grid Topic. EventgridTopicSecondaryAccessKey pulumi.StringOutput `pulumi:"eventgridTopicSecondaryAccessKey"` // The name which should be used for this Digital Twins Eventgrid Endpoint. Changing this forces a new Digital Twins Eventgrid Endpoint to be created. Name pulumi.StringOutput `pulumi:"name"` }
Manages a Digital Twins Event Grid Endpoint.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/digitaltwins" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventgrid" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example_resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleInstance, err := digitaltwins.NewInstance(ctx, "example", &digitaltwins.InstanceArgs{ Name: pulumi.String("example-DT"), ResourceGroupName: example.Name, Location: example.Location, }) if err != nil { return err } exampleTopic, err := eventgrid.NewTopic(ctx, "example", &eventgrid.TopicArgs{ Name: pulumi.String("example-topic"), Location: example.Location, ResourceGroupName: example.Name, }) if err != nil { return err } _, err = digitaltwins.NewEndpointEventGrid(ctx, "example", &digitaltwins.EndpointEventGridArgs{ Name: pulumi.String("example-EG"), DigitalTwinsId: exampleInstance.ID(), EventgridTopicEndpoint: exampleTopic.Endpoint, EventgridTopicPrimaryAccessKey: exampleTopic.PrimaryAccessKey, EventgridTopicSecondaryAccessKey: exampleTopic.SecondaryAccessKey, }) if err != nil { return err } return nil }) }
```
## Import
Digital Twins Eventgrid Endpoints can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:digitaltwins/endpointEventGrid:EndpointEventGrid example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DigitalTwins/digitalTwinsInstances/dt1/endpoints/ep1 ```
func GetEndpointEventGrid ¶
func GetEndpointEventGrid(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EndpointEventGridState, opts ...pulumi.ResourceOption) (*EndpointEventGrid, error)
GetEndpointEventGrid gets an existing EndpointEventGrid resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewEndpointEventGrid ¶
func NewEndpointEventGrid(ctx *pulumi.Context, name string, args *EndpointEventGridArgs, opts ...pulumi.ResourceOption) (*EndpointEventGrid, error)
NewEndpointEventGrid registers a new resource with the given unique name, arguments, and options.
func (*EndpointEventGrid) ElementType ¶
func (*EndpointEventGrid) ElementType() reflect.Type
func (*EndpointEventGrid) ToEndpointEventGridOutput ¶
func (i *EndpointEventGrid) ToEndpointEventGridOutput() EndpointEventGridOutput
func (*EndpointEventGrid) ToEndpointEventGridOutputWithContext ¶
func (i *EndpointEventGrid) ToEndpointEventGridOutputWithContext(ctx context.Context) EndpointEventGridOutput
type EndpointEventGridArgs ¶
type EndpointEventGridArgs struct { // The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. DeadLetterStorageSecret pulumi.StringPtrInput // The resource ID of the Digital Twins Instance. Changing this forces a new Digital Twins Eventgrid Endpoint to be created. DigitalTwinsId pulumi.StringInput // The endpoint of the Event Grid Topic. EventgridTopicEndpoint pulumi.StringInput // The primary access key of the Event Grid Topic. EventgridTopicPrimaryAccessKey pulumi.StringInput // The secondary access key of the Event Grid Topic. EventgridTopicSecondaryAccessKey pulumi.StringInput // The name which should be used for this Digital Twins Eventgrid Endpoint. Changing this forces a new Digital Twins Eventgrid Endpoint to be created. Name pulumi.StringPtrInput }
The set of arguments for constructing a EndpointEventGrid resource.
func (EndpointEventGridArgs) ElementType ¶
func (EndpointEventGridArgs) ElementType() reflect.Type
type EndpointEventGridArray ¶
type EndpointEventGridArray []EndpointEventGridInput
func (EndpointEventGridArray) ElementType ¶
func (EndpointEventGridArray) ElementType() reflect.Type
func (EndpointEventGridArray) ToEndpointEventGridArrayOutput ¶
func (i EndpointEventGridArray) ToEndpointEventGridArrayOutput() EndpointEventGridArrayOutput
func (EndpointEventGridArray) ToEndpointEventGridArrayOutputWithContext ¶
func (i EndpointEventGridArray) ToEndpointEventGridArrayOutputWithContext(ctx context.Context) EndpointEventGridArrayOutput
type EndpointEventGridArrayInput ¶
type EndpointEventGridArrayInput interface { pulumi.Input ToEndpointEventGridArrayOutput() EndpointEventGridArrayOutput ToEndpointEventGridArrayOutputWithContext(context.Context) EndpointEventGridArrayOutput }
EndpointEventGridArrayInput is an input type that accepts EndpointEventGridArray and EndpointEventGridArrayOutput values. You can construct a concrete instance of `EndpointEventGridArrayInput` via:
EndpointEventGridArray{ EndpointEventGridArgs{...} }
type EndpointEventGridArrayOutput ¶
type EndpointEventGridArrayOutput struct{ *pulumi.OutputState }
func (EndpointEventGridArrayOutput) ElementType ¶
func (EndpointEventGridArrayOutput) ElementType() reflect.Type
func (EndpointEventGridArrayOutput) Index ¶
func (o EndpointEventGridArrayOutput) Index(i pulumi.IntInput) EndpointEventGridOutput
func (EndpointEventGridArrayOutput) ToEndpointEventGridArrayOutput ¶
func (o EndpointEventGridArrayOutput) ToEndpointEventGridArrayOutput() EndpointEventGridArrayOutput
func (EndpointEventGridArrayOutput) ToEndpointEventGridArrayOutputWithContext ¶
func (o EndpointEventGridArrayOutput) ToEndpointEventGridArrayOutputWithContext(ctx context.Context) EndpointEventGridArrayOutput
type EndpointEventGridInput ¶
type EndpointEventGridInput interface { pulumi.Input ToEndpointEventGridOutput() EndpointEventGridOutput ToEndpointEventGridOutputWithContext(ctx context.Context) EndpointEventGridOutput }
type EndpointEventGridMap ¶
type EndpointEventGridMap map[string]EndpointEventGridInput
func (EndpointEventGridMap) ElementType ¶
func (EndpointEventGridMap) ElementType() reflect.Type
func (EndpointEventGridMap) ToEndpointEventGridMapOutput ¶
func (i EndpointEventGridMap) ToEndpointEventGridMapOutput() EndpointEventGridMapOutput
func (EndpointEventGridMap) ToEndpointEventGridMapOutputWithContext ¶
func (i EndpointEventGridMap) ToEndpointEventGridMapOutputWithContext(ctx context.Context) EndpointEventGridMapOutput
type EndpointEventGridMapInput ¶
type EndpointEventGridMapInput interface { pulumi.Input ToEndpointEventGridMapOutput() EndpointEventGridMapOutput ToEndpointEventGridMapOutputWithContext(context.Context) EndpointEventGridMapOutput }
EndpointEventGridMapInput is an input type that accepts EndpointEventGridMap and EndpointEventGridMapOutput values. You can construct a concrete instance of `EndpointEventGridMapInput` via:
EndpointEventGridMap{ "key": EndpointEventGridArgs{...} }
type EndpointEventGridMapOutput ¶
type EndpointEventGridMapOutput struct{ *pulumi.OutputState }
func (EndpointEventGridMapOutput) ElementType ¶
func (EndpointEventGridMapOutput) ElementType() reflect.Type
func (EndpointEventGridMapOutput) MapIndex ¶
func (o EndpointEventGridMapOutput) MapIndex(k pulumi.StringInput) EndpointEventGridOutput
func (EndpointEventGridMapOutput) ToEndpointEventGridMapOutput ¶
func (o EndpointEventGridMapOutput) ToEndpointEventGridMapOutput() EndpointEventGridMapOutput
func (EndpointEventGridMapOutput) ToEndpointEventGridMapOutputWithContext ¶
func (o EndpointEventGridMapOutput) ToEndpointEventGridMapOutputWithContext(ctx context.Context) EndpointEventGridMapOutput
type EndpointEventGridOutput ¶
type EndpointEventGridOutput struct{ *pulumi.OutputState }
func (EndpointEventGridOutput) DeadLetterStorageSecret ¶
func (o EndpointEventGridOutput) DeadLetterStorageSecret() pulumi.StringPtrOutput
The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account.
func (EndpointEventGridOutput) DigitalTwinsId ¶
func (o EndpointEventGridOutput) DigitalTwinsId() pulumi.StringOutput
The resource ID of the Digital Twins Instance. Changing this forces a new Digital Twins Eventgrid Endpoint to be created.
func (EndpointEventGridOutput) ElementType ¶
func (EndpointEventGridOutput) ElementType() reflect.Type
func (EndpointEventGridOutput) EventgridTopicEndpoint ¶
func (o EndpointEventGridOutput) EventgridTopicEndpoint() pulumi.StringOutput
The endpoint of the Event Grid Topic.
func (EndpointEventGridOutput) EventgridTopicPrimaryAccessKey ¶
func (o EndpointEventGridOutput) EventgridTopicPrimaryAccessKey() pulumi.StringOutput
The primary access key of the Event Grid Topic.
func (EndpointEventGridOutput) EventgridTopicSecondaryAccessKey ¶
func (o EndpointEventGridOutput) EventgridTopicSecondaryAccessKey() pulumi.StringOutput
The secondary access key of the Event Grid Topic.
func (EndpointEventGridOutput) Name ¶
func (o EndpointEventGridOutput) Name() pulumi.StringOutput
The name which should be used for this Digital Twins Eventgrid Endpoint. Changing this forces a new Digital Twins Eventgrid Endpoint to be created.
func (EndpointEventGridOutput) ToEndpointEventGridOutput ¶
func (o EndpointEventGridOutput) ToEndpointEventGridOutput() EndpointEventGridOutput
func (EndpointEventGridOutput) ToEndpointEventGridOutputWithContext ¶
func (o EndpointEventGridOutput) ToEndpointEventGridOutputWithContext(ctx context.Context) EndpointEventGridOutput
type EndpointEventGridState ¶
type EndpointEventGridState struct { // The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. DeadLetterStorageSecret pulumi.StringPtrInput // The resource ID of the Digital Twins Instance. Changing this forces a new Digital Twins Eventgrid Endpoint to be created. DigitalTwinsId pulumi.StringPtrInput // The endpoint of the Event Grid Topic. EventgridTopicEndpoint pulumi.StringPtrInput // The primary access key of the Event Grid Topic. EventgridTopicPrimaryAccessKey pulumi.StringPtrInput // The secondary access key of the Event Grid Topic. EventgridTopicSecondaryAccessKey pulumi.StringPtrInput // The name which should be used for this Digital Twins Eventgrid Endpoint. Changing this forces a new Digital Twins Eventgrid Endpoint to be created. Name pulumi.StringPtrInput }
func (EndpointEventGridState) ElementType ¶
func (EndpointEventGridState) ElementType() reflect.Type
type EndpointEventHub ¶
type EndpointEventHub struct { pulumi.CustomResourceState // The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. DeadLetterStorageSecret pulumi.StringPtrOutput `pulumi:"deadLetterStorageSecret"` // The resource ID of the Digital Twins Instance. Changing this forces a new Digital Twins Event Hub Endpoint to be created. DigitalTwinsId pulumi.StringOutput `pulumi:"digitalTwinsId"` // The primary connection string of the Event Hub Authorization Rule with a minimum of `send` permission. EventhubPrimaryConnectionString pulumi.StringOutput `pulumi:"eventhubPrimaryConnectionString"` // The secondary connection string of the Event Hub Authorization Rule with a minimum of `send` permission. EventhubSecondaryConnectionString pulumi.StringOutput `pulumi:"eventhubSecondaryConnectionString"` // The name which should be used for this Digital Twins Event Hub Endpoint. Changing this forces a new Digital Twins Event Hub Endpoint to be created. Name pulumi.StringOutput `pulumi:"name"` }
Manages a Digital Twins Event Hub Endpoint.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/digitaltwins" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventhub" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example_resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleInstance, err := digitaltwins.NewInstance(ctx, "example", &digitaltwins.InstanceArgs{ Name: pulumi.String("example-DT"), ResourceGroupName: example.Name, Location: example.Location, }) if err != nil { return err } exampleEventHubNamespace, err := eventhub.NewEventHubNamespace(ctx, "example", &eventhub.EventHubNamespaceArgs{ Name: pulumi.String("example-eh-ns"), Location: example.Location, ResourceGroupName: example.Name, Sku: pulumi.String("Standard"), }) if err != nil { return err } exampleEventHub, err := eventhub.NewEventHub(ctx, "example", &eventhub.EventHubArgs{ Name: pulumi.String("example-eh"), NamespaceName: exampleEventHubNamespace.Name, ResourceGroupName: example.Name, PartitionCount: pulumi.Int(2), MessageRetention: pulumi.Int(1), }) if err != nil { return err } exampleAuthorizationRule, err := eventhub.NewAuthorizationRule(ctx, "example", &eventhub.AuthorizationRuleArgs{ Name: pulumi.String("example-ar"), NamespaceName: exampleEventHubNamespace.Name, EventhubName: exampleEventHub.Name, ResourceGroupName: example.Name, Listen: pulumi.Bool(false), Send: pulumi.Bool(true), Manage: pulumi.Bool(false), }) if err != nil { return err } _, err = digitaltwins.NewEndpointEventHub(ctx, "example", &digitaltwins.EndpointEventHubArgs{ Name: pulumi.String("example-EH"), DigitalTwinsId: exampleInstance.ID(), EventhubPrimaryConnectionString: exampleAuthorizationRule.PrimaryConnectionString, EventhubSecondaryConnectionString: exampleAuthorizationRule.SecondaryConnectionString, }) if err != nil { return err } return nil }) }
```
## Import
Digital Twins Eventhub Endpoints can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:digitaltwins/endpointEventHub:EndpointEventHub example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DigitalTwins/digitalTwinsInstances/dt1/endpoints/ep1 ```
func GetEndpointEventHub ¶
func GetEndpointEventHub(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EndpointEventHubState, opts ...pulumi.ResourceOption) (*EndpointEventHub, error)
GetEndpointEventHub gets an existing EndpointEventHub resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewEndpointEventHub ¶
func NewEndpointEventHub(ctx *pulumi.Context, name string, args *EndpointEventHubArgs, opts ...pulumi.ResourceOption) (*EndpointEventHub, error)
NewEndpointEventHub registers a new resource with the given unique name, arguments, and options.
func (*EndpointEventHub) ElementType ¶
func (*EndpointEventHub) ElementType() reflect.Type
func (*EndpointEventHub) ToEndpointEventHubOutput ¶
func (i *EndpointEventHub) ToEndpointEventHubOutput() EndpointEventHubOutput
func (*EndpointEventHub) ToEndpointEventHubOutputWithContext ¶
func (i *EndpointEventHub) ToEndpointEventHubOutputWithContext(ctx context.Context) EndpointEventHubOutput
type EndpointEventHubArgs ¶
type EndpointEventHubArgs struct { // The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. DeadLetterStorageSecret pulumi.StringPtrInput // The resource ID of the Digital Twins Instance. Changing this forces a new Digital Twins Event Hub Endpoint to be created. DigitalTwinsId pulumi.StringInput // The primary connection string of the Event Hub Authorization Rule with a minimum of `send` permission. EventhubPrimaryConnectionString pulumi.StringInput // The secondary connection string of the Event Hub Authorization Rule with a minimum of `send` permission. EventhubSecondaryConnectionString pulumi.StringInput // The name which should be used for this Digital Twins Event Hub Endpoint. Changing this forces a new Digital Twins Event Hub Endpoint to be created. Name pulumi.StringPtrInput }
The set of arguments for constructing a EndpointEventHub resource.
func (EndpointEventHubArgs) ElementType ¶
func (EndpointEventHubArgs) ElementType() reflect.Type
type EndpointEventHubArray ¶
type EndpointEventHubArray []EndpointEventHubInput
func (EndpointEventHubArray) ElementType ¶
func (EndpointEventHubArray) ElementType() reflect.Type
func (EndpointEventHubArray) ToEndpointEventHubArrayOutput ¶
func (i EndpointEventHubArray) ToEndpointEventHubArrayOutput() EndpointEventHubArrayOutput
func (EndpointEventHubArray) ToEndpointEventHubArrayOutputWithContext ¶
func (i EndpointEventHubArray) ToEndpointEventHubArrayOutputWithContext(ctx context.Context) EndpointEventHubArrayOutput
type EndpointEventHubArrayInput ¶
type EndpointEventHubArrayInput interface { pulumi.Input ToEndpointEventHubArrayOutput() EndpointEventHubArrayOutput ToEndpointEventHubArrayOutputWithContext(context.Context) EndpointEventHubArrayOutput }
EndpointEventHubArrayInput is an input type that accepts EndpointEventHubArray and EndpointEventHubArrayOutput values. You can construct a concrete instance of `EndpointEventHubArrayInput` via:
EndpointEventHubArray{ EndpointEventHubArgs{...} }
type EndpointEventHubArrayOutput ¶
type EndpointEventHubArrayOutput struct{ *pulumi.OutputState }
func (EndpointEventHubArrayOutput) ElementType ¶
func (EndpointEventHubArrayOutput) ElementType() reflect.Type
func (EndpointEventHubArrayOutput) Index ¶
func (o EndpointEventHubArrayOutput) Index(i pulumi.IntInput) EndpointEventHubOutput
func (EndpointEventHubArrayOutput) ToEndpointEventHubArrayOutput ¶
func (o EndpointEventHubArrayOutput) ToEndpointEventHubArrayOutput() EndpointEventHubArrayOutput
func (EndpointEventHubArrayOutput) ToEndpointEventHubArrayOutputWithContext ¶
func (o EndpointEventHubArrayOutput) ToEndpointEventHubArrayOutputWithContext(ctx context.Context) EndpointEventHubArrayOutput
type EndpointEventHubInput ¶
type EndpointEventHubInput interface { pulumi.Input ToEndpointEventHubOutput() EndpointEventHubOutput ToEndpointEventHubOutputWithContext(ctx context.Context) EndpointEventHubOutput }
type EndpointEventHubMap ¶
type EndpointEventHubMap map[string]EndpointEventHubInput
func (EndpointEventHubMap) ElementType ¶
func (EndpointEventHubMap) ElementType() reflect.Type
func (EndpointEventHubMap) ToEndpointEventHubMapOutput ¶
func (i EndpointEventHubMap) ToEndpointEventHubMapOutput() EndpointEventHubMapOutput
func (EndpointEventHubMap) ToEndpointEventHubMapOutputWithContext ¶
func (i EndpointEventHubMap) ToEndpointEventHubMapOutputWithContext(ctx context.Context) EndpointEventHubMapOutput
type EndpointEventHubMapInput ¶
type EndpointEventHubMapInput interface { pulumi.Input ToEndpointEventHubMapOutput() EndpointEventHubMapOutput ToEndpointEventHubMapOutputWithContext(context.Context) EndpointEventHubMapOutput }
EndpointEventHubMapInput is an input type that accepts EndpointEventHubMap and EndpointEventHubMapOutput values. You can construct a concrete instance of `EndpointEventHubMapInput` via:
EndpointEventHubMap{ "key": EndpointEventHubArgs{...} }
type EndpointEventHubMapOutput ¶
type EndpointEventHubMapOutput struct{ *pulumi.OutputState }
func (EndpointEventHubMapOutput) ElementType ¶
func (EndpointEventHubMapOutput) ElementType() reflect.Type
func (EndpointEventHubMapOutput) MapIndex ¶
func (o EndpointEventHubMapOutput) MapIndex(k pulumi.StringInput) EndpointEventHubOutput
func (EndpointEventHubMapOutput) ToEndpointEventHubMapOutput ¶
func (o EndpointEventHubMapOutput) ToEndpointEventHubMapOutput() EndpointEventHubMapOutput
func (EndpointEventHubMapOutput) ToEndpointEventHubMapOutputWithContext ¶
func (o EndpointEventHubMapOutput) ToEndpointEventHubMapOutputWithContext(ctx context.Context) EndpointEventHubMapOutput
type EndpointEventHubOutput ¶
type EndpointEventHubOutput struct{ *pulumi.OutputState }
func (EndpointEventHubOutput) DeadLetterStorageSecret ¶
func (o EndpointEventHubOutput) DeadLetterStorageSecret() pulumi.StringPtrOutput
The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account.
func (EndpointEventHubOutput) DigitalTwinsId ¶
func (o EndpointEventHubOutput) DigitalTwinsId() pulumi.StringOutput
The resource ID of the Digital Twins Instance. Changing this forces a new Digital Twins Event Hub Endpoint to be created.
func (EndpointEventHubOutput) ElementType ¶
func (EndpointEventHubOutput) ElementType() reflect.Type
func (EndpointEventHubOutput) EventhubPrimaryConnectionString ¶
func (o EndpointEventHubOutput) EventhubPrimaryConnectionString() pulumi.StringOutput
The primary connection string of the Event Hub Authorization Rule with a minimum of `send` permission.
func (EndpointEventHubOutput) EventhubSecondaryConnectionString ¶
func (o EndpointEventHubOutput) EventhubSecondaryConnectionString() pulumi.StringOutput
The secondary connection string of the Event Hub Authorization Rule with a minimum of `send` permission.
func (EndpointEventHubOutput) Name ¶
func (o EndpointEventHubOutput) Name() pulumi.StringOutput
The name which should be used for this Digital Twins Event Hub Endpoint. Changing this forces a new Digital Twins Event Hub Endpoint to be created.
func (EndpointEventHubOutput) ToEndpointEventHubOutput ¶
func (o EndpointEventHubOutput) ToEndpointEventHubOutput() EndpointEventHubOutput
func (EndpointEventHubOutput) ToEndpointEventHubOutputWithContext ¶
func (o EndpointEventHubOutput) ToEndpointEventHubOutputWithContext(ctx context.Context) EndpointEventHubOutput
type EndpointEventHubState ¶
type EndpointEventHubState struct { // The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. DeadLetterStorageSecret pulumi.StringPtrInput // The resource ID of the Digital Twins Instance. Changing this forces a new Digital Twins Event Hub Endpoint to be created. DigitalTwinsId pulumi.StringPtrInput // The primary connection string of the Event Hub Authorization Rule with a minimum of `send` permission. EventhubPrimaryConnectionString pulumi.StringPtrInput // The secondary connection string of the Event Hub Authorization Rule with a minimum of `send` permission. EventhubSecondaryConnectionString pulumi.StringPtrInput // The name which should be used for this Digital Twins Event Hub Endpoint. Changing this forces a new Digital Twins Event Hub Endpoint to be created. Name pulumi.StringPtrInput }
func (EndpointEventHubState) ElementType ¶
func (EndpointEventHubState) ElementType() reflect.Type
type EndpointServicebus ¶
type EndpointServicebus struct { pulumi.CustomResourceState // The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. DeadLetterStorageSecret pulumi.StringPtrOutput `pulumi:"deadLetterStorageSecret"` // The ID of the Digital Twins Instance. Changing this forces a new Digital Twins Service Bus Endpoint to be created. DigitalTwinsId pulumi.StringOutput `pulumi:"digitalTwinsId"` // The name which should be used for this Digital Twins Service Bus Endpoint. Changing this forces a new Digital Twins Service Bus Endpoint to be created. Name pulumi.StringOutput `pulumi:"name"` // The primary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. . ServicebusPrimaryConnectionString pulumi.StringOutput `pulumi:"servicebusPrimaryConnectionString"` // The secondary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. ServicebusSecondaryConnectionString pulumi.StringOutput `pulumi:"servicebusSecondaryConnectionString"` }
Manages a Digital Twins Service Bus Endpoint.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/digitaltwins" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/servicebus" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example_resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleInstance, err := digitaltwins.NewInstance(ctx, "example", &digitaltwins.InstanceArgs{ Name: pulumi.String("example-DT"), ResourceGroupName: example.Name, Location: example.Location, }) if err != nil { return err } exampleNamespace, err := servicebus.NewNamespace(ctx, "example", &servicebus.NamespaceArgs{ Name: pulumi.String("exampleservicebusnamespace"), Location: example.Location, ResourceGroupName: example.Name, Sku: pulumi.String("Standard"), }) if err != nil { return err } exampleTopic, err := servicebus.NewTopic(ctx, "example", &servicebus.TopicArgs{ Name: pulumi.String("exampleservicebustopic"), NamespaceId: exampleNamespace.ID(), }) if err != nil { return err } exampleTopicAuthorizationRule, err := servicebus.NewTopicAuthorizationRule(ctx, "example", &servicebus.TopicAuthorizationRuleArgs{ Name: pulumi.String("example-rule"), TopicId: exampleTopic.ID(), Listen: pulumi.Bool(false), Send: pulumi.Bool(true), Manage: pulumi.Bool(false), }) if err != nil { return err } _, err = digitaltwins.NewEndpointServicebus(ctx, "example", &digitaltwins.EndpointServicebusArgs{ Name: pulumi.String("example-EndpointSB"), DigitalTwinsId: exampleInstance.ID(), ServicebusPrimaryConnectionString: exampleTopicAuthorizationRule.PrimaryConnectionString, ServicebusSecondaryConnectionString: exampleTopicAuthorizationRule.SecondaryConnectionString, }) if err != nil { return err } return nil }) }
```
## Import
Digital Twins Service Bus Endpoints can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:digitaltwins/endpointServicebus:EndpointServicebus example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DigitalTwins/digitalTwinsInstances/dt1/endpoints/ep1 ```
func GetEndpointServicebus ¶
func GetEndpointServicebus(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EndpointServicebusState, opts ...pulumi.ResourceOption) (*EndpointServicebus, error)
GetEndpointServicebus gets an existing EndpointServicebus resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewEndpointServicebus ¶
func NewEndpointServicebus(ctx *pulumi.Context, name string, args *EndpointServicebusArgs, opts ...pulumi.ResourceOption) (*EndpointServicebus, error)
NewEndpointServicebus registers a new resource with the given unique name, arguments, and options.
func (*EndpointServicebus) ElementType ¶
func (*EndpointServicebus) ElementType() reflect.Type
func (*EndpointServicebus) ToEndpointServicebusOutput ¶
func (i *EndpointServicebus) ToEndpointServicebusOutput() EndpointServicebusOutput
func (*EndpointServicebus) ToEndpointServicebusOutputWithContext ¶
func (i *EndpointServicebus) ToEndpointServicebusOutputWithContext(ctx context.Context) EndpointServicebusOutput
type EndpointServicebusArgs ¶
type EndpointServicebusArgs struct { // The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. DeadLetterStorageSecret pulumi.StringPtrInput // The ID of the Digital Twins Instance. Changing this forces a new Digital Twins Service Bus Endpoint to be created. DigitalTwinsId pulumi.StringInput // The name which should be used for this Digital Twins Service Bus Endpoint. Changing this forces a new Digital Twins Service Bus Endpoint to be created. Name pulumi.StringPtrInput // The primary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. . ServicebusPrimaryConnectionString pulumi.StringInput // The secondary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. ServicebusSecondaryConnectionString pulumi.StringInput }
The set of arguments for constructing a EndpointServicebus resource.
func (EndpointServicebusArgs) ElementType ¶
func (EndpointServicebusArgs) ElementType() reflect.Type
type EndpointServicebusArray ¶
type EndpointServicebusArray []EndpointServicebusInput
func (EndpointServicebusArray) ElementType ¶
func (EndpointServicebusArray) ElementType() reflect.Type
func (EndpointServicebusArray) ToEndpointServicebusArrayOutput ¶
func (i EndpointServicebusArray) ToEndpointServicebusArrayOutput() EndpointServicebusArrayOutput
func (EndpointServicebusArray) ToEndpointServicebusArrayOutputWithContext ¶
func (i EndpointServicebusArray) ToEndpointServicebusArrayOutputWithContext(ctx context.Context) EndpointServicebusArrayOutput
type EndpointServicebusArrayInput ¶
type EndpointServicebusArrayInput interface { pulumi.Input ToEndpointServicebusArrayOutput() EndpointServicebusArrayOutput ToEndpointServicebusArrayOutputWithContext(context.Context) EndpointServicebusArrayOutput }
EndpointServicebusArrayInput is an input type that accepts EndpointServicebusArray and EndpointServicebusArrayOutput values. You can construct a concrete instance of `EndpointServicebusArrayInput` via:
EndpointServicebusArray{ EndpointServicebusArgs{...} }
type EndpointServicebusArrayOutput ¶
type EndpointServicebusArrayOutput struct{ *pulumi.OutputState }
func (EndpointServicebusArrayOutput) ElementType ¶
func (EndpointServicebusArrayOutput) ElementType() reflect.Type
func (EndpointServicebusArrayOutput) Index ¶
func (o EndpointServicebusArrayOutput) Index(i pulumi.IntInput) EndpointServicebusOutput
func (EndpointServicebusArrayOutput) ToEndpointServicebusArrayOutput ¶
func (o EndpointServicebusArrayOutput) ToEndpointServicebusArrayOutput() EndpointServicebusArrayOutput
func (EndpointServicebusArrayOutput) ToEndpointServicebusArrayOutputWithContext ¶
func (o EndpointServicebusArrayOutput) ToEndpointServicebusArrayOutputWithContext(ctx context.Context) EndpointServicebusArrayOutput
type EndpointServicebusInput ¶
type EndpointServicebusInput interface { pulumi.Input ToEndpointServicebusOutput() EndpointServicebusOutput ToEndpointServicebusOutputWithContext(ctx context.Context) EndpointServicebusOutput }
type EndpointServicebusMap ¶
type EndpointServicebusMap map[string]EndpointServicebusInput
func (EndpointServicebusMap) ElementType ¶
func (EndpointServicebusMap) ElementType() reflect.Type
func (EndpointServicebusMap) ToEndpointServicebusMapOutput ¶
func (i EndpointServicebusMap) ToEndpointServicebusMapOutput() EndpointServicebusMapOutput
func (EndpointServicebusMap) ToEndpointServicebusMapOutputWithContext ¶
func (i EndpointServicebusMap) ToEndpointServicebusMapOutputWithContext(ctx context.Context) EndpointServicebusMapOutput
type EndpointServicebusMapInput ¶
type EndpointServicebusMapInput interface { pulumi.Input ToEndpointServicebusMapOutput() EndpointServicebusMapOutput ToEndpointServicebusMapOutputWithContext(context.Context) EndpointServicebusMapOutput }
EndpointServicebusMapInput is an input type that accepts EndpointServicebusMap and EndpointServicebusMapOutput values. You can construct a concrete instance of `EndpointServicebusMapInput` via:
EndpointServicebusMap{ "key": EndpointServicebusArgs{...} }
type EndpointServicebusMapOutput ¶
type EndpointServicebusMapOutput struct{ *pulumi.OutputState }
func (EndpointServicebusMapOutput) ElementType ¶
func (EndpointServicebusMapOutput) ElementType() reflect.Type
func (EndpointServicebusMapOutput) MapIndex ¶
func (o EndpointServicebusMapOutput) MapIndex(k pulumi.StringInput) EndpointServicebusOutput
func (EndpointServicebusMapOutput) ToEndpointServicebusMapOutput ¶
func (o EndpointServicebusMapOutput) ToEndpointServicebusMapOutput() EndpointServicebusMapOutput
func (EndpointServicebusMapOutput) ToEndpointServicebusMapOutputWithContext ¶
func (o EndpointServicebusMapOutput) ToEndpointServicebusMapOutputWithContext(ctx context.Context) EndpointServicebusMapOutput
type EndpointServicebusOutput ¶
type EndpointServicebusOutput struct{ *pulumi.OutputState }
func (EndpointServicebusOutput) DeadLetterStorageSecret ¶
func (o EndpointServicebusOutput) DeadLetterStorageSecret() pulumi.StringPtrOutput
The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account.
func (EndpointServicebusOutput) DigitalTwinsId ¶
func (o EndpointServicebusOutput) DigitalTwinsId() pulumi.StringOutput
The ID of the Digital Twins Instance. Changing this forces a new Digital Twins Service Bus Endpoint to be created.
func (EndpointServicebusOutput) ElementType ¶
func (EndpointServicebusOutput) ElementType() reflect.Type
func (EndpointServicebusOutput) Name ¶
func (o EndpointServicebusOutput) Name() pulumi.StringOutput
The name which should be used for this Digital Twins Service Bus Endpoint. Changing this forces a new Digital Twins Service Bus Endpoint to be created.
func (EndpointServicebusOutput) ServicebusPrimaryConnectionString ¶
func (o EndpointServicebusOutput) ServicebusPrimaryConnectionString() pulumi.StringOutput
The primary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. .
func (EndpointServicebusOutput) ServicebusSecondaryConnectionString ¶
func (o EndpointServicebusOutput) ServicebusSecondaryConnectionString() pulumi.StringOutput
The secondary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission.
func (EndpointServicebusOutput) ToEndpointServicebusOutput ¶
func (o EndpointServicebusOutput) ToEndpointServicebusOutput() EndpointServicebusOutput
func (EndpointServicebusOutput) ToEndpointServicebusOutputWithContext ¶
func (o EndpointServicebusOutput) ToEndpointServicebusOutputWithContext(ctx context.Context) EndpointServicebusOutput
type EndpointServicebusState ¶
type EndpointServicebusState struct { // The storage secret of the dead-lettering, whose format is `https://<storageAccountname>.blob.core.windows.net/<containerName>?<SASToken>`. When an endpoint can't deliver an event within a certain time period or after trying to deliver the event a certain number of times, it can send the undelivered event to a storage account. DeadLetterStorageSecret pulumi.StringPtrInput // The ID of the Digital Twins Instance. Changing this forces a new Digital Twins Service Bus Endpoint to be created. DigitalTwinsId pulumi.StringPtrInput // The name which should be used for this Digital Twins Service Bus Endpoint. Changing this forces a new Digital Twins Service Bus Endpoint to be created. Name pulumi.StringPtrInput // The primary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. . ServicebusPrimaryConnectionString pulumi.StringPtrInput // The secondary connection string of the Service Bus Topic Authorization Rule with a minimum of `send` permission. ServicebusSecondaryConnectionString pulumi.StringPtrInput }
func (EndpointServicebusState) ElementType ¶
func (EndpointServicebusState) ElementType() reflect.Type
type Instance ¶
type Instance struct { pulumi.CustomResourceState // The API endpoint to work with this Digital Twins instance. HostName pulumi.StringOutput `pulumi:"hostName"` // An `identity` block as defined below. Identity InstanceIdentityPtrOutput `pulumi:"identity"` // The Azure Region where the Digital Twins instance should exist. Changing this forces a new Digital Twins instance to be created. Location pulumi.StringOutput `pulumi:"location"` // The name which should be used for this Digital Twins instance. Changing this forces a new Digital Twins instance to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Digital Twins instance should exist. Changing this forces a new Digital Twins instance to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Digital Twins instance. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Digital Twins instance.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/digitaltwins" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example_resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = digitaltwins.NewInstance(ctx, "example", &digitaltwins.InstanceArgs{ Name: pulumi.String("example-DT"), ResourceGroupName: example.Name, Location: example.Location, Tags: pulumi.StringMap{ "foo": pulumi.String("bar"), }, }) if err != nil { return err } return nil }) }
```
## Import
Digital Twins instances can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:digitaltwins/instance:Instance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DigitalTwins/digitalTwinsInstances/dt1 ```
func GetInstance ¶
func GetInstance(ctx *pulumi.Context, name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)
GetInstance gets an existing Instance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewInstance ¶
func NewInstance(ctx *pulumi.Context, name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)
NewInstance registers a new resource with the given unique name, arguments, and options.
func (*Instance) ElementType ¶
func (*Instance) ToInstanceOutput ¶
func (i *Instance) ToInstanceOutput() InstanceOutput
func (*Instance) ToInstanceOutputWithContext ¶
func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
type InstanceArgs ¶
type InstanceArgs struct { // An `identity` block as defined below. Identity InstanceIdentityPtrInput // The Azure Region where the Digital Twins instance should exist. Changing this forces a new Digital Twins instance to be created. Location pulumi.StringPtrInput // The name which should be used for this Digital Twins instance. Changing this forces a new Digital Twins instance to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Digital Twins instance should exist. Changing this forces a new Digital Twins instance to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Digital Twins instance. Tags pulumi.StringMapInput }
The set of arguments for constructing a Instance resource.
func (InstanceArgs) ElementType ¶
func (InstanceArgs) ElementType() reflect.Type
type InstanceArray ¶
type InstanceArray []InstanceInput
func (InstanceArray) ElementType ¶
func (InstanceArray) ElementType() reflect.Type
func (InstanceArray) ToInstanceArrayOutput ¶
func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArray) ToInstanceArrayOutputWithContext ¶
func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceArrayInput ¶
type InstanceArrayInput interface { pulumi.Input ToInstanceArrayOutput() InstanceArrayOutput ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput }
InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:
InstanceArray{ InstanceArgs{...} }
type InstanceArrayOutput ¶
type InstanceArrayOutput struct{ *pulumi.OutputState }
func (InstanceArrayOutput) ElementType ¶
func (InstanceArrayOutput) ElementType() reflect.Type
func (InstanceArrayOutput) Index ¶
func (o InstanceArrayOutput) Index(i pulumi.IntInput) InstanceOutput
func (InstanceArrayOutput) ToInstanceArrayOutput ¶
func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArrayOutput) ToInstanceArrayOutputWithContext ¶
func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceIdentity ¶
type InstanceIdentity struct { // A list of User Assigned Managed Identity IDs to be assigned to this Digital Twins instance. // // > **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`. IdentityIds []string `pulumi:"identityIds"` // The Principal ID associated with this Managed Service Identity. PrincipalId *string `pulumi:"principalId"` // The Tenant ID associated with this Managed Service Identity. TenantId *string `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on this Digital Twins instance. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both). Type string `pulumi:"type"` }
type InstanceIdentityArgs ¶
type InstanceIdentityArgs struct { // A list of User Assigned Managed Identity IDs to be assigned to this Digital Twins instance. // // > **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`. IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"` // The Principal ID associated with this Managed Service Identity. PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` // The Tenant ID associated with this Managed Service Identity. TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on this Digital Twins instance. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both). Type pulumi.StringInput `pulumi:"type"` }
func (InstanceIdentityArgs) ElementType ¶
func (InstanceIdentityArgs) ElementType() reflect.Type
func (InstanceIdentityArgs) ToInstanceIdentityOutput ¶
func (i InstanceIdentityArgs) ToInstanceIdentityOutput() InstanceIdentityOutput
func (InstanceIdentityArgs) ToInstanceIdentityOutputWithContext ¶
func (i InstanceIdentityArgs) ToInstanceIdentityOutputWithContext(ctx context.Context) InstanceIdentityOutput
func (InstanceIdentityArgs) ToInstanceIdentityPtrOutput ¶
func (i InstanceIdentityArgs) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput
func (InstanceIdentityArgs) ToInstanceIdentityPtrOutputWithContext ¶
func (i InstanceIdentityArgs) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput
type InstanceIdentityInput ¶
type InstanceIdentityInput interface { pulumi.Input ToInstanceIdentityOutput() InstanceIdentityOutput ToInstanceIdentityOutputWithContext(context.Context) InstanceIdentityOutput }
InstanceIdentityInput is an input type that accepts InstanceIdentityArgs and InstanceIdentityOutput values. You can construct a concrete instance of `InstanceIdentityInput` via:
InstanceIdentityArgs{...}
type InstanceIdentityOutput ¶
type InstanceIdentityOutput struct{ *pulumi.OutputState }
func (InstanceIdentityOutput) ElementType ¶
func (InstanceIdentityOutput) ElementType() reflect.Type
func (InstanceIdentityOutput) IdentityIds ¶
func (o InstanceIdentityOutput) IdentityIds() pulumi.StringArrayOutput
A list of User Assigned Managed Identity IDs to be assigned to this Digital Twins instance.
> **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
func (InstanceIdentityOutput) PrincipalId ¶
func (o InstanceIdentityOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID associated with this Managed Service Identity.
func (InstanceIdentityOutput) TenantId ¶
func (o InstanceIdentityOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID associated with this Managed Service Identity.
func (InstanceIdentityOutput) ToInstanceIdentityOutput ¶
func (o InstanceIdentityOutput) ToInstanceIdentityOutput() InstanceIdentityOutput
func (InstanceIdentityOutput) ToInstanceIdentityOutputWithContext ¶
func (o InstanceIdentityOutput) ToInstanceIdentityOutputWithContext(ctx context.Context) InstanceIdentityOutput
func (InstanceIdentityOutput) ToInstanceIdentityPtrOutput ¶
func (o InstanceIdentityOutput) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput
func (InstanceIdentityOutput) ToInstanceIdentityPtrOutputWithContext ¶
func (o InstanceIdentityOutput) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput
func (InstanceIdentityOutput) Type ¶
func (o InstanceIdentityOutput) Type() pulumi.StringOutput
Specifies the type of Managed Service Identity that should be configured on this Digital Twins instance. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).
type InstanceIdentityPtrInput ¶
type InstanceIdentityPtrInput interface { pulumi.Input ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput ToInstanceIdentityPtrOutputWithContext(context.Context) InstanceIdentityPtrOutput }
InstanceIdentityPtrInput is an input type that accepts InstanceIdentityArgs, InstanceIdentityPtr and InstanceIdentityPtrOutput values. You can construct a concrete instance of `InstanceIdentityPtrInput` via:
InstanceIdentityArgs{...} or: nil
func InstanceIdentityPtr ¶
func InstanceIdentityPtr(v *InstanceIdentityArgs) InstanceIdentityPtrInput
type InstanceIdentityPtrOutput ¶
type InstanceIdentityPtrOutput struct{ *pulumi.OutputState }
func (InstanceIdentityPtrOutput) Elem ¶
func (o InstanceIdentityPtrOutput) Elem() InstanceIdentityOutput
func (InstanceIdentityPtrOutput) ElementType ¶
func (InstanceIdentityPtrOutput) ElementType() reflect.Type
func (InstanceIdentityPtrOutput) IdentityIds ¶
func (o InstanceIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
A list of User Assigned Managed Identity IDs to be assigned to this Digital Twins instance.
> **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
func (InstanceIdentityPtrOutput) PrincipalId ¶
func (o InstanceIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID associated with this Managed Service Identity.
func (InstanceIdentityPtrOutput) TenantId ¶
func (o InstanceIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID associated with this Managed Service Identity.
func (InstanceIdentityPtrOutput) ToInstanceIdentityPtrOutput ¶
func (o InstanceIdentityPtrOutput) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput
func (InstanceIdentityPtrOutput) ToInstanceIdentityPtrOutputWithContext ¶
func (o InstanceIdentityPtrOutput) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput
func (InstanceIdentityPtrOutput) Type ¶
func (o InstanceIdentityPtrOutput) Type() pulumi.StringPtrOutput
Specifies the type of Managed Service Identity that should be configured on this Digital Twins instance. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).
type InstanceInput ¶
type InstanceInput interface { pulumi.Input ToInstanceOutput() InstanceOutput ToInstanceOutputWithContext(ctx context.Context) InstanceOutput }
type InstanceMap ¶
type InstanceMap map[string]InstanceInput
func (InstanceMap) ElementType ¶
func (InstanceMap) ElementType() reflect.Type
func (InstanceMap) ToInstanceMapOutput ¶
func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMap) ToInstanceMapOutputWithContext ¶
func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceMapInput ¶
type InstanceMapInput interface { pulumi.Input ToInstanceMapOutput() InstanceMapOutput ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput }
InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:
InstanceMap{ "key": InstanceArgs{...} }
type InstanceMapOutput ¶
type InstanceMapOutput struct{ *pulumi.OutputState }
func (InstanceMapOutput) ElementType ¶
func (InstanceMapOutput) ElementType() reflect.Type
func (InstanceMapOutput) MapIndex ¶
func (o InstanceMapOutput) MapIndex(k pulumi.StringInput) InstanceOutput
func (InstanceMapOutput) ToInstanceMapOutput ¶
func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput
func (InstanceMapOutput) ToInstanceMapOutputWithContext ¶
func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput
type InstanceOutput ¶
type InstanceOutput struct{ *pulumi.OutputState }
func (InstanceOutput) ElementType ¶
func (InstanceOutput) ElementType() reflect.Type
func (InstanceOutput) HostName ¶
func (o InstanceOutput) HostName() pulumi.StringOutput
The API endpoint to work with this Digital Twins instance.
func (InstanceOutput) Identity ¶
func (o InstanceOutput) Identity() InstanceIdentityPtrOutput
An `identity` block as defined below.
func (InstanceOutput) Location ¶
func (o InstanceOutput) Location() pulumi.StringOutput
The Azure Region where the Digital Twins instance should exist. Changing this forces a new Digital Twins instance to be created.
func (InstanceOutput) Name ¶
func (o InstanceOutput) Name() pulumi.StringOutput
The name which should be used for this Digital Twins instance. Changing this forces a new Digital Twins instance to be created.
func (InstanceOutput) ResourceGroupName ¶
func (o InstanceOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Digital Twins instance should exist. Changing this forces a new Digital Twins instance to be created.
func (InstanceOutput) Tags ¶
func (o InstanceOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Digital Twins instance.
func (InstanceOutput) ToInstanceOutput ¶
func (o InstanceOutput) ToInstanceOutput() InstanceOutput
func (InstanceOutput) ToInstanceOutputWithContext ¶
func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
type InstanceState ¶
type InstanceState struct { // The API endpoint to work with this Digital Twins instance. HostName pulumi.StringPtrInput // An `identity` block as defined below. Identity InstanceIdentityPtrInput // The Azure Region where the Digital Twins instance should exist. Changing this forces a new Digital Twins instance to be created. Location pulumi.StringPtrInput // The name which should be used for this Digital Twins instance. Changing this forces a new Digital Twins instance to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Digital Twins instance should exist. Changing this forces a new Digital Twins instance to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Digital Twins instance. Tags pulumi.StringMapInput }
func (InstanceState) ElementType ¶
func (InstanceState) ElementType() reflect.Type
type LookupInstanceArgs ¶
type LookupInstanceArgs struct { // The name of this Digital Twins instance. Name string `pulumi:"name"` // The name of the Resource Group where the Digital Twins instance exists. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getInstance.
type LookupInstanceOutputArgs ¶
type LookupInstanceOutputArgs struct { // The name of this Digital Twins instance. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Digital Twins instance exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getInstance.
func (LookupInstanceOutputArgs) ElementType ¶
func (LookupInstanceOutputArgs) ElementType() reflect.Type
type LookupInstanceResult ¶
type LookupInstanceResult struct { // The API endpoint to work with this Digital Twins instance. HostName string `pulumi:"hostName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure Region where the Digital Twins instance exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the Digital Twins instance. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getInstance.
func LookupInstance ¶
func LookupInstance(ctx *pulumi.Context, args *LookupInstanceArgs, opts ...pulumi.InvokeOption) (*LookupInstanceResult, error)
Use this data source to access information about an existing Digital Twins instance.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/digitaltwins" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := digitaltwins.LookupInstance(ctx, &digitaltwins.LookupInstanceArgs{ Name: "existing-digital-twins", ResourceGroupName: "existing-resgroup", }, nil) if err != nil { return err } ctx.Export("id", example.Id) return nil }) }
```
type LookupInstanceResultOutput ¶
type LookupInstanceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getInstance.
func LookupInstanceOutput ¶
func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput
func (LookupInstanceResultOutput) ElementType ¶
func (LookupInstanceResultOutput) ElementType() reflect.Type
func (LookupInstanceResultOutput) HostName ¶
func (o LookupInstanceResultOutput) HostName() pulumi.StringOutput
The API endpoint to work with this Digital Twins instance.
func (LookupInstanceResultOutput) Id ¶
func (o LookupInstanceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupInstanceResultOutput) Location ¶
func (o LookupInstanceResultOutput) Location() pulumi.StringOutput
The Azure Region where the Digital Twins instance exists.
func (LookupInstanceResultOutput) Name ¶
func (o LookupInstanceResultOutput) Name() pulumi.StringOutput
func (LookupInstanceResultOutput) ResourceGroupName ¶
func (o LookupInstanceResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupInstanceResultOutput) Tags ¶
func (o LookupInstanceResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the Digital Twins instance.
func (LookupInstanceResultOutput) ToLookupInstanceResultOutput ¶
func (o LookupInstanceResultOutput) ToLookupInstanceResultOutput() LookupInstanceResultOutput
func (LookupInstanceResultOutput) ToLookupInstanceResultOutputWithContext ¶
func (o LookupInstanceResultOutput) ToLookupInstanceResultOutputWithContext(ctx context.Context) LookupInstanceResultOutput
type TimeSeriesDatabaseConnection ¶
type TimeSeriesDatabaseConnection struct { pulumi.CustomResourceState // The ID of the Digital Twins. Changing this forces a new resource to be created. DigitalTwinsId pulumi.StringOutput `pulumi:"digitalTwinsId"` // Name of the Event Hub Consumer Group. Changing this forces a new resource to be created. Defaults to `$Default`. EventhubConsumerGroupName pulumi.StringPtrOutput `pulumi:"eventhubConsumerGroupName"` // Name of the Event Hub. Changing this forces a new resource to be created. EventhubName pulumi.StringOutput `pulumi:"eventhubName"` // URI of the Event Hub Namespace. Changing this forces a new resource to be created. EventhubNamespaceEndpointUri pulumi.StringOutput `pulumi:"eventhubNamespaceEndpointUri"` // The ID of the Event Hub Namespace. Changing this forces a new resource to be created. EventhubNamespaceId pulumi.StringOutput `pulumi:"eventhubNamespaceId"` // The ID of the Kusto Cluster. Changing this forces a new resource to be created. KustoClusterId pulumi.StringOutput `pulumi:"kustoClusterId"` // URI of the Kusto Cluster. Changing this forces a new resource to be created. KustoClusterUri pulumi.StringOutput `pulumi:"kustoClusterUri"` // Name of the Kusto Database. Changing this forces a new resource to be created. KustoDatabaseName pulumi.StringOutput `pulumi:"kustoDatabaseName"` // Name of the Kusto Table. Defaults to `AdtPropertyEvents`. Changing this forces a new resource to be created. KustoTableName pulumi.StringPtrOutput `pulumi:"kustoTableName"` // The name which should be used for this Digital Twins Time Series Database Connection. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` }
Manages a Digital Twins Time Series Database Connection.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/digitaltwins" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventhub" "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/kusto" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleInstance, err := digitaltwins.NewInstance(ctx, "example", &digitaltwins.InstanceArgs{ Name: pulumi.String("example-DT"), ResourceGroupName: example.Name, Location: example.Location, Identity: &digitaltwins.InstanceIdentityArgs{ Type: pulumi.String("SystemAssigned"), }, }) if err != nil { return err } exampleEventHubNamespace, err := eventhub.NewEventHubNamespace(ctx, "example", &eventhub.EventHubNamespaceArgs{ Name: pulumi.String("exampleEventHubNamespace"), Location: example.Location, ResourceGroupName: example.Name, Sku: pulumi.String("Standard"), }) if err != nil { return err } exampleEventHub, err := eventhub.NewEventHub(ctx, "example", &eventhub.EventHubArgs{ Name: pulumi.String("exampleEventHub"), NamespaceName: exampleEventHubNamespace.Name, ResourceGroupName: example.Name, PartitionCount: pulumi.Int(2), MessageRetention: pulumi.Int(7), }) if err != nil { return err } exampleConsumerGroup, err := eventhub.NewConsumerGroup(ctx, "example", &eventhub.ConsumerGroupArgs{ Name: pulumi.String("example-consumergroup"), NamespaceName: exampleEventHubNamespace.Name, EventhubName: exampleEventHub.Name, ResourceGroupName: example.Name, }) if err != nil { return err } exampleCluster, err := kusto.NewCluster(ctx, "example", &kusto.ClusterArgs{ Name: pulumi.String("examplekc"), Location: example.Location, ResourceGroupName: example.Name, Sku: &kusto.ClusterSkuArgs{ Name: pulumi.String("Dev(No SLA)_Standard_D11_v2"), Capacity: pulumi.Int(1), }, }) if err != nil { return err } exampleDatabase, err := kusto.NewDatabase(ctx, "example", &kusto.DatabaseArgs{ Name: pulumi.String("example-kusto-database"), ResourceGroupName: example.Name, Location: example.Location, ClusterName: exampleCluster.Name, }) if err != nil { return err } databaseContributor, err := authorization.NewAssignment(ctx, "database_contributor", &authorization.AssignmentArgs{ Scope: exampleDatabase.ID(), PrincipalId: pulumi.String(exampleInstance.Identity.ApplyT(func(identity digitaltwins.InstanceIdentity) (*string, error) { return &identity.PrincipalId, nil }).(pulumi.StringPtrOutput)), RoleDefinitionName: pulumi.String("Contributor"), }) if err != nil { return err } eventhubDataOwner, err := authorization.NewAssignment(ctx, "eventhub_data_owner", &authorization.AssignmentArgs{ Scope: exampleEventHub.ID(), PrincipalId: pulumi.String(exampleInstance.Identity.ApplyT(func(identity digitaltwins.InstanceIdentity) (*string, error) { return &identity.PrincipalId, nil }).(pulumi.StringPtrOutput)), RoleDefinitionName: pulumi.String("Azure Event Hubs Data Owner"), }) if err != nil { return err } exampleDatabasePrincipalAssignment, err := kusto.NewDatabasePrincipalAssignment(ctx, "example", &kusto.DatabasePrincipalAssignmentArgs{ Name: pulumi.String("dataadmin"), ResourceGroupName: example.Name, ClusterName: exampleCluster.Name, DatabaseName: exampleDatabase.Name, TenantId: pulumi.String(exampleInstance.Identity.ApplyT(func(identity digitaltwins.InstanceIdentity) (*string, error) { return &identity.TenantId, nil }).(pulumi.StringPtrOutput)), PrincipalId: pulumi.String(exampleInstance.Identity.ApplyT(func(identity digitaltwins.InstanceIdentity) (*string, error) { return &identity.PrincipalId, nil }).(pulumi.StringPtrOutput)), PrincipalType: pulumi.String("App"), Role: pulumi.String("Admin"), }) if err != nil { return err } _, err = digitaltwins.NewTimeSeriesDatabaseConnection(ctx, "example", &digitaltwins.TimeSeriesDatabaseConnectionArgs{ Name: pulumi.String("example-connection"), DigitalTwinsId: exampleInstance.ID(), EventhubName: exampleEventHub.Name, EventhubNamespaceId: exampleEventHubNamespace.ID(), EventhubNamespaceEndpointUri: exampleEventHubNamespace.Name.ApplyT(func(name string) (string, error) { return fmt.Sprintf("sb://%v.servicebus.windows.net", name), nil }).(pulumi.StringOutput), EventhubConsumerGroupName: exampleConsumerGroup.Name, KustoClusterId: exampleCluster.ID(), KustoClusterUri: exampleCluster.Uri, KustoDatabaseName: exampleDatabase.Name, KustoTableName: pulumi.String("exampleTable"), }, pulumi.DependsOn([]pulumi.Resource{ databaseContributor, eventhubDataOwner, exampleDatabasePrincipalAssignment, })) if err != nil { return err } return nil }) }
```
## Import
Digital Twins Time Series Database Connections can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:digitaltwins/timeSeriesDatabaseConnection:TimeSeriesDatabaseConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DigitalTwins/digitalTwinsInstances/dt1/timeSeriesDatabaseConnections/connection1 ```
func GetTimeSeriesDatabaseConnection ¶
func GetTimeSeriesDatabaseConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TimeSeriesDatabaseConnectionState, opts ...pulumi.ResourceOption) (*TimeSeriesDatabaseConnection, error)
GetTimeSeriesDatabaseConnection gets an existing TimeSeriesDatabaseConnection resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewTimeSeriesDatabaseConnection ¶
func NewTimeSeriesDatabaseConnection(ctx *pulumi.Context, name string, args *TimeSeriesDatabaseConnectionArgs, opts ...pulumi.ResourceOption) (*TimeSeriesDatabaseConnection, error)
NewTimeSeriesDatabaseConnection registers a new resource with the given unique name, arguments, and options.
func (*TimeSeriesDatabaseConnection) ElementType ¶
func (*TimeSeriesDatabaseConnection) ElementType() reflect.Type
func (*TimeSeriesDatabaseConnection) ToTimeSeriesDatabaseConnectionOutput ¶
func (i *TimeSeriesDatabaseConnection) ToTimeSeriesDatabaseConnectionOutput() TimeSeriesDatabaseConnectionOutput
func (*TimeSeriesDatabaseConnection) ToTimeSeriesDatabaseConnectionOutputWithContext ¶
func (i *TimeSeriesDatabaseConnection) ToTimeSeriesDatabaseConnectionOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionOutput
type TimeSeriesDatabaseConnectionArgs ¶
type TimeSeriesDatabaseConnectionArgs struct { // The ID of the Digital Twins. Changing this forces a new resource to be created. DigitalTwinsId pulumi.StringInput // Name of the Event Hub Consumer Group. Changing this forces a new resource to be created. Defaults to `$Default`. EventhubConsumerGroupName pulumi.StringPtrInput // Name of the Event Hub. Changing this forces a new resource to be created. EventhubName pulumi.StringInput // URI of the Event Hub Namespace. Changing this forces a new resource to be created. EventhubNamespaceEndpointUri pulumi.StringInput // The ID of the Event Hub Namespace. Changing this forces a new resource to be created. EventhubNamespaceId pulumi.StringInput // The ID of the Kusto Cluster. Changing this forces a new resource to be created. KustoClusterId pulumi.StringInput // URI of the Kusto Cluster. Changing this forces a new resource to be created. KustoClusterUri pulumi.StringInput // Name of the Kusto Database. Changing this forces a new resource to be created. KustoDatabaseName pulumi.StringInput // Name of the Kusto Table. Defaults to `AdtPropertyEvents`. Changing this forces a new resource to be created. KustoTableName pulumi.StringPtrInput // The name which should be used for this Digital Twins Time Series Database Connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput }
The set of arguments for constructing a TimeSeriesDatabaseConnection resource.
func (TimeSeriesDatabaseConnectionArgs) ElementType ¶
func (TimeSeriesDatabaseConnectionArgs) ElementType() reflect.Type
type TimeSeriesDatabaseConnectionArray ¶
type TimeSeriesDatabaseConnectionArray []TimeSeriesDatabaseConnectionInput
func (TimeSeriesDatabaseConnectionArray) ElementType ¶
func (TimeSeriesDatabaseConnectionArray) ElementType() reflect.Type
func (TimeSeriesDatabaseConnectionArray) ToTimeSeriesDatabaseConnectionArrayOutput ¶
func (i TimeSeriesDatabaseConnectionArray) ToTimeSeriesDatabaseConnectionArrayOutput() TimeSeriesDatabaseConnectionArrayOutput
func (TimeSeriesDatabaseConnectionArray) ToTimeSeriesDatabaseConnectionArrayOutputWithContext ¶
func (i TimeSeriesDatabaseConnectionArray) ToTimeSeriesDatabaseConnectionArrayOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionArrayOutput
type TimeSeriesDatabaseConnectionArrayInput ¶
type TimeSeriesDatabaseConnectionArrayInput interface { pulumi.Input ToTimeSeriesDatabaseConnectionArrayOutput() TimeSeriesDatabaseConnectionArrayOutput ToTimeSeriesDatabaseConnectionArrayOutputWithContext(context.Context) TimeSeriesDatabaseConnectionArrayOutput }
TimeSeriesDatabaseConnectionArrayInput is an input type that accepts TimeSeriesDatabaseConnectionArray and TimeSeriesDatabaseConnectionArrayOutput values. You can construct a concrete instance of `TimeSeriesDatabaseConnectionArrayInput` via:
TimeSeriesDatabaseConnectionArray{ TimeSeriesDatabaseConnectionArgs{...} }
type TimeSeriesDatabaseConnectionArrayOutput ¶
type TimeSeriesDatabaseConnectionArrayOutput struct{ *pulumi.OutputState }
func (TimeSeriesDatabaseConnectionArrayOutput) ElementType ¶
func (TimeSeriesDatabaseConnectionArrayOutput) ElementType() reflect.Type
func (TimeSeriesDatabaseConnectionArrayOutput) ToTimeSeriesDatabaseConnectionArrayOutput ¶
func (o TimeSeriesDatabaseConnectionArrayOutput) ToTimeSeriesDatabaseConnectionArrayOutput() TimeSeriesDatabaseConnectionArrayOutput
func (TimeSeriesDatabaseConnectionArrayOutput) ToTimeSeriesDatabaseConnectionArrayOutputWithContext ¶
func (o TimeSeriesDatabaseConnectionArrayOutput) ToTimeSeriesDatabaseConnectionArrayOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionArrayOutput
type TimeSeriesDatabaseConnectionInput ¶
type TimeSeriesDatabaseConnectionInput interface { pulumi.Input ToTimeSeriesDatabaseConnectionOutput() TimeSeriesDatabaseConnectionOutput ToTimeSeriesDatabaseConnectionOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionOutput }
type TimeSeriesDatabaseConnectionMap ¶
type TimeSeriesDatabaseConnectionMap map[string]TimeSeriesDatabaseConnectionInput
func (TimeSeriesDatabaseConnectionMap) ElementType ¶
func (TimeSeriesDatabaseConnectionMap) ElementType() reflect.Type
func (TimeSeriesDatabaseConnectionMap) ToTimeSeriesDatabaseConnectionMapOutput ¶
func (i TimeSeriesDatabaseConnectionMap) ToTimeSeriesDatabaseConnectionMapOutput() TimeSeriesDatabaseConnectionMapOutput
func (TimeSeriesDatabaseConnectionMap) ToTimeSeriesDatabaseConnectionMapOutputWithContext ¶
func (i TimeSeriesDatabaseConnectionMap) ToTimeSeriesDatabaseConnectionMapOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionMapOutput
type TimeSeriesDatabaseConnectionMapInput ¶
type TimeSeriesDatabaseConnectionMapInput interface { pulumi.Input ToTimeSeriesDatabaseConnectionMapOutput() TimeSeriesDatabaseConnectionMapOutput ToTimeSeriesDatabaseConnectionMapOutputWithContext(context.Context) TimeSeriesDatabaseConnectionMapOutput }
TimeSeriesDatabaseConnectionMapInput is an input type that accepts TimeSeriesDatabaseConnectionMap and TimeSeriesDatabaseConnectionMapOutput values. You can construct a concrete instance of `TimeSeriesDatabaseConnectionMapInput` via:
TimeSeriesDatabaseConnectionMap{ "key": TimeSeriesDatabaseConnectionArgs{...} }
type TimeSeriesDatabaseConnectionMapOutput ¶
type TimeSeriesDatabaseConnectionMapOutput struct{ *pulumi.OutputState }
func (TimeSeriesDatabaseConnectionMapOutput) ElementType ¶
func (TimeSeriesDatabaseConnectionMapOutput) ElementType() reflect.Type
func (TimeSeriesDatabaseConnectionMapOutput) MapIndex ¶
func (o TimeSeriesDatabaseConnectionMapOutput) MapIndex(k pulumi.StringInput) TimeSeriesDatabaseConnectionOutput
func (TimeSeriesDatabaseConnectionMapOutput) ToTimeSeriesDatabaseConnectionMapOutput ¶
func (o TimeSeriesDatabaseConnectionMapOutput) ToTimeSeriesDatabaseConnectionMapOutput() TimeSeriesDatabaseConnectionMapOutput
func (TimeSeriesDatabaseConnectionMapOutput) ToTimeSeriesDatabaseConnectionMapOutputWithContext ¶
func (o TimeSeriesDatabaseConnectionMapOutput) ToTimeSeriesDatabaseConnectionMapOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionMapOutput
type TimeSeriesDatabaseConnectionOutput ¶
type TimeSeriesDatabaseConnectionOutput struct{ *pulumi.OutputState }
func (TimeSeriesDatabaseConnectionOutput) DigitalTwinsId ¶
func (o TimeSeriesDatabaseConnectionOutput) DigitalTwinsId() pulumi.StringOutput
The ID of the Digital Twins. Changing this forces a new resource to be created.
func (TimeSeriesDatabaseConnectionOutput) ElementType ¶
func (TimeSeriesDatabaseConnectionOutput) ElementType() reflect.Type
func (TimeSeriesDatabaseConnectionOutput) EventhubConsumerGroupName ¶
func (o TimeSeriesDatabaseConnectionOutput) EventhubConsumerGroupName() pulumi.StringPtrOutput
Name of the Event Hub Consumer Group. Changing this forces a new resource to be created. Defaults to `$Default`.
func (TimeSeriesDatabaseConnectionOutput) EventhubName ¶
func (o TimeSeriesDatabaseConnectionOutput) EventhubName() pulumi.StringOutput
Name of the Event Hub. Changing this forces a new resource to be created.
func (TimeSeriesDatabaseConnectionOutput) EventhubNamespaceEndpointUri ¶
func (o TimeSeriesDatabaseConnectionOutput) EventhubNamespaceEndpointUri() pulumi.StringOutput
URI of the Event Hub Namespace. Changing this forces a new resource to be created.
func (TimeSeriesDatabaseConnectionOutput) EventhubNamespaceId ¶
func (o TimeSeriesDatabaseConnectionOutput) EventhubNamespaceId() pulumi.StringOutput
The ID of the Event Hub Namespace. Changing this forces a new resource to be created.
func (TimeSeriesDatabaseConnectionOutput) KustoClusterId ¶
func (o TimeSeriesDatabaseConnectionOutput) KustoClusterId() pulumi.StringOutput
The ID of the Kusto Cluster. Changing this forces a new resource to be created.
func (TimeSeriesDatabaseConnectionOutput) KustoClusterUri ¶
func (o TimeSeriesDatabaseConnectionOutput) KustoClusterUri() pulumi.StringOutput
URI of the Kusto Cluster. Changing this forces a new resource to be created.
func (TimeSeriesDatabaseConnectionOutput) KustoDatabaseName ¶
func (o TimeSeriesDatabaseConnectionOutput) KustoDatabaseName() pulumi.StringOutput
Name of the Kusto Database. Changing this forces a new resource to be created.
func (TimeSeriesDatabaseConnectionOutput) KustoTableName ¶
func (o TimeSeriesDatabaseConnectionOutput) KustoTableName() pulumi.StringPtrOutput
Name of the Kusto Table. Defaults to `AdtPropertyEvents`. Changing this forces a new resource to be created.
func (TimeSeriesDatabaseConnectionOutput) Name ¶
func (o TimeSeriesDatabaseConnectionOutput) Name() pulumi.StringOutput
The name which should be used for this Digital Twins Time Series Database Connection. Changing this forces a new resource to be created.
func (TimeSeriesDatabaseConnectionOutput) ToTimeSeriesDatabaseConnectionOutput ¶
func (o TimeSeriesDatabaseConnectionOutput) ToTimeSeriesDatabaseConnectionOutput() TimeSeriesDatabaseConnectionOutput
func (TimeSeriesDatabaseConnectionOutput) ToTimeSeriesDatabaseConnectionOutputWithContext ¶
func (o TimeSeriesDatabaseConnectionOutput) ToTimeSeriesDatabaseConnectionOutputWithContext(ctx context.Context) TimeSeriesDatabaseConnectionOutput
type TimeSeriesDatabaseConnectionState ¶
type TimeSeriesDatabaseConnectionState struct { // The ID of the Digital Twins. Changing this forces a new resource to be created. DigitalTwinsId pulumi.StringPtrInput // Name of the Event Hub Consumer Group. Changing this forces a new resource to be created. Defaults to `$Default`. EventhubConsumerGroupName pulumi.StringPtrInput // Name of the Event Hub. Changing this forces a new resource to be created. EventhubName pulumi.StringPtrInput // URI of the Event Hub Namespace. Changing this forces a new resource to be created. EventhubNamespaceEndpointUri pulumi.StringPtrInput // The ID of the Event Hub Namespace. Changing this forces a new resource to be created. EventhubNamespaceId pulumi.StringPtrInput // The ID of the Kusto Cluster. Changing this forces a new resource to be created. KustoClusterId pulumi.StringPtrInput // URI of the Kusto Cluster. Changing this forces a new resource to be created. KustoClusterUri pulumi.StringPtrInput // Name of the Kusto Database. Changing this forces a new resource to be created. KustoDatabaseName pulumi.StringPtrInput // Name of the Kusto Table. Defaults to `AdtPropertyEvents`. Changing this forces a new resource to be created. KustoTableName pulumi.StringPtrInput // The name which should be used for this Digital Twins Time Series Database Connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput }
func (TimeSeriesDatabaseConnectionState) ElementType ¶
func (TimeSeriesDatabaseConnectionState) ElementType() reflect.Type