forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getPartnerTopic.go
189 lines (160 loc) · 8.41 KB
/
getPartnerTopic.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package eventgrid
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure-native-sdk/v2/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Get properties of a partner topic.
// Azure REST API version: 2022-06-15.
//
// Other available API versions: 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview.
func LookupPartnerTopic(ctx *pulumi.Context, args *LookupPartnerTopicArgs, opts ...pulumi.InvokeOption) (*LookupPartnerTopicResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv LookupPartnerTopicResult
err := ctx.Invoke("azure-native:eventgrid:getPartnerTopic", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupPartnerTopicArgs struct {
// Name of the partner topic.
PartnerTopicName string `pulumi:"partnerTopicName"`
// The name of the resource group within the user's subscription.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Event Grid Partner Topic.
type LookupPartnerTopicResult struct {
// Activation state of the partner topic.
ActivationState *string `pulumi:"activationState"`
// Event Type information from the corresponding event channel.
EventTypeInfo *EventTypeInfoResponse `pulumi:"eventTypeInfo"`
// Expiration time of the partner topic. If this timer expires while the partner topic is still never activated,
// the partner topic and corresponding event channel are deleted.
ExpirationTimeIfNotActivatedUtc *string `pulumi:"expirationTimeIfNotActivatedUtc"`
// Fully qualified identifier of the resource.
Id string `pulumi:"id"`
// Identity information for the Partner Topic resource.
Identity *IdentityInfoResponse `pulumi:"identity"`
// Location of the resource.
Location string `pulumi:"location"`
// Context or helpful message that can be used during the approval process by the subscriber.
MessageForActivation *string `pulumi:"messageForActivation"`
// Name of the resource.
Name string `pulumi:"name"`
// The immutableId of the corresponding partner registration.
PartnerRegistrationImmutableId *string `pulumi:"partnerRegistrationImmutableId"`
// Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic.
// This will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer.
PartnerTopicFriendlyDescription *string `pulumi:"partnerTopicFriendlyDescription"`
// Provisioning state of the partner topic.
ProvisioningState string `pulumi:"provisioningState"`
// Source associated with this partner topic. This represents a unique partner resource.
Source *string `pulumi:"source"`
// The system metadata relating to Partner Topic resource.
SystemData SystemDataResponse `pulumi:"systemData"`
// Tags of the resource.
Tags map[string]string `pulumi:"tags"`
// Type of the resource.
Type string `pulumi:"type"`
}
func LookupPartnerTopicOutput(ctx *pulumi.Context, args LookupPartnerTopicOutputArgs, opts ...pulumi.InvokeOption) LookupPartnerTopicResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupPartnerTopicResult, error) {
args := v.(LookupPartnerTopicArgs)
r, err := LookupPartnerTopic(ctx, &args, opts...)
var s LookupPartnerTopicResult
if r != nil {
s = *r
}
return s, err
}).(LookupPartnerTopicResultOutput)
}
type LookupPartnerTopicOutputArgs struct {
// Name of the partner topic.
PartnerTopicName pulumi.StringInput `pulumi:"partnerTopicName"`
// The name of the resource group within the user's subscription.
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}
func (LookupPartnerTopicOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupPartnerTopicArgs)(nil)).Elem()
}
// Event Grid Partner Topic.
type LookupPartnerTopicResultOutput struct{ *pulumi.OutputState }
func (LookupPartnerTopicResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupPartnerTopicResult)(nil)).Elem()
}
func (o LookupPartnerTopicResultOutput) ToLookupPartnerTopicResultOutput() LookupPartnerTopicResultOutput {
return o
}
func (o LookupPartnerTopicResultOutput) ToLookupPartnerTopicResultOutputWithContext(ctx context.Context) LookupPartnerTopicResultOutput {
return o
}
// Activation state of the partner topic.
func (o LookupPartnerTopicResultOutput) ActivationState() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) *string { return v.ActivationState }).(pulumi.StringPtrOutput)
}
// Event Type information from the corresponding event channel.
func (o LookupPartnerTopicResultOutput) EventTypeInfo() EventTypeInfoResponsePtrOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) *EventTypeInfoResponse { return v.EventTypeInfo }).(EventTypeInfoResponsePtrOutput)
}
// Expiration time of the partner topic. If this timer expires while the partner topic is still never activated,
// the partner topic and corresponding event channel are deleted.
func (o LookupPartnerTopicResultOutput) ExpirationTimeIfNotActivatedUtc() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) *string { return v.ExpirationTimeIfNotActivatedUtc }).(pulumi.StringPtrOutput)
}
// Fully qualified identifier of the resource.
func (o LookupPartnerTopicResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) string { return v.Id }).(pulumi.StringOutput)
}
// Identity information for the Partner Topic resource.
func (o LookupPartnerTopicResultOutput) Identity() IdentityInfoResponsePtrOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) *IdentityInfoResponse { return v.Identity }).(IdentityInfoResponsePtrOutput)
}
// Location of the resource.
func (o LookupPartnerTopicResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) string { return v.Location }).(pulumi.StringOutput)
}
// Context or helpful message that can be used during the approval process by the subscriber.
func (o LookupPartnerTopicResultOutput) MessageForActivation() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) *string { return v.MessageForActivation }).(pulumi.StringPtrOutput)
}
// Name of the resource.
func (o LookupPartnerTopicResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) string { return v.Name }).(pulumi.StringOutput)
}
// The immutableId of the corresponding partner registration.
func (o LookupPartnerTopicResultOutput) PartnerRegistrationImmutableId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) *string { return v.PartnerRegistrationImmutableId }).(pulumi.StringPtrOutput)
}
// Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic.
// This will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer.
func (o LookupPartnerTopicResultOutput) PartnerTopicFriendlyDescription() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) *string { return v.PartnerTopicFriendlyDescription }).(pulumi.StringPtrOutput)
}
// Provisioning state of the partner topic.
func (o LookupPartnerTopicResultOutput) ProvisioningState() pulumi.StringOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) string { return v.ProvisioningState }).(pulumi.StringOutput)
}
// Source associated with this partner topic. This represents a unique partner resource.
func (o LookupPartnerTopicResultOutput) Source() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) *string { return v.Source }).(pulumi.StringPtrOutput)
}
// The system metadata relating to Partner Topic resource.
func (o LookupPartnerTopicResultOutput) SystemData() SystemDataResponseOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) SystemDataResponse { return v.SystemData }).(SystemDataResponseOutput)
}
// Tags of the resource.
func (o LookupPartnerTopicResultOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput)
}
// Type of the resource.
func (o LookupPartnerTopicResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupPartnerTopicResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupPartnerTopicResultOutput{})
}