This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getTopic.go
46 lines (41 loc) · 1.66 KB
/
getTopic.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20190201preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupTopic(ctx *pulumi.Context, args *LookupTopicArgs, opts ...pulumi.InvokeOption) (*LookupTopicResult, error) {
var rv LookupTopicResult
err := ctx.Invoke("azure-nextgen:eventgrid/v20190201preview:getTopic", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupTopicArgs struct {
// The name of the resource group within the user's subscription.
ResourceGroupName string `pulumi:"resourceGroupName"`
// Name of the topic
TopicName string `pulumi:"topicName"`
}
// EventGrid Topic
type LookupTopicResult struct {
// Endpoint for the topic.
Endpoint string `pulumi:"endpoint"`
// Fully qualified identifier of the resource
Id string `pulumi:"id"`
// This determines the format that Event Grid should expect for incoming events published to the topic.
InputSchema *string `pulumi:"inputSchema"`
// This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
InputSchemaMapping *JsonInputSchemaMappingResponse `pulumi:"inputSchemaMapping"`
// Location of the resource
Location string `pulumi:"location"`
// Name of the resource
Name string `pulumi:"name"`
// Provisioning state of the topic.
ProvisioningState string `pulumi:"provisioningState"`
// Tags of the resource
Tags map[string]string `pulumi:"tags"`
// Type of the resource
Type string `pulumi:"type"`
}