/
securitySolution.go
499 lines (438 loc) · 23.2 KB
/
securitySolution.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
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
// 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 iot
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages an iot security solution.
//
// ## 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/iot"
// "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
// }
// exampleIoTHub, err := iot.NewIoTHub(ctx, "example", &iot.IoTHubArgs{
// Name: pulumi.String("example-IoTHub"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// Sku: &iot.IoTHubSkuArgs{
// Name: pulumi.String("S1"),
// Capacity: pulumi.Int(1),
// },
// })
// if err != nil {
// return err
// }
// _, err = iot.NewSecuritySolution(ctx, "example", &iot.SecuritySolutionArgs{
// Name: pulumi.String("example-Iot-Security-Solution"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// DisplayName: pulumi.String("Iot Security Solution"),
// IothubIds: pulumi.StringArray{
// exampleIoTHub.ID(),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Iot Security Solution can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:iot/securitySolution:SecuritySolution example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Security/iotSecuritySolutions/solution1
// ```
type SecuritySolution struct {
pulumi.CustomResourceState
// A `additionalWorkspace` block as defined below.
AdditionalWorkspaces SecuritySolutionAdditionalWorkspaceArrayOutput `pulumi:"additionalWorkspaces"`
// A list of disabled data sources for the Iot Security Solution. Possible value is `TwinData`.
DisabledDataSources pulumi.StringArrayOutput `pulumi:"disabledDataSources"`
// Specifies the Display Name for this Iot Security Solution.
DisplayName pulumi.StringOutput `pulumi:"displayName"`
// Is the Iot Security Solution enabled? Defaults to `true`.
Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
// A list of data which is to exported to analytic workspace. Valid values include `RawEvents`.
EventsToExports pulumi.StringArrayOutput `pulumi:"eventsToExports"`
// Specifies the IoT Hub resource IDs to which this Iot Security Solution is applied.
IothubIds pulumi.StringArrayOutput `pulumi:"iothubIds"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location pulumi.StringOutput `pulumi:"location"`
// Specifies the Log Analytics Workspace ID to which the security data will be sent.
LogAnalyticsWorkspaceId pulumi.StringPtrOutput `pulumi:"logAnalyticsWorkspaceId"`
// Should IP addressed be unmasked in the log? Defaults to `false`.
LogUnmaskedIpsEnabled pulumi.BoolPtrOutput `pulumi:"logUnmaskedIpsEnabled"`
// Specifies the name of the Iot Security Solution. Changing this forces a new resource to be created.
Name pulumi.StringOutput `pulumi:"name"`
// An Azure Resource Graph query used to set the resources monitored.
QueryForResources pulumi.StringOutput `pulumi:"queryForResources"`
// A list of subscription Ids on which the user defined resources query should be executed.
QuerySubscriptionIds pulumi.StringArrayOutput `pulumi:"querySubscriptionIds"`
// A `recommendationsEnabled` block of options to enable or disable as defined below.
RecommendationsEnabled SecuritySolutionRecommendationsEnabledOutput `pulumi:"recommendationsEnabled"`
// Specifies the name of the resource group in which to create the Iot Security Solution. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapOutput `pulumi:"tags"`
}
// NewSecuritySolution registers a new resource with the given unique name, arguments, and options.
func NewSecuritySolution(ctx *pulumi.Context,
name string, args *SecuritySolutionArgs, opts ...pulumi.ResourceOption) (*SecuritySolution, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.DisplayName == nil {
return nil, errors.New("invalid value for required argument 'DisplayName'")
}
if args.IothubIds == nil {
return nil, errors.New("invalid value for required argument 'IothubIds'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource SecuritySolution
err := ctx.RegisterResource("azure:iot/securitySolution:SecuritySolution", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSecuritySolution gets an existing SecuritySolution 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 GetSecuritySolution(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SecuritySolutionState, opts ...pulumi.ResourceOption) (*SecuritySolution, error) {
var resource SecuritySolution
err := ctx.ReadResource("azure:iot/securitySolution:SecuritySolution", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering SecuritySolution resources.
type securitySolutionState struct {
// A `additionalWorkspace` block as defined below.
AdditionalWorkspaces []SecuritySolutionAdditionalWorkspace `pulumi:"additionalWorkspaces"`
// A list of disabled data sources for the Iot Security Solution. Possible value is `TwinData`.
DisabledDataSources []string `pulumi:"disabledDataSources"`
// Specifies the Display Name for this Iot Security Solution.
DisplayName *string `pulumi:"displayName"`
// Is the Iot Security Solution enabled? Defaults to `true`.
Enabled *bool `pulumi:"enabled"`
// A list of data which is to exported to analytic workspace. Valid values include `RawEvents`.
EventsToExports []string `pulumi:"eventsToExports"`
// Specifies the IoT Hub resource IDs to which this Iot Security Solution is applied.
IothubIds []string `pulumi:"iothubIds"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// Specifies the Log Analytics Workspace ID to which the security data will be sent.
LogAnalyticsWorkspaceId *string `pulumi:"logAnalyticsWorkspaceId"`
// Should IP addressed be unmasked in the log? Defaults to `false`.
LogUnmaskedIpsEnabled *bool `pulumi:"logUnmaskedIpsEnabled"`
// Specifies the name of the Iot Security Solution. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// An Azure Resource Graph query used to set the resources monitored.
QueryForResources *string `pulumi:"queryForResources"`
// A list of subscription Ids on which the user defined resources query should be executed.
QuerySubscriptionIds []string `pulumi:"querySubscriptionIds"`
// A `recommendationsEnabled` block of options to enable or disable as defined below.
RecommendationsEnabled *SecuritySolutionRecommendationsEnabled `pulumi:"recommendationsEnabled"`
// Specifies the name of the resource group in which to create the Iot Security Solution. Changing this forces a new resource to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// A mapping of tags to assign to the resource.
Tags map[string]string `pulumi:"tags"`
}
type SecuritySolutionState struct {
// A `additionalWorkspace` block as defined below.
AdditionalWorkspaces SecuritySolutionAdditionalWorkspaceArrayInput
// A list of disabled data sources for the Iot Security Solution. Possible value is `TwinData`.
DisabledDataSources pulumi.StringArrayInput
// Specifies the Display Name for this Iot Security Solution.
DisplayName pulumi.StringPtrInput
// Is the Iot Security Solution enabled? Defaults to `true`.
Enabled pulumi.BoolPtrInput
// A list of data which is to exported to analytic workspace. Valid values include `RawEvents`.
EventsToExports pulumi.StringArrayInput
// Specifies the IoT Hub resource IDs to which this Iot Security Solution is applied.
IothubIds pulumi.StringArrayInput
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// Specifies the Log Analytics Workspace ID to which the security data will be sent.
LogAnalyticsWorkspaceId pulumi.StringPtrInput
// Should IP addressed be unmasked in the log? Defaults to `false`.
LogUnmaskedIpsEnabled pulumi.BoolPtrInput
// Specifies the name of the Iot Security Solution. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// An Azure Resource Graph query used to set the resources monitored.
QueryForResources pulumi.StringPtrInput
// A list of subscription Ids on which the user defined resources query should be executed.
QuerySubscriptionIds pulumi.StringArrayInput
// A `recommendationsEnabled` block of options to enable or disable as defined below.
RecommendationsEnabled SecuritySolutionRecommendationsEnabledPtrInput
// Specifies the name of the resource group in which to create the Iot Security Solution. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringPtrInput
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapInput
}
func (SecuritySolutionState) ElementType() reflect.Type {
return reflect.TypeOf((*securitySolutionState)(nil)).Elem()
}
type securitySolutionArgs struct {
// A `additionalWorkspace` block as defined below.
AdditionalWorkspaces []SecuritySolutionAdditionalWorkspace `pulumi:"additionalWorkspaces"`
// A list of disabled data sources for the Iot Security Solution. Possible value is `TwinData`.
DisabledDataSources []string `pulumi:"disabledDataSources"`
// Specifies the Display Name for this Iot Security Solution.
DisplayName string `pulumi:"displayName"`
// Is the Iot Security Solution enabled? Defaults to `true`.
Enabled *bool `pulumi:"enabled"`
// A list of data which is to exported to analytic workspace. Valid values include `RawEvents`.
EventsToExports []string `pulumi:"eventsToExports"`
// Specifies the IoT Hub resource IDs to which this Iot Security Solution is applied.
IothubIds []string `pulumi:"iothubIds"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// Specifies the Log Analytics Workspace ID to which the security data will be sent.
LogAnalyticsWorkspaceId *string `pulumi:"logAnalyticsWorkspaceId"`
// Should IP addressed be unmasked in the log? Defaults to `false`.
LogUnmaskedIpsEnabled *bool `pulumi:"logUnmaskedIpsEnabled"`
// Specifies the name of the Iot Security Solution. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// An Azure Resource Graph query used to set the resources monitored.
QueryForResources *string `pulumi:"queryForResources"`
// A list of subscription Ids on which the user defined resources query should be executed.
QuerySubscriptionIds []string `pulumi:"querySubscriptionIds"`
// A `recommendationsEnabled` block of options to enable or disable as defined below.
RecommendationsEnabled *SecuritySolutionRecommendationsEnabled `pulumi:"recommendationsEnabled"`
// Specifies the name of the resource group in which to create the Iot Security Solution. Changing this forces a new resource to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// A mapping of tags to assign to the resource.
Tags map[string]string `pulumi:"tags"`
}
// The set of arguments for constructing a SecuritySolution resource.
type SecuritySolutionArgs struct {
// A `additionalWorkspace` block as defined below.
AdditionalWorkspaces SecuritySolutionAdditionalWorkspaceArrayInput
// A list of disabled data sources for the Iot Security Solution. Possible value is `TwinData`.
DisabledDataSources pulumi.StringArrayInput
// Specifies the Display Name for this Iot Security Solution.
DisplayName pulumi.StringInput
// Is the Iot Security Solution enabled? Defaults to `true`.
Enabled pulumi.BoolPtrInput
// A list of data which is to exported to analytic workspace. Valid values include `RawEvents`.
EventsToExports pulumi.StringArrayInput
// Specifies the IoT Hub resource IDs to which this Iot Security Solution is applied.
IothubIds pulumi.StringArrayInput
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// Specifies the Log Analytics Workspace ID to which the security data will be sent.
LogAnalyticsWorkspaceId pulumi.StringPtrInput
// Should IP addressed be unmasked in the log? Defaults to `false`.
LogUnmaskedIpsEnabled pulumi.BoolPtrInput
// Specifies the name of the Iot Security Solution. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// An Azure Resource Graph query used to set the resources monitored.
QueryForResources pulumi.StringPtrInput
// A list of subscription Ids on which the user defined resources query should be executed.
QuerySubscriptionIds pulumi.StringArrayInput
// A `recommendationsEnabled` block of options to enable or disable as defined below.
RecommendationsEnabled SecuritySolutionRecommendationsEnabledPtrInput
// Specifies the name of the resource group in which to create the Iot Security Solution. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringInput
// A mapping of tags to assign to the resource.
Tags pulumi.StringMapInput
}
func (SecuritySolutionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*securitySolutionArgs)(nil)).Elem()
}
type SecuritySolutionInput interface {
pulumi.Input
ToSecuritySolutionOutput() SecuritySolutionOutput
ToSecuritySolutionOutputWithContext(ctx context.Context) SecuritySolutionOutput
}
func (*SecuritySolution) ElementType() reflect.Type {
return reflect.TypeOf((**SecuritySolution)(nil)).Elem()
}
func (i *SecuritySolution) ToSecuritySolutionOutput() SecuritySolutionOutput {
return i.ToSecuritySolutionOutputWithContext(context.Background())
}
func (i *SecuritySolution) ToSecuritySolutionOutputWithContext(ctx context.Context) SecuritySolutionOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecuritySolutionOutput)
}
// SecuritySolutionArrayInput is an input type that accepts SecuritySolutionArray and SecuritySolutionArrayOutput values.
// You can construct a concrete instance of `SecuritySolutionArrayInput` via:
//
// SecuritySolutionArray{ SecuritySolutionArgs{...} }
type SecuritySolutionArrayInput interface {
pulumi.Input
ToSecuritySolutionArrayOutput() SecuritySolutionArrayOutput
ToSecuritySolutionArrayOutputWithContext(context.Context) SecuritySolutionArrayOutput
}
type SecuritySolutionArray []SecuritySolutionInput
func (SecuritySolutionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SecuritySolution)(nil)).Elem()
}
func (i SecuritySolutionArray) ToSecuritySolutionArrayOutput() SecuritySolutionArrayOutput {
return i.ToSecuritySolutionArrayOutputWithContext(context.Background())
}
func (i SecuritySolutionArray) ToSecuritySolutionArrayOutputWithContext(ctx context.Context) SecuritySolutionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecuritySolutionArrayOutput)
}
// SecuritySolutionMapInput is an input type that accepts SecuritySolutionMap and SecuritySolutionMapOutput values.
// You can construct a concrete instance of `SecuritySolutionMapInput` via:
//
// SecuritySolutionMap{ "key": SecuritySolutionArgs{...} }
type SecuritySolutionMapInput interface {
pulumi.Input
ToSecuritySolutionMapOutput() SecuritySolutionMapOutput
ToSecuritySolutionMapOutputWithContext(context.Context) SecuritySolutionMapOutput
}
type SecuritySolutionMap map[string]SecuritySolutionInput
func (SecuritySolutionMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SecuritySolution)(nil)).Elem()
}
func (i SecuritySolutionMap) ToSecuritySolutionMapOutput() SecuritySolutionMapOutput {
return i.ToSecuritySolutionMapOutputWithContext(context.Background())
}
func (i SecuritySolutionMap) ToSecuritySolutionMapOutputWithContext(ctx context.Context) SecuritySolutionMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SecuritySolutionMapOutput)
}
type SecuritySolutionOutput struct{ *pulumi.OutputState }
func (SecuritySolutionOutput) ElementType() reflect.Type {
return reflect.TypeOf((**SecuritySolution)(nil)).Elem()
}
func (o SecuritySolutionOutput) ToSecuritySolutionOutput() SecuritySolutionOutput {
return o
}
func (o SecuritySolutionOutput) ToSecuritySolutionOutputWithContext(ctx context.Context) SecuritySolutionOutput {
return o
}
// A `additionalWorkspace` block as defined below.
func (o SecuritySolutionOutput) AdditionalWorkspaces() SecuritySolutionAdditionalWorkspaceArrayOutput {
return o.ApplyT(func(v *SecuritySolution) SecuritySolutionAdditionalWorkspaceArrayOutput {
return v.AdditionalWorkspaces
}).(SecuritySolutionAdditionalWorkspaceArrayOutput)
}
// A list of disabled data sources for the Iot Security Solution. Possible value is `TwinData`.
func (o SecuritySolutionOutput) DisabledDataSources() pulumi.StringArrayOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringArrayOutput { return v.DisabledDataSources }).(pulumi.StringArrayOutput)
}
// Specifies the Display Name for this Iot Security Solution.
func (o SecuritySolutionOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput)
}
// Is the Iot Security Solution enabled? Defaults to `true`.
func (o SecuritySolutionOutput) Enabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput)
}
// A list of data which is to exported to analytic workspace. Valid values include `RawEvents`.
func (o SecuritySolutionOutput) EventsToExports() pulumi.StringArrayOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringArrayOutput { return v.EventsToExports }).(pulumi.StringArrayOutput)
}
// Specifies the IoT Hub resource IDs to which this Iot Security Solution is applied.
func (o SecuritySolutionOutput) IothubIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringArrayOutput { return v.IothubIds }).(pulumi.StringArrayOutput)
}
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (o SecuritySolutionOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
// Specifies the Log Analytics Workspace ID to which the security data will be sent.
func (o SecuritySolutionOutput) LogAnalyticsWorkspaceId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringPtrOutput { return v.LogAnalyticsWorkspaceId }).(pulumi.StringPtrOutput)
}
// Should IP addressed be unmasked in the log? Defaults to `false`.
func (o SecuritySolutionOutput) LogUnmaskedIpsEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.BoolPtrOutput { return v.LogUnmaskedIpsEnabled }).(pulumi.BoolPtrOutput)
}
// Specifies the name of the Iot Security Solution. Changing this forces a new resource to be created.
func (o SecuritySolutionOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// An Azure Resource Graph query used to set the resources monitored.
func (o SecuritySolutionOutput) QueryForResources() pulumi.StringOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringOutput { return v.QueryForResources }).(pulumi.StringOutput)
}
// A list of subscription Ids on which the user defined resources query should be executed.
func (o SecuritySolutionOutput) QuerySubscriptionIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringArrayOutput { return v.QuerySubscriptionIds }).(pulumi.StringArrayOutput)
}
// A `recommendationsEnabled` block of options to enable or disable as defined below.
func (o SecuritySolutionOutput) RecommendationsEnabled() SecuritySolutionRecommendationsEnabledOutput {
return o.ApplyT(func(v *SecuritySolution) SecuritySolutionRecommendationsEnabledOutput {
return v.RecommendationsEnabled
}).(SecuritySolutionRecommendationsEnabledOutput)
}
// Specifies the name of the resource group in which to create the Iot Security Solution. Changing this forces a new resource to be created.
func (o SecuritySolutionOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// A mapping of tags to assign to the resource.
func (o SecuritySolutionOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *SecuritySolution) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
type SecuritySolutionArrayOutput struct{ *pulumi.OutputState }
func (SecuritySolutionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SecuritySolution)(nil)).Elem()
}
func (o SecuritySolutionArrayOutput) ToSecuritySolutionArrayOutput() SecuritySolutionArrayOutput {
return o
}
func (o SecuritySolutionArrayOutput) ToSecuritySolutionArrayOutputWithContext(ctx context.Context) SecuritySolutionArrayOutput {
return o
}
func (o SecuritySolutionArrayOutput) Index(i pulumi.IntInput) SecuritySolutionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SecuritySolution {
return vs[0].([]*SecuritySolution)[vs[1].(int)]
}).(SecuritySolutionOutput)
}
type SecuritySolutionMapOutput struct{ *pulumi.OutputState }
func (SecuritySolutionMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SecuritySolution)(nil)).Elem()
}
func (o SecuritySolutionMapOutput) ToSecuritySolutionMapOutput() SecuritySolutionMapOutput {
return o
}
func (o SecuritySolutionMapOutput) ToSecuritySolutionMapOutputWithContext(ctx context.Context) SecuritySolutionMapOutput {
return o
}
func (o SecuritySolutionMapOutput) MapIndex(k pulumi.StringInput) SecuritySolutionOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SecuritySolution {
return vs[0].(map[string]*SecuritySolution)[vs[1].(string)]
}).(SecuritySolutionOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*SecuritySolutionInput)(nil)).Elem(), &SecuritySolution{})
pulumi.RegisterInputType(reflect.TypeOf((*SecuritySolutionArrayInput)(nil)).Elem(), SecuritySolutionArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SecuritySolutionMapInput)(nil)).Elem(), SecuritySolutionMap{})
pulumi.RegisterOutputType(SecuritySolutionOutput{})
pulumi.RegisterOutputType(SecuritySolutionArrayOutput{})
pulumi.RegisterOutputType(SecuritySolutionMapOutput{})
}