/
softwareUpdateConfiguration.go
531 lines (470 loc) · 25.8 KB
/
softwareUpdateConfiguration.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
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
// 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 automation
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages an Automation Software Update Configuraion.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/automation"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "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-rg"),
// Location: pulumi.String("East US"),
// })
// if err != nil {
// return err
// }
// exampleAccount, err := automation.NewAccount(ctx, "example", &automation.AccountArgs{
// Name: pulumi.String("example"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// SkuName: pulumi.String("Basic"),
// })
// if err != nil {
// return err
// }
// exampleRunBook, err := automation.NewRunBook(ctx, "example", &automation.RunBookArgs{
// Name: pulumi.String("Get-AzureVMTutorial"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// AutomationAccountName: exampleAccount.Name,
// LogVerbose: pulumi.Bool(true),
// LogProgress: pulumi.Bool(true),
// Description: pulumi.String("This is a example runbook for terraform acceptance example"),
// RunbookType: pulumi.String("Python3"),
// Content: pulumi.String("# Some example content\n# for Terraform acceptance example\n"),
// Tags: pulumi.StringMap{
// "ENV": pulumi.String("runbook_test"),
// },
// })
// if err != nil {
// return err
// }
// _, err = automation.NewSoftwareUpdateConfiguration(ctx, "example", &automation.SoftwareUpdateConfigurationArgs{
// Name: pulumi.String("example"),
// AutomationAccountId: exampleAccount.ID(),
// OperatingSystem: pulumi.String("Linux"),
// Linuxes: automation.SoftwareUpdateConfigurationLinuxArray{
// &automation.SoftwareUpdateConfigurationLinuxArgs{
// ClassificationIncluded: pulumi.String("Security"),
// ExcludedPackages: pulumi.StringArray{
// pulumi.String("apt"),
// },
// IncludedPackages: pulumi.StringArray{
// pulumi.String("vim"),
// },
// Reboot: pulumi.String("IfRequired"),
// },
// },
// PreTasks: automation.SoftwareUpdateConfigurationPreTaskArray{
// &automation.SoftwareUpdateConfigurationPreTaskArgs{
// Source: exampleRunBook.Name,
// Parameters: pulumi.StringMap{
// "COMPUTER_NAME": pulumi.String("Foo"),
// },
// },
// },
// Duration: pulumi.String("PT2H2M2S"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Automations Software Update Configuration can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:automation/softwareUpdateConfiguration:SoftwareUpdateConfiguration example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/softwareUpdateConfigurations/suc1
// ```
type SoftwareUpdateConfiguration struct {
pulumi.CustomResourceState
// The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
AutomationAccountId pulumi.StringOutput `pulumi:"automationAccountId"`
// Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
Duration pulumi.StringPtrOutput `pulumi:"duration"`
// The Error code when failed.
ErrorCode pulumi.StringOutput `pulumi:"errorCode"`
// The Error message indicating why the operation failed.
//
// Deprecated: `errorMeesage` will be removed in favour of `errorMessage` in version 4.0 of the AzureRM Provider
ErrorMeesage pulumi.StringOutput `pulumi:"errorMeesage"`
ErrorMessage pulumi.StringOutput `pulumi:"errorMessage"`
// A `linux` block as defined below.
Linuxes SoftwareUpdateConfigurationLinuxArrayOutput `pulumi:"linuxes"`
// The name which should be used for this Automation. Changing this forces a new Automation to be created.
Name pulumi.StringOutput `pulumi:"name"`
// Specifies a list of names of non-Azure machines for the software update configuration.
NonAzureComputerNames pulumi.StringArrayOutput `pulumi:"nonAzureComputerNames"`
// Deprecated: This property has been deprecated and will be removed in a future release. The use of either the `linux` or `windows` blocks replaces setting this value directly. This value is ignored by the provider.
OperatingSystem pulumi.StringOutput `pulumi:"operatingSystem"`
// A `postTask` blocks as defined below.
PostTasks SoftwareUpdateConfigurationPostTaskArrayOutput `pulumi:"postTasks"`
// A `preTask` blocks as defined below.
PreTasks SoftwareUpdateConfigurationPreTaskArrayOutput `pulumi:"preTasks"`
// A `schedule` blocks as defined below.
Schedules SoftwareUpdateConfigurationScheduleArrayOutput `pulumi:"schedules"`
// A `target` blocks as defined below.
Target SoftwareUpdateConfigurationTargetPtrOutput `pulumi:"target"`
// Specifies a list of Azure Resource IDs of azure virtual machines.
VirtualMachineIds pulumi.StringArrayOutput `pulumi:"virtualMachineIds"`
// A `windows` block as defined below.
//
// > **NOTE:** One of `linux` or `windows` must be specified.
Windows SoftwareUpdateConfigurationWindowsPtrOutput `pulumi:"windows"`
}
// NewSoftwareUpdateConfiguration registers a new resource with the given unique name, arguments, and options.
func NewSoftwareUpdateConfiguration(ctx *pulumi.Context,
name string, args *SoftwareUpdateConfigurationArgs, opts ...pulumi.ResourceOption) (*SoftwareUpdateConfiguration, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AutomationAccountId == nil {
return nil, errors.New("invalid value for required argument 'AutomationAccountId'")
}
if args.Schedules == nil {
return nil, errors.New("invalid value for required argument 'Schedules'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource SoftwareUpdateConfiguration
err := ctx.RegisterResource("azure:automation/softwareUpdateConfiguration:SoftwareUpdateConfiguration", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSoftwareUpdateConfiguration gets an existing SoftwareUpdateConfiguration 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 GetSoftwareUpdateConfiguration(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SoftwareUpdateConfigurationState, opts ...pulumi.ResourceOption) (*SoftwareUpdateConfiguration, error) {
var resource SoftwareUpdateConfiguration
err := ctx.ReadResource("azure:automation/softwareUpdateConfiguration:SoftwareUpdateConfiguration", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering SoftwareUpdateConfiguration resources.
type softwareUpdateConfigurationState struct {
// The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
AutomationAccountId *string `pulumi:"automationAccountId"`
// Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
Duration *string `pulumi:"duration"`
// The Error code when failed.
ErrorCode *string `pulumi:"errorCode"`
// The Error message indicating why the operation failed.
//
// Deprecated: `errorMeesage` will be removed in favour of `errorMessage` in version 4.0 of the AzureRM Provider
ErrorMeesage *string `pulumi:"errorMeesage"`
ErrorMessage *string `pulumi:"errorMessage"`
// A `linux` block as defined below.
Linuxes []SoftwareUpdateConfigurationLinux `pulumi:"linuxes"`
// The name which should be used for this Automation. Changing this forces a new Automation to be created.
Name *string `pulumi:"name"`
// Specifies a list of names of non-Azure machines for the software update configuration.
NonAzureComputerNames []string `pulumi:"nonAzureComputerNames"`
// Deprecated: This property has been deprecated and will be removed in a future release. The use of either the `linux` or `windows` blocks replaces setting this value directly. This value is ignored by the provider.
OperatingSystem *string `pulumi:"operatingSystem"`
// A `postTask` blocks as defined below.
PostTasks []SoftwareUpdateConfigurationPostTask `pulumi:"postTasks"`
// A `preTask` blocks as defined below.
PreTasks []SoftwareUpdateConfigurationPreTask `pulumi:"preTasks"`
// A `schedule` blocks as defined below.
Schedules []SoftwareUpdateConfigurationSchedule `pulumi:"schedules"`
// A `target` blocks as defined below.
Target *SoftwareUpdateConfigurationTarget `pulumi:"target"`
// Specifies a list of Azure Resource IDs of azure virtual machines.
VirtualMachineIds []string `pulumi:"virtualMachineIds"`
// A `windows` block as defined below.
//
// > **NOTE:** One of `linux` or `windows` must be specified.
Windows *SoftwareUpdateConfigurationWindows `pulumi:"windows"`
}
type SoftwareUpdateConfigurationState struct {
// The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
AutomationAccountId pulumi.StringPtrInput
// Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
Duration pulumi.StringPtrInput
// The Error code when failed.
ErrorCode pulumi.StringPtrInput
// The Error message indicating why the operation failed.
//
// Deprecated: `errorMeesage` will be removed in favour of `errorMessage` in version 4.0 of the AzureRM Provider
ErrorMeesage pulumi.StringPtrInput
ErrorMessage pulumi.StringPtrInput
// A `linux` block as defined below.
Linuxes SoftwareUpdateConfigurationLinuxArrayInput
// The name which should be used for this Automation. Changing this forces a new Automation to be created.
Name pulumi.StringPtrInput
// Specifies a list of names of non-Azure machines for the software update configuration.
NonAzureComputerNames pulumi.StringArrayInput
// Deprecated: This property has been deprecated and will be removed in a future release. The use of either the `linux` or `windows` blocks replaces setting this value directly. This value is ignored by the provider.
OperatingSystem pulumi.StringPtrInput
// A `postTask` blocks as defined below.
PostTasks SoftwareUpdateConfigurationPostTaskArrayInput
// A `preTask` blocks as defined below.
PreTasks SoftwareUpdateConfigurationPreTaskArrayInput
// A `schedule` blocks as defined below.
Schedules SoftwareUpdateConfigurationScheduleArrayInput
// A `target` blocks as defined below.
Target SoftwareUpdateConfigurationTargetPtrInput
// Specifies a list of Azure Resource IDs of azure virtual machines.
VirtualMachineIds pulumi.StringArrayInput
// A `windows` block as defined below.
//
// > **NOTE:** One of `linux` or `windows` must be specified.
Windows SoftwareUpdateConfigurationWindowsPtrInput
}
func (SoftwareUpdateConfigurationState) ElementType() reflect.Type {
return reflect.TypeOf((*softwareUpdateConfigurationState)(nil)).Elem()
}
type softwareUpdateConfigurationArgs struct {
// The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
AutomationAccountId string `pulumi:"automationAccountId"`
// Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
Duration *string `pulumi:"duration"`
// A `linux` block as defined below.
Linuxes []SoftwareUpdateConfigurationLinux `pulumi:"linuxes"`
// The name which should be used for this Automation. Changing this forces a new Automation to be created.
Name *string `pulumi:"name"`
// Specifies a list of names of non-Azure machines for the software update configuration.
NonAzureComputerNames []string `pulumi:"nonAzureComputerNames"`
// Deprecated: This property has been deprecated and will be removed in a future release. The use of either the `linux` or `windows` blocks replaces setting this value directly. This value is ignored by the provider.
OperatingSystem *string `pulumi:"operatingSystem"`
// A `postTask` blocks as defined below.
PostTasks []SoftwareUpdateConfigurationPostTask `pulumi:"postTasks"`
// A `preTask` blocks as defined below.
PreTasks []SoftwareUpdateConfigurationPreTask `pulumi:"preTasks"`
// A `schedule` blocks as defined below.
Schedules []SoftwareUpdateConfigurationSchedule `pulumi:"schedules"`
// A `target` blocks as defined below.
Target *SoftwareUpdateConfigurationTarget `pulumi:"target"`
// Specifies a list of Azure Resource IDs of azure virtual machines.
VirtualMachineIds []string `pulumi:"virtualMachineIds"`
// A `windows` block as defined below.
//
// > **NOTE:** One of `linux` or `windows` must be specified.
Windows *SoftwareUpdateConfigurationWindows `pulumi:"windows"`
}
// The set of arguments for constructing a SoftwareUpdateConfiguration resource.
type SoftwareUpdateConfigurationArgs struct {
// The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
AutomationAccountId pulumi.StringInput
// Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
Duration pulumi.StringPtrInput
// A `linux` block as defined below.
Linuxes SoftwareUpdateConfigurationLinuxArrayInput
// The name which should be used for this Automation. Changing this forces a new Automation to be created.
Name pulumi.StringPtrInput
// Specifies a list of names of non-Azure machines for the software update configuration.
NonAzureComputerNames pulumi.StringArrayInput
// Deprecated: This property has been deprecated and will be removed in a future release. The use of either the `linux` or `windows` blocks replaces setting this value directly. This value is ignored by the provider.
OperatingSystem pulumi.StringPtrInput
// A `postTask` blocks as defined below.
PostTasks SoftwareUpdateConfigurationPostTaskArrayInput
// A `preTask` blocks as defined below.
PreTasks SoftwareUpdateConfigurationPreTaskArrayInput
// A `schedule` blocks as defined below.
Schedules SoftwareUpdateConfigurationScheduleArrayInput
// A `target` blocks as defined below.
Target SoftwareUpdateConfigurationTargetPtrInput
// Specifies a list of Azure Resource IDs of azure virtual machines.
VirtualMachineIds pulumi.StringArrayInput
// A `windows` block as defined below.
//
// > **NOTE:** One of `linux` or `windows` must be specified.
Windows SoftwareUpdateConfigurationWindowsPtrInput
}
func (SoftwareUpdateConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*softwareUpdateConfigurationArgs)(nil)).Elem()
}
type SoftwareUpdateConfigurationInput interface {
pulumi.Input
ToSoftwareUpdateConfigurationOutput() SoftwareUpdateConfigurationOutput
ToSoftwareUpdateConfigurationOutputWithContext(ctx context.Context) SoftwareUpdateConfigurationOutput
}
func (*SoftwareUpdateConfiguration) ElementType() reflect.Type {
return reflect.TypeOf((**SoftwareUpdateConfiguration)(nil)).Elem()
}
func (i *SoftwareUpdateConfiguration) ToSoftwareUpdateConfigurationOutput() SoftwareUpdateConfigurationOutput {
return i.ToSoftwareUpdateConfigurationOutputWithContext(context.Background())
}
func (i *SoftwareUpdateConfiguration) ToSoftwareUpdateConfigurationOutputWithContext(ctx context.Context) SoftwareUpdateConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(SoftwareUpdateConfigurationOutput)
}
// SoftwareUpdateConfigurationArrayInput is an input type that accepts SoftwareUpdateConfigurationArray and SoftwareUpdateConfigurationArrayOutput values.
// You can construct a concrete instance of `SoftwareUpdateConfigurationArrayInput` via:
//
// SoftwareUpdateConfigurationArray{ SoftwareUpdateConfigurationArgs{...} }
type SoftwareUpdateConfigurationArrayInput interface {
pulumi.Input
ToSoftwareUpdateConfigurationArrayOutput() SoftwareUpdateConfigurationArrayOutput
ToSoftwareUpdateConfigurationArrayOutputWithContext(context.Context) SoftwareUpdateConfigurationArrayOutput
}
type SoftwareUpdateConfigurationArray []SoftwareUpdateConfigurationInput
func (SoftwareUpdateConfigurationArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SoftwareUpdateConfiguration)(nil)).Elem()
}
func (i SoftwareUpdateConfigurationArray) ToSoftwareUpdateConfigurationArrayOutput() SoftwareUpdateConfigurationArrayOutput {
return i.ToSoftwareUpdateConfigurationArrayOutputWithContext(context.Background())
}
func (i SoftwareUpdateConfigurationArray) ToSoftwareUpdateConfigurationArrayOutputWithContext(ctx context.Context) SoftwareUpdateConfigurationArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SoftwareUpdateConfigurationArrayOutput)
}
// SoftwareUpdateConfigurationMapInput is an input type that accepts SoftwareUpdateConfigurationMap and SoftwareUpdateConfigurationMapOutput values.
// You can construct a concrete instance of `SoftwareUpdateConfigurationMapInput` via:
//
// SoftwareUpdateConfigurationMap{ "key": SoftwareUpdateConfigurationArgs{...} }
type SoftwareUpdateConfigurationMapInput interface {
pulumi.Input
ToSoftwareUpdateConfigurationMapOutput() SoftwareUpdateConfigurationMapOutput
ToSoftwareUpdateConfigurationMapOutputWithContext(context.Context) SoftwareUpdateConfigurationMapOutput
}
type SoftwareUpdateConfigurationMap map[string]SoftwareUpdateConfigurationInput
func (SoftwareUpdateConfigurationMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SoftwareUpdateConfiguration)(nil)).Elem()
}
func (i SoftwareUpdateConfigurationMap) ToSoftwareUpdateConfigurationMapOutput() SoftwareUpdateConfigurationMapOutput {
return i.ToSoftwareUpdateConfigurationMapOutputWithContext(context.Background())
}
func (i SoftwareUpdateConfigurationMap) ToSoftwareUpdateConfigurationMapOutputWithContext(ctx context.Context) SoftwareUpdateConfigurationMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SoftwareUpdateConfigurationMapOutput)
}
type SoftwareUpdateConfigurationOutput struct{ *pulumi.OutputState }
func (SoftwareUpdateConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((**SoftwareUpdateConfiguration)(nil)).Elem()
}
func (o SoftwareUpdateConfigurationOutput) ToSoftwareUpdateConfigurationOutput() SoftwareUpdateConfigurationOutput {
return o
}
func (o SoftwareUpdateConfigurationOutput) ToSoftwareUpdateConfigurationOutputWithContext(ctx context.Context) SoftwareUpdateConfigurationOutput {
return o
}
// The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.
func (o SoftwareUpdateConfigurationOutput) AutomationAccountId() pulumi.StringOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) pulumi.StringOutput { return v.AutomationAccountId }).(pulumi.StringOutput)
}
// Maximum time allowed for the software update configuration run. using format `PT[n]H[n]M[n]S` as per ISO8601. Defaults to `PT2H`.
func (o SoftwareUpdateConfigurationOutput) Duration() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) pulumi.StringPtrOutput { return v.Duration }).(pulumi.StringPtrOutput)
}
// The Error code when failed.
func (o SoftwareUpdateConfigurationOutput) ErrorCode() pulumi.StringOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) pulumi.StringOutput { return v.ErrorCode }).(pulumi.StringOutput)
}
// The Error message indicating why the operation failed.
//
// Deprecated: `errorMeesage` will be removed in favour of `errorMessage` in version 4.0 of the AzureRM Provider
func (o SoftwareUpdateConfigurationOutput) ErrorMeesage() pulumi.StringOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) pulumi.StringOutput { return v.ErrorMeesage }).(pulumi.StringOutput)
}
func (o SoftwareUpdateConfigurationOutput) ErrorMessage() pulumi.StringOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) pulumi.StringOutput { return v.ErrorMessage }).(pulumi.StringOutput)
}
// A `linux` block as defined below.
func (o SoftwareUpdateConfigurationOutput) Linuxes() SoftwareUpdateConfigurationLinuxArrayOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) SoftwareUpdateConfigurationLinuxArrayOutput { return v.Linuxes }).(SoftwareUpdateConfigurationLinuxArrayOutput)
}
// The name which should be used for this Automation. Changing this forces a new Automation to be created.
func (o SoftwareUpdateConfigurationOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Specifies a list of names of non-Azure machines for the software update configuration.
func (o SoftwareUpdateConfigurationOutput) NonAzureComputerNames() pulumi.StringArrayOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) pulumi.StringArrayOutput { return v.NonAzureComputerNames }).(pulumi.StringArrayOutput)
}
// Deprecated: This property has been deprecated and will be removed in a future release. The use of either the `linux` or `windows` blocks replaces setting this value directly. This value is ignored by the provider.
func (o SoftwareUpdateConfigurationOutput) OperatingSystem() pulumi.StringOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) pulumi.StringOutput { return v.OperatingSystem }).(pulumi.StringOutput)
}
// A `postTask` blocks as defined below.
func (o SoftwareUpdateConfigurationOutput) PostTasks() SoftwareUpdateConfigurationPostTaskArrayOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) SoftwareUpdateConfigurationPostTaskArrayOutput {
return v.PostTasks
}).(SoftwareUpdateConfigurationPostTaskArrayOutput)
}
// A `preTask` blocks as defined below.
func (o SoftwareUpdateConfigurationOutput) PreTasks() SoftwareUpdateConfigurationPreTaskArrayOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) SoftwareUpdateConfigurationPreTaskArrayOutput { return v.PreTasks }).(SoftwareUpdateConfigurationPreTaskArrayOutput)
}
// A `schedule` blocks as defined below.
func (o SoftwareUpdateConfigurationOutput) Schedules() SoftwareUpdateConfigurationScheduleArrayOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) SoftwareUpdateConfigurationScheduleArrayOutput {
return v.Schedules
}).(SoftwareUpdateConfigurationScheduleArrayOutput)
}
// A `target` blocks as defined below.
func (o SoftwareUpdateConfigurationOutput) Target() SoftwareUpdateConfigurationTargetPtrOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) SoftwareUpdateConfigurationTargetPtrOutput { return v.Target }).(SoftwareUpdateConfigurationTargetPtrOutput)
}
// Specifies a list of Azure Resource IDs of azure virtual machines.
func (o SoftwareUpdateConfigurationOutput) VirtualMachineIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) pulumi.StringArrayOutput { return v.VirtualMachineIds }).(pulumi.StringArrayOutput)
}
// A `windows` block as defined below.
//
// > **NOTE:** One of `linux` or `windows` must be specified.
func (o SoftwareUpdateConfigurationOutput) Windows() SoftwareUpdateConfigurationWindowsPtrOutput {
return o.ApplyT(func(v *SoftwareUpdateConfiguration) SoftwareUpdateConfigurationWindowsPtrOutput { return v.Windows }).(SoftwareUpdateConfigurationWindowsPtrOutput)
}
type SoftwareUpdateConfigurationArrayOutput struct{ *pulumi.OutputState }
func (SoftwareUpdateConfigurationArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SoftwareUpdateConfiguration)(nil)).Elem()
}
func (o SoftwareUpdateConfigurationArrayOutput) ToSoftwareUpdateConfigurationArrayOutput() SoftwareUpdateConfigurationArrayOutput {
return o
}
func (o SoftwareUpdateConfigurationArrayOutput) ToSoftwareUpdateConfigurationArrayOutputWithContext(ctx context.Context) SoftwareUpdateConfigurationArrayOutput {
return o
}
func (o SoftwareUpdateConfigurationArrayOutput) Index(i pulumi.IntInput) SoftwareUpdateConfigurationOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SoftwareUpdateConfiguration {
return vs[0].([]*SoftwareUpdateConfiguration)[vs[1].(int)]
}).(SoftwareUpdateConfigurationOutput)
}
type SoftwareUpdateConfigurationMapOutput struct{ *pulumi.OutputState }
func (SoftwareUpdateConfigurationMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SoftwareUpdateConfiguration)(nil)).Elem()
}
func (o SoftwareUpdateConfigurationMapOutput) ToSoftwareUpdateConfigurationMapOutput() SoftwareUpdateConfigurationMapOutput {
return o
}
func (o SoftwareUpdateConfigurationMapOutput) ToSoftwareUpdateConfigurationMapOutputWithContext(ctx context.Context) SoftwareUpdateConfigurationMapOutput {
return o
}
func (o SoftwareUpdateConfigurationMapOutput) MapIndex(k pulumi.StringInput) SoftwareUpdateConfigurationOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SoftwareUpdateConfiguration {
return vs[0].(map[string]*SoftwareUpdateConfiguration)[vs[1].(string)]
}).(SoftwareUpdateConfigurationOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*SoftwareUpdateConfigurationInput)(nil)).Elem(), &SoftwareUpdateConfiguration{})
pulumi.RegisterInputType(reflect.TypeOf((*SoftwareUpdateConfigurationArrayInput)(nil)).Elem(), SoftwareUpdateConfigurationArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SoftwareUpdateConfigurationMapInput)(nil)).Elem(), SoftwareUpdateConfigurationMap{})
pulumi.RegisterOutputType(SoftwareUpdateConfigurationOutput{})
pulumi.RegisterOutputType(SoftwareUpdateConfigurationArrayOutput{})
pulumi.RegisterOutputType(SoftwareUpdateConfigurationMapOutput{})
}