This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
partnerTopicEventSubscription.go
267 lines (243 loc) · 15.6 KB
/
partnerTopicEventSubscription.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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
// *** 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 v20200401preview
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Event Subscription
type PartnerTopicEventSubscription struct {
pulumi.CustomResourceState
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterDestination StorageBlobDeadLetterDestinationResponsePtrOutput `pulumi:"deadLetterDestination"`
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterWithResourceIdentity DeadLetterWithResourceIdentityResponsePtrOutput `pulumi:"deadLetterWithResourceIdentity"`
// Information about the destination where events have to be delivered for the event subscription.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeliveryWithResourceIdentity DeliveryWithResourceIdentityResponsePtrOutput `pulumi:"deliveryWithResourceIdentity"`
// Information about the destination where events have to be delivered for the event subscription.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
Destination pulumi.AnyOutput `pulumi:"destination"`
// The event delivery schema for the event subscription.
EventDeliverySchema pulumi.StringPtrOutput `pulumi:"eventDeliverySchema"`
// Expiration time of the event subscription.
ExpirationTimeUtc pulumi.StringPtrOutput `pulumi:"expirationTimeUtc"`
// Information about the filter for the event subscription.
Filter EventSubscriptionFilterResponsePtrOutput `pulumi:"filter"`
// List of user defined labels.
Labels pulumi.StringArrayOutput `pulumi:"labels"`
// Name of the resource
Name pulumi.StringOutput `pulumi:"name"`
// Provisioning state of the event subscription.
ProvisioningState pulumi.StringOutput `pulumi:"provisioningState"`
// The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
RetryPolicy RetryPolicyResponsePtrOutput `pulumi:"retryPolicy"`
// Name of the topic of the event subscription.
Topic pulumi.StringOutput `pulumi:"topic"`
// Type of the resource
Type pulumi.StringOutput `pulumi:"type"`
}
// NewPartnerTopicEventSubscription registers a new resource with the given unique name, arguments, and options.
func NewPartnerTopicEventSubscription(ctx *pulumi.Context,
name string, args *PartnerTopicEventSubscriptionArgs, opts ...pulumi.ResourceOption) (*PartnerTopicEventSubscription, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.EventSubscriptionName == nil {
return nil, errors.New("invalid value for required argument 'EventSubscriptionName'")
}
if args.PartnerTopicName == nil {
return nil, errors.New("invalid value for required argument 'PartnerTopicName'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure-nextgen:eventgrid/v20201015preview:PartnerTopicEventSubscription"),
},
})
opts = append(opts, aliases)
var resource PartnerTopicEventSubscription
err := ctx.RegisterResource("azure-nextgen:eventgrid/v20200401preview:PartnerTopicEventSubscription", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPartnerTopicEventSubscription gets an existing PartnerTopicEventSubscription 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 GetPartnerTopicEventSubscription(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PartnerTopicEventSubscriptionState, opts ...pulumi.ResourceOption) (*PartnerTopicEventSubscription, error) {
var resource PartnerTopicEventSubscription
err := ctx.ReadResource("azure-nextgen:eventgrid/v20200401preview:PartnerTopicEventSubscription", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering PartnerTopicEventSubscription resources.
type partnerTopicEventSubscriptionState struct {
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterDestination *StorageBlobDeadLetterDestinationResponse `pulumi:"deadLetterDestination"`
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterWithResourceIdentity *DeadLetterWithResourceIdentityResponse `pulumi:"deadLetterWithResourceIdentity"`
// Information about the destination where events have to be delivered for the event subscription.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeliveryWithResourceIdentity *DeliveryWithResourceIdentityResponse `pulumi:"deliveryWithResourceIdentity"`
// Information about the destination where events have to be delivered for the event subscription.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
Destination interface{} `pulumi:"destination"`
// The event delivery schema for the event subscription.
EventDeliverySchema *string `pulumi:"eventDeliverySchema"`
// Expiration time of the event subscription.
ExpirationTimeUtc *string `pulumi:"expirationTimeUtc"`
// Information about the filter for the event subscription.
Filter *EventSubscriptionFilterResponse `pulumi:"filter"`
// List of user defined labels.
Labels []string `pulumi:"labels"`
// Name of the resource
Name *string `pulumi:"name"`
// Provisioning state of the event subscription.
ProvisioningState *string `pulumi:"provisioningState"`
// The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
RetryPolicy *RetryPolicyResponse `pulumi:"retryPolicy"`
// Name of the topic of the event subscription.
Topic *string `pulumi:"topic"`
// Type of the resource
Type *string `pulumi:"type"`
}
type PartnerTopicEventSubscriptionState struct {
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterDestination StorageBlobDeadLetterDestinationResponsePtrInput
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterWithResourceIdentity DeadLetterWithResourceIdentityResponsePtrInput
// Information about the destination where events have to be delivered for the event subscription.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeliveryWithResourceIdentity DeliveryWithResourceIdentityResponsePtrInput
// Information about the destination where events have to be delivered for the event subscription.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
Destination pulumi.Input
// The event delivery schema for the event subscription.
EventDeliverySchema pulumi.StringPtrInput
// Expiration time of the event subscription.
ExpirationTimeUtc pulumi.StringPtrInput
// Information about the filter for the event subscription.
Filter EventSubscriptionFilterResponsePtrInput
// List of user defined labels.
Labels pulumi.StringArrayInput
// Name of the resource
Name pulumi.StringPtrInput
// Provisioning state of the event subscription.
ProvisioningState pulumi.StringPtrInput
// The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
RetryPolicy RetryPolicyResponsePtrInput
// Name of the topic of the event subscription.
Topic pulumi.StringPtrInput
// Type of the resource
Type pulumi.StringPtrInput
}
func (PartnerTopicEventSubscriptionState) ElementType() reflect.Type {
return reflect.TypeOf((*partnerTopicEventSubscriptionState)(nil)).Elem()
}
type partnerTopicEventSubscriptionArgs struct {
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterDestination *StorageBlobDeadLetterDestination `pulumi:"deadLetterDestination"`
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterWithResourceIdentity *DeadLetterWithResourceIdentity `pulumi:"deadLetterWithResourceIdentity"`
// Information about the destination where events have to be delivered for the event subscription.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeliveryWithResourceIdentity *DeliveryWithResourceIdentity `pulumi:"deliveryWithResourceIdentity"`
// Information about the destination where events have to be delivered for the event subscription.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
Destination interface{} `pulumi:"destination"`
// The event delivery schema for the event subscription.
EventDeliverySchema *string `pulumi:"eventDeliverySchema"`
// Name of the event subscription to be created. Event subscription names must be between 3 and 100 characters in length and use alphanumeric letters only.
EventSubscriptionName string `pulumi:"eventSubscriptionName"`
// Expiration time of the event subscription.
ExpirationTimeUtc *string `pulumi:"expirationTimeUtc"`
// Information about the filter for the event subscription.
Filter *EventSubscriptionFilter `pulumi:"filter"`
// List of user defined labels.
Labels []string `pulumi:"labels"`
// Name of the partner topic.
PartnerTopicName string `pulumi:"partnerTopicName"`
// The name of the resource group within the user's subscription.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
RetryPolicy *RetryPolicy `pulumi:"retryPolicy"`
}
// The set of arguments for constructing a PartnerTopicEventSubscription resource.
type PartnerTopicEventSubscriptionArgs struct {
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterDestination StorageBlobDeadLetterDestinationPtrInput
// The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeadLetterWithResourceIdentity DeadLetterWithResourceIdentityPtrInput
// Information about the destination where events have to be delivered for the event subscription.
// Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
DeliveryWithResourceIdentity DeliveryWithResourceIdentityPtrInput
// Information about the destination where events have to be delivered for the event subscription.
// Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
Destination pulumi.Input
// The event delivery schema for the event subscription.
EventDeliverySchema pulumi.StringPtrInput
// Name of the event subscription to be created. Event subscription names must be between 3 and 100 characters in length and use alphanumeric letters only.
EventSubscriptionName pulumi.StringInput
// Expiration time of the event subscription.
ExpirationTimeUtc pulumi.StringPtrInput
// Information about the filter for the event subscription.
Filter EventSubscriptionFilterPtrInput
// List of user defined labels.
Labels pulumi.StringArrayInput
// Name of the partner topic.
PartnerTopicName pulumi.StringInput
// The name of the resource group within the user's subscription.
ResourceGroupName pulumi.StringInput
// The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
RetryPolicy RetryPolicyPtrInput
}
func (PartnerTopicEventSubscriptionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*partnerTopicEventSubscriptionArgs)(nil)).Elem()
}
type PartnerTopicEventSubscriptionInput interface {
pulumi.Input
ToPartnerTopicEventSubscriptionOutput() PartnerTopicEventSubscriptionOutput
ToPartnerTopicEventSubscriptionOutputWithContext(ctx context.Context) PartnerTopicEventSubscriptionOutput
}
func (*PartnerTopicEventSubscription) ElementType() reflect.Type {
return reflect.TypeOf((*PartnerTopicEventSubscription)(nil))
}
func (i *PartnerTopicEventSubscription) ToPartnerTopicEventSubscriptionOutput() PartnerTopicEventSubscriptionOutput {
return i.ToPartnerTopicEventSubscriptionOutputWithContext(context.Background())
}
func (i *PartnerTopicEventSubscription) ToPartnerTopicEventSubscriptionOutputWithContext(ctx context.Context) PartnerTopicEventSubscriptionOutput {
return pulumi.ToOutputWithContext(ctx, i).(PartnerTopicEventSubscriptionOutput)
}
type PartnerTopicEventSubscriptionOutput struct {
*pulumi.OutputState
}
func (PartnerTopicEventSubscriptionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PartnerTopicEventSubscription)(nil))
}
func (o PartnerTopicEventSubscriptionOutput) ToPartnerTopicEventSubscriptionOutput() PartnerTopicEventSubscriptionOutput {
return o
}
func (o PartnerTopicEventSubscriptionOutput) ToPartnerTopicEventSubscriptionOutputWithContext(ctx context.Context) PartnerTopicEventSubscriptionOutput {
return o
}
func init() {
pulumi.RegisterOutputType(PartnerTopicEventSubscriptionOutput{})
}