-
Notifications
You must be signed in to change notification settings - Fork 51
/
dataConnectorThreatIntelligenceTaxii.go
443 lines (387 loc) · 23.1 KB
/
dataConnectorThreatIntelligenceTaxii.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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package sentinel
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages an Threat Intelligence TAXII Data Connector.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sentinel"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{
// Location: exampleResourceGroup.Location,
// ResourceGroupName: exampleResourceGroup.Name,
// Sku: pulumi.String("PerGB2018"),
// })
// if err != nil {
// return err
// }
// exampleAnalyticsSolution, err := operationalinsights.NewAnalyticsSolution(ctx, "exampleAnalyticsSolution", &operationalinsights.AnalyticsSolutionArgs{
// SolutionName: pulumi.String("SecurityInsights"),
// Location: exampleResourceGroup.Location,
// ResourceGroupName: exampleResourceGroup.Name,
// WorkspaceResourceId: exampleAnalyticsWorkspace.ID(),
// WorkspaceName: exampleAnalyticsWorkspace.Name,
// Plan: &operationalinsights.AnalyticsSolutionPlanArgs{
// Publisher: pulumi.String("Microsoft"),
// Product: pulumi.String("OMSGallery/SecurityInsights"),
// },
// })
// if err != nil {
// return err
// }
// _, err = sentinel.NewDataConnectorThreatIntelligenceTaxii(ctx, "exampleDataConnectorThreatIntelligenceTaxii", &sentinel.DataConnectorThreatIntelligenceTaxiiArgs{
// LogAnalyticsWorkspaceId: exampleAnalyticsSolution.WorkspaceResourceId,
// DisplayName: pulumi.String("example"),
// ApiRootUrl: pulumi.String("https://foo/taxii2/api2/"),
// CollectionId: pulumi.String("someid"),
// }, pulumi.DependsOn([]pulumi.Resource{
// azurerm_log_analytics_solution.Test,
// }))
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Threat Intelligence TAXII Data Connectors can be imported using the `resource id`, e.g.
//
// ```sh
//
// $ pulumi import azure:sentinel/dataConnectorThreatIntelligenceTaxii:DataConnectorThreatIntelligenceTaxii example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/providers/Microsoft.SecurityInsights/dataConnectors/dc1
//
// ```
type DataConnectorThreatIntelligenceTaxii struct {
pulumi.CustomResourceState
// The API root URI of the TAXII server.
ApiRootUrl pulumi.StringOutput `pulumi:"apiRootUrl"`
// The collection ID of the TAXII server.
CollectionId pulumi.StringOutput `pulumi:"collectionId"`
// The friendly name which should be used for this Threat Intelligence TAXII Data Connector.
DisplayName pulumi.StringOutput `pulumi:"displayName"`
// The ID of the Log Analytics Workspace that this Threat Intelligence TAXII Data Connector resides in. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
LogAnalyticsWorkspaceId pulumi.StringOutput `pulumi:"logAnalyticsWorkspaceId"`
// The lookback date for the TAXII server in RFC3339. Defaults to `1970-01-01T00:00:00Z`.
LookbackDate pulumi.StringPtrOutput `pulumi:"lookbackDate"`
// The name which should be used for this Threat Intelligence TAXII Data Connector. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
Name pulumi.StringOutput `pulumi:"name"`
// The password for the TAXII server.
Password pulumi.StringPtrOutput `pulumi:"password"`
// The polling frequency for the TAXII server. Possible values are `OnceAMinute`, `OnceAnHour` and `OnceADay`. Defaults to `OnceAnHour`.
PollingFrequency pulumi.StringPtrOutput `pulumi:"pollingFrequency"`
// The ID of the tenant that this Threat Intelligence TAXII Data Connector connects to. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
TenantId pulumi.StringOutput `pulumi:"tenantId"`
// The user name for the TAXII server.
UserName pulumi.StringPtrOutput `pulumi:"userName"`
}
// NewDataConnectorThreatIntelligenceTaxii registers a new resource with the given unique name, arguments, and options.
func NewDataConnectorThreatIntelligenceTaxii(ctx *pulumi.Context,
name string, args *DataConnectorThreatIntelligenceTaxiiArgs, opts ...pulumi.ResourceOption) (*DataConnectorThreatIntelligenceTaxii, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ApiRootUrl == nil {
return nil, errors.New("invalid value for required argument 'ApiRootUrl'")
}
if args.CollectionId == nil {
return nil, errors.New("invalid value for required argument 'CollectionId'")
}
if args.DisplayName == nil {
return nil, errors.New("invalid value for required argument 'DisplayName'")
}
if args.LogAnalyticsWorkspaceId == nil {
return nil, errors.New("invalid value for required argument 'LogAnalyticsWorkspaceId'")
}
if args.Password != nil {
args.Password = pulumi.ToSecret(args.Password).(pulumi.StringPtrInput)
}
if args.UserName != nil {
args.UserName = pulumi.ToSecret(args.UserName).(pulumi.StringPtrInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"password",
"userName",
})
opts = append(opts, secrets)
var resource DataConnectorThreatIntelligenceTaxii
err := ctx.RegisterResource("azure:sentinel/dataConnectorThreatIntelligenceTaxii:DataConnectorThreatIntelligenceTaxii", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetDataConnectorThreatIntelligenceTaxii gets an existing DataConnectorThreatIntelligenceTaxii 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 GetDataConnectorThreatIntelligenceTaxii(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *DataConnectorThreatIntelligenceTaxiiState, opts ...pulumi.ResourceOption) (*DataConnectorThreatIntelligenceTaxii, error) {
var resource DataConnectorThreatIntelligenceTaxii
err := ctx.ReadResource("azure:sentinel/dataConnectorThreatIntelligenceTaxii:DataConnectorThreatIntelligenceTaxii", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering DataConnectorThreatIntelligenceTaxii resources.
type dataConnectorThreatIntelligenceTaxiiState struct {
// The API root URI of the TAXII server.
ApiRootUrl *string `pulumi:"apiRootUrl"`
// The collection ID of the TAXII server.
CollectionId *string `pulumi:"collectionId"`
// The friendly name which should be used for this Threat Intelligence TAXII Data Connector.
DisplayName *string `pulumi:"displayName"`
// The ID of the Log Analytics Workspace that this Threat Intelligence TAXII Data Connector resides in. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
LogAnalyticsWorkspaceId *string `pulumi:"logAnalyticsWorkspaceId"`
// The lookback date for the TAXII server in RFC3339. Defaults to `1970-01-01T00:00:00Z`.
LookbackDate *string `pulumi:"lookbackDate"`
// The name which should be used for this Threat Intelligence TAXII Data Connector. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
Name *string `pulumi:"name"`
// The password for the TAXII server.
Password *string `pulumi:"password"`
// The polling frequency for the TAXII server. Possible values are `OnceAMinute`, `OnceAnHour` and `OnceADay`. Defaults to `OnceAnHour`.
PollingFrequency *string `pulumi:"pollingFrequency"`
// The ID of the tenant that this Threat Intelligence TAXII Data Connector connects to. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
TenantId *string `pulumi:"tenantId"`
// The user name for the TAXII server.
UserName *string `pulumi:"userName"`
}
type DataConnectorThreatIntelligenceTaxiiState struct {
// The API root URI of the TAXII server.
ApiRootUrl pulumi.StringPtrInput
// The collection ID of the TAXII server.
CollectionId pulumi.StringPtrInput
// The friendly name which should be used for this Threat Intelligence TAXII Data Connector.
DisplayName pulumi.StringPtrInput
// The ID of the Log Analytics Workspace that this Threat Intelligence TAXII Data Connector resides in. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
LogAnalyticsWorkspaceId pulumi.StringPtrInput
// The lookback date for the TAXII server in RFC3339. Defaults to `1970-01-01T00:00:00Z`.
LookbackDate pulumi.StringPtrInput
// The name which should be used for this Threat Intelligence TAXII Data Connector. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
Name pulumi.StringPtrInput
// The password for the TAXII server.
Password pulumi.StringPtrInput
// The polling frequency for the TAXII server. Possible values are `OnceAMinute`, `OnceAnHour` and `OnceADay`. Defaults to `OnceAnHour`.
PollingFrequency pulumi.StringPtrInput
// The ID of the tenant that this Threat Intelligence TAXII Data Connector connects to. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
TenantId pulumi.StringPtrInput
// The user name for the TAXII server.
UserName pulumi.StringPtrInput
}
func (DataConnectorThreatIntelligenceTaxiiState) ElementType() reflect.Type {
return reflect.TypeOf((*dataConnectorThreatIntelligenceTaxiiState)(nil)).Elem()
}
type dataConnectorThreatIntelligenceTaxiiArgs struct {
// The API root URI of the TAXII server.
ApiRootUrl string `pulumi:"apiRootUrl"`
// The collection ID of the TAXII server.
CollectionId string `pulumi:"collectionId"`
// The friendly name which should be used for this Threat Intelligence TAXII Data Connector.
DisplayName string `pulumi:"displayName"`
// The ID of the Log Analytics Workspace that this Threat Intelligence TAXII Data Connector resides in. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
LogAnalyticsWorkspaceId string `pulumi:"logAnalyticsWorkspaceId"`
// The lookback date for the TAXII server in RFC3339. Defaults to `1970-01-01T00:00:00Z`.
LookbackDate *string `pulumi:"lookbackDate"`
// The name which should be used for this Threat Intelligence TAXII Data Connector. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
Name *string `pulumi:"name"`
// The password for the TAXII server.
Password *string `pulumi:"password"`
// The polling frequency for the TAXII server. Possible values are `OnceAMinute`, `OnceAnHour` and `OnceADay`. Defaults to `OnceAnHour`.
PollingFrequency *string `pulumi:"pollingFrequency"`
// The ID of the tenant that this Threat Intelligence TAXII Data Connector connects to. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
TenantId *string `pulumi:"tenantId"`
// The user name for the TAXII server.
UserName *string `pulumi:"userName"`
}
// The set of arguments for constructing a DataConnectorThreatIntelligenceTaxii resource.
type DataConnectorThreatIntelligenceTaxiiArgs struct {
// The API root URI of the TAXII server.
ApiRootUrl pulumi.StringInput
// The collection ID of the TAXII server.
CollectionId pulumi.StringInput
// The friendly name which should be used for this Threat Intelligence TAXII Data Connector.
DisplayName pulumi.StringInput
// The ID of the Log Analytics Workspace that this Threat Intelligence TAXII Data Connector resides in. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
LogAnalyticsWorkspaceId pulumi.StringInput
// The lookback date for the TAXII server in RFC3339. Defaults to `1970-01-01T00:00:00Z`.
LookbackDate pulumi.StringPtrInput
// The name which should be used for this Threat Intelligence TAXII Data Connector. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
Name pulumi.StringPtrInput
// The password for the TAXII server.
Password pulumi.StringPtrInput
// The polling frequency for the TAXII server. Possible values are `OnceAMinute`, `OnceAnHour` and `OnceADay`. Defaults to `OnceAnHour`.
PollingFrequency pulumi.StringPtrInput
// The ID of the tenant that this Threat Intelligence TAXII Data Connector connects to. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
TenantId pulumi.StringPtrInput
// The user name for the TAXII server.
UserName pulumi.StringPtrInput
}
func (DataConnectorThreatIntelligenceTaxiiArgs) ElementType() reflect.Type {
return reflect.TypeOf((*dataConnectorThreatIntelligenceTaxiiArgs)(nil)).Elem()
}
type DataConnectorThreatIntelligenceTaxiiInput interface {
pulumi.Input
ToDataConnectorThreatIntelligenceTaxiiOutput() DataConnectorThreatIntelligenceTaxiiOutput
ToDataConnectorThreatIntelligenceTaxiiOutputWithContext(ctx context.Context) DataConnectorThreatIntelligenceTaxiiOutput
}
func (*DataConnectorThreatIntelligenceTaxii) ElementType() reflect.Type {
return reflect.TypeOf((**DataConnectorThreatIntelligenceTaxii)(nil)).Elem()
}
func (i *DataConnectorThreatIntelligenceTaxii) ToDataConnectorThreatIntelligenceTaxiiOutput() DataConnectorThreatIntelligenceTaxiiOutput {
return i.ToDataConnectorThreatIntelligenceTaxiiOutputWithContext(context.Background())
}
func (i *DataConnectorThreatIntelligenceTaxii) ToDataConnectorThreatIntelligenceTaxiiOutputWithContext(ctx context.Context) DataConnectorThreatIntelligenceTaxiiOutput {
return pulumi.ToOutputWithContext(ctx, i).(DataConnectorThreatIntelligenceTaxiiOutput)
}
// DataConnectorThreatIntelligenceTaxiiArrayInput is an input type that accepts DataConnectorThreatIntelligenceTaxiiArray and DataConnectorThreatIntelligenceTaxiiArrayOutput values.
// You can construct a concrete instance of `DataConnectorThreatIntelligenceTaxiiArrayInput` via:
//
// DataConnectorThreatIntelligenceTaxiiArray{ DataConnectorThreatIntelligenceTaxiiArgs{...} }
type DataConnectorThreatIntelligenceTaxiiArrayInput interface {
pulumi.Input
ToDataConnectorThreatIntelligenceTaxiiArrayOutput() DataConnectorThreatIntelligenceTaxiiArrayOutput
ToDataConnectorThreatIntelligenceTaxiiArrayOutputWithContext(context.Context) DataConnectorThreatIntelligenceTaxiiArrayOutput
}
type DataConnectorThreatIntelligenceTaxiiArray []DataConnectorThreatIntelligenceTaxiiInput
func (DataConnectorThreatIntelligenceTaxiiArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*DataConnectorThreatIntelligenceTaxii)(nil)).Elem()
}
func (i DataConnectorThreatIntelligenceTaxiiArray) ToDataConnectorThreatIntelligenceTaxiiArrayOutput() DataConnectorThreatIntelligenceTaxiiArrayOutput {
return i.ToDataConnectorThreatIntelligenceTaxiiArrayOutputWithContext(context.Background())
}
func (i DataConnectorThreatIntelligenceTaxiiArray) ToDataConnectorThreatIntelligenceTaxiiArrayOutputWithContext(ctx context.Context) DataConnectorThreatIntelligenceTaxiiArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DataConnectorThreatIntelligenceTaxiiArrayOutput)
}
// DataConnectorThreatIntelligenceTaxiiMapInput is an input type that accepts DataConnectorThreatIntelligenceTaxiiMap and DataConnectorThreatIntelligenceTaxiiMapOutput values.
// You can construct a concrete instance of `DataConnectorThreatIntelligenceTaxiiMapInput` via:
//
// DataConnectorThreatIntelligenceTaxiiMap{ "key": DataConnectorThreatIntelligenceTaxiiArgs{...} }
type DataConnectorThreatIntelligenceTaxiiMapInput interface {
pulumi.Input
ToDataConnectorThreatIntelligenceTaxiiMapOutput() DataConnectorThreatIntelligenceTaxiiMapOutput
ToDataConnectorThreatIntelligenceTaxiiMapOutputWithContext(context.Context) DataConnectorThreatIntelligenceTaxiiMapOutput
}
type DataConnectorThreatIntelligenceTaxiiMap map[string]DataConnectorThreatIntelligenceTaxiiInput
func (DataConnectorThreatIntelligenceTaxiiMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*DataConnectorThreatIntelligenceTaxii)(nil)).Elem()
}
func (i DataConnectorThreatIntelligenceTaxiiMap) ToDataConnectorThreatIntelligenceTaxiiMapOutput() DataConnectorThreatIntelligenceTaxiiMapOutput {
return i.ToDataConnectorThreatIntelligenceTaxiiMapOutputWithContext(context.Background())
}
func (i DataConnectorThreatIntelligenceTaxiiMap) ToDataConnectorThreatIntelligenceTaxiiMapOutputWithContext(ctx context.Context) DataConnectorThreatIntelligenceTaxiiMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(DataConnectorThreatIntelligenceTaxiiMapOutput)
}
type DataConnectorThreatIntelligenceTaxiiOutput struct{ *pulumi.OutputState }
func (DataConnectorThreatIntelligenceTaxiiOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DataConnectorThreatIntelligenceTaxii)(nil)).Elem()
}
func (o DataConnectorThreatIntelligenceTaxiiOutput) ToDataConnectorThreatIntelligenceTaxiiOutput() DataConnectorThreatIntelligenceTaxiiOutput {
return o
}
func (o DataConnectorThreatIntelligenceTaxiiOutput) ToDataConnectorThreatIntelligenceTaxiiOutputWithContext(ctx context.Context) DataConnectorThreatIntelligenceTaxiiOutput {
return o
}
// The API root URI of the TAXII server.
func (o DataConnectorThreatIntelligenceTaxiiOutput) ApiRootUrl() pulumi.StringOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringOutput { return v.ApiRootUrl }).(pulumi.StringOutput)
}
// The collection ID of the TAXII server.
func (o DataConnectorThreatIntelligenceTaxiiOutput) CollectionId() pulumi.StringOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringOutput { return v.CollectionId }).(pulumi.StringOutput)
}
// The friendly name which should be used for this Threat Intelligence TAXII Data Connector.
func (o DataConnectorThreatIntelligenceTaxiiOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput)
}
// The ID of the Log Analytics Workspace that this Threat Intelligence TAXII Data Connector resides in. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
func (o DataConnectorThreatIntelligenceTaxiiOutput) LogAnalyticsWorkspaceId() pulumi.StringOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringOutput { return v.LogAnalyticsWorkspaceId }).(pulumi.StringOutput)
}
// The lookback date for the TAXII server in RFC3339. Defaults to `1970-01-01T00:00:00Z`.
func (o DataConnectorThreatIntelligenceTaxiiOutput) LookbackDate() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringPtrOutput { return v.LookbackDate }).(pulumi.StringPtrOutput)
}
// The name which should be used for this Threat Intelligence TAXII Data Connector. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
func (o DataConnectorThreatIntelligenceTaxiiOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The password for the TAXII server.
func (o DataConnectorThreatIntelligenceTaxiiOutput) Password() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringPtrOutput { return v.Password }).(pulumi.StringPtrOutput)
}
// The polling frequency for the TAXII server. Possible values are `OnceAMinute`, `OnceAnHour` and `OnceADay`. Defaults to `OnceAnHour`.
func (o DataConnectorThreatIntelligenceTaxiiOutput) PollingFrequency() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringPtrOutput { return v.PollingFrequency }).(pulumi.StringPtrOutput)
}
// The ID of the tenant that this Threat Intelligence TAXII Data Connector connects to. Changing this forces a new Threat Intelligence TAXII Data Connector to be created.
func (o DataConnectorThreatIntelligenceTaxiiOutput) TenantId() pulumi.StringOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringOutput { return v.TenantId }).(pulumi.StringOutput)
}
// The user name for the TAXII server.
func (o DataConnectorThreatIntelligenceTaxiiOutput) UserName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DataConnectorThreatIntelligenceTaxii) pulumi.StringPtrOutput { return v.UserName }).(pulumi.StringPtrOutput)
}
type DataConnectorThreatIntelligenceTaxiiArrayOutput struct{ *pulumi.OutputState }
func (DataConnectorThreatIntelligenceTaxiiArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*DataConnectorThreatIntelligenceTaxii)(nil)).Elem()
}
func (o DataConnectorThreatIntelligenceTaxiiArrayOutput) ToDataConnectorThreatIntelligenceTaxiiArrayOutput() DataConnectorThreatIntelligenceTaxiiArrayOutput {
return o
}
func (o DataConnectorThreatIntelligenceTaxiiArrayOutput) ToDataConnectorThreatIntelligenceTaxiiArrayOutputWithContext(ctx context.Context) DataConnectorThreatIntelligenceTaxiiArrayOutput {
return o
}
func (o DataConnectorThreatIntelligenceTaxiiArrayOutput) Index(i pulumi.IntInput) DataConnectorThreatIntelligenceTaxiiOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DataConnectorThreatIntelligenceTaxii {
return vs[0].([]*DataConnectorThreatIntelligenceTaxii)[vs[1].(int)]
}).(DataConnectorThreatIntelligenceTaxiiOutput)
}
type DataConnectorThreatIntelligenceTaxiiMapOutput struct{ *pulumi.OutputState }
func (DataConnectorThreatIntelligenceTaxiiMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*DataConnectorThreatIntelligenceTaxii)(nil)).Elem()
}
func (o DataConnectorThreatIntelligenceTaxiiMapOutput) ToDataConnectorThreatIntelligenceTaxiiMapOutput() DataConnectorThreatIntelligenceTaxiiMapOutput {
return o
}
func (o DataConnectorThreatIntelligenceTaxiiMapOutput) ToDataConnectorThreatIntelligenceTaxiiMapOutputWithContext(ctx context.Context) DataConnectorThreatIntelligenceTaxiiMapOutput {
return o
}
func (o DataConnectorThreatIntelligenceTaxiiMapOutput) MapIndex(k pulumi.StringInput) DataConnectorThreatIntelligenceTaxiiOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DataConnectorThreatIntelligenceTaxii {
return vs[0].(map[string]*DataConnectorThreatIntelligenceTaxii)[vs[1].(string)]
}).(DataConnectorThreatIntelligenceTaxiiOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*DataConnectorThreatIntelligenceTaxiiInput)(nil)).Elem(), &DataConnectorThreatIntelligenceTaxii{})
pulumi.RegisterInputType(reflect.TypeOf((*DataConnectorThreatIntelligenceTaxiiArrayInput)(nil)).Elem(), DataConnectorThreatIntelligenceTaxiiArray{})
pulumi.RegisterInputType(reflect.TypeOf((*DataConnectorThreatIntelligenceTaxiiMapInput)(nil)).Elem(), DataConnectorThreatIntelligenceTaxiiMap{})
pulumi.RegisterOutputType(DataConnectorThreatIntelligenceTaxiiOutput{})
pulumi.RegisterOutputType(DataConnectorThreatIntelligenceTaxiiArrayOutput{})
pulumi.RegisterOutputType(DataConnectorThreatIntelligenceTaxiiMapOutput{})
}