/
railsAppLayer.go
679 lines (602 loc) · 33.4 KB
/
railsAppLayer.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
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
// 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 opsworks
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides an OpsWorks Ruby on Rails application layer resource.
//
// ## Example Usage
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opsworks"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := opsworks.NewRailsAppLayer(ctx, "app", &opsworks.RailsAppLayerArgs{
// StackId: pulumi.Any(main.Id),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
type RailsAppLayer struct {
pulumi.CustomResourceState
// Keyword for the app server to use. Defaults to "apachePassenger".
AppServer pulumi.StringPtrOutput `pulumi:"appServer"`
// The Amazon Resource Name(ARN) of the layer.
Arn pulumi.StringOutput `pulumi:"arn"`
// Whether to automatically assign an elastic IP address to the layer's instances.
AutoAssignElasticIps pulumi.BoolPtrOutput `pulumi:"autoAssignElasticIps"`
// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
AutoAssignPublicIps pulumi.BoolPtrOutput `pulumi:"autoAssignPublicIps"`
// Whether to enable auto-healing for the layer.
AutoHealing pulumi.BoolPtrOutput `pulumi:"autoHealing"`
// When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
BundlerVersion pulumi.StringPtrOutput `pulumi:"bundlerVersion"`
CloudwatchConfiguration RailsAppLayerCloudwatchConfigurationPtrOutput `pulumi:"cloudwatchConfiguration"`
CustomConfigureRecipes pulumi.StringArrayOutput `pulumi:"customConfigureRecipes"`
CustomDeployRecipes pulumi.StringArrayOutput `pulumi:"customDeployRecipes"`
// The ARN of an IAM profile that will be used for the layer's instances.
CustomInstanceProfileArn pulumi.StringPtrOutput `pulumi:"customInstanceProfileArn"`
// Custom JSON attributes to apply to the layer.
CustomJson pulumi.StringPtrOutput `pulumi:"customJson"`
// Ids for a set of security groups to apply to the layer's instances.
CustomSecurityGroupIds pulumi.StringArrayOutput `pulumi:"customSecurityGroupIds"`
CustomSetupRecipes pulumi.StringArrayOutput `pulumi:"customSetupRecipes"`
CustomShutdownRecipes pulumi.StringArrayOutput `pulumi:"customShutdownRecipes"`
CustomUndeployRecipes pulumi.StringArrayOutput `pulumi:"customUndeployRecipes"`
// Whether to enable Elastic Load Balancing connection draining.
DrainElbOnShutdown pulumi.BoolPtrOutput `pulumi:"drainElbOnShutdown"`
// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
EbsVolumes RailsAppLayerEbsVolumeArrayOutput `pulumi:"ebsVolumes"`
// Name of an Elastic Load Balancer to attach to this layer
ElasticLoadBalancer pulumi.StringPtrOutput `pulumi:"elasticLoadBalancer"`
// Whether to install OS and package updates on each instance when it boots.
InstallUpdatesOnBoot pulumi.BoolPtrOutput `pulumi:"installUpdatesOnBoot"`
// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
InstanceShutdownTimeout pulumi.IntPtrOutput `pulumi:"instanceShutdownTimeout"`
LoadBasedAutoScaling RailsAppLayerLoadBasedAutoScalingOutput `pulumi:"loadBasedAutoScaling"`
// Whether OpsWorks should manage bundler. On by default.
ManageBundler pulumi.BoolPtrOutput `pulumi:"manageBundler"`
// A human-readable name for the layer.
Name pulumi.StringOutput `pulumi:"name"`
// The version of Passenger to use. Defaults to "4.0.46".
PassengerVersion pulumi.StringPtrOutput `pulumi:"passengerVersion"`
// The version of Ruby to use. Defaults to "2.0.0".
RubyVersion pulumi.StringPtrOutput `pulumi:"rubyVersion"`
// The version of RubyGems to use. Defaults to "2.2.2".
RubygemsVersion pulumi.StringPtrOutput `pulumi:"rubygemsVersion"`
// ID of the stack the layer will belong to.
StackId pulumi.StringOutput `pulumi:"stackId"`
// Names of a set of system packages to install on the layer's instances.
SystemPackages pulumi.StringArrayOutput `pulumi:"systemPackages"`
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
//
// The following extra optional arguments, all lists of Chef recipe names, allow
// custom Chef recipes to be applied to layer instances at the five different
// lifecycle events, if custom cookbooks are enabled on the layer's stack:
Tags pulumi.StringMapOutput `pulumi:"tags"`
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
//
// Deprecated: Please use `tags` instead.
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
// Whether to use EBS-optimized instances.
UseEbsOptimizedInstances pulumi.BoolPtrOutput `pulumi:"useEbsOptimizedInstances"`
}
// NewRailsAppLayer registers a new resource with the given unique name, arguments, and options.
func NewRailsAppLayer(ctx *pulumi.Context,
name string, args *RailsAppLayerArgs, opts ...pulumi.ResourceOption) (*RailsAppLayer, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.StackId == nil {
return nil, errors.New("invalid value for required argument 'StackId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource RailsAppLayer
err := ctx.RegisterResource("aws:opsworks/railsAppLayer:RailsAppLayer", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetRailsAppLayer gets an existing RailsAppLayer 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 GetRailsAppLayer(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *RailsAppLayerState, opts ...pulumi.ResourceOption) (*RailsAppLayer, error) {
var resource RailsAppLayer
err := ctx.ReadResource("aws:opsworks/railsAppLayer:RailsAppLayer", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering RailsAppLayer resources.
type railsAppLayerState struct {
// Keyword for the app server to use. Defaults to "apachePassenger".
AppServer *string `pulumi:"appServer"`
// The Amazon Resource Name(ARN) of the layer.
Arn *string `pulumi:"arn"`
// Whether to automatically assign an elastic IP address to the layer's instances.
AutoAssignElasticIps *bool `pulumi:"autoAssignElasticIps"`
// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
AutoAssignPublicIps *bool `pulumi:"autoAssignPublicIps"`
// Whether to enable auto-healing for the layer.
AutoHealing *bool `pulumi:"autoHealing"`
// When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
BundlerVersion *string `pulumi:"bundlerVersion"`
CloudwatchConfiguration *RailsAppLayerCloudwatchConfiguration `pulumi:"cloudwatchConfiguration"`
CustomConfigureRecipes []string `pulumi:"customConfigureRecipes"`
CustomDeployRecipes []string `pulumi:"customDeployRecipes"`
// The ARN of an IAM profile that will be used for the layer's instances.
CustomInstanceProfileArn *string `pulumi:"customInstanceProfileArn"`
// Custom JSON attributes to apply to the layer.
CustomJson *string `pulumi:"customJson"`
// Ids for a set of security groups to apply to the layer's instances.
CustomSecurityGroupIds []string `pulumi:"customSecurityGroupIds"`
CustomSetupRecipes []string `pulumi:"customSetupRecipes"`
CustomShutdownRecipes []string `pulumi:"customShutdownRecipes"`
CustomUndeployRecipes []string `pulumi:"customUndeployRecipes"`
// Whether to enable Elastic Load Balancing connection draining.
DrainElbOnShutdown *bool `pulumi:"drainElbOnShutdown"`
// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
EbsVolumes []RailsAppLayerEbsVolume `pulumi:"ebsVolumes"`
// Name of an Elastic Load Balancer to attach to this layer
ElasticLoadBalancer *string `pulumi:"elasticLoadBalancer"`
// Whether to install OS and package updates on each instance when it boots.
InstallUpdatesOnBoot *bool `pulumi:"installUpdatesOnBoot"`
// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
InstanceShutdownTimeout *int `pulumi:"instanceShutdownTimeout"`
LoadBasedAutoScaling *RailsAppLayerLoadBasedAutoScaling `pulumi:"loadBasedAutoScaling"`
// Whether OpsWorks should manage bundler. On by default.
ManageBundler *bool `pulumi:"manageBundler"`
// A human-readable name for the layer.
Name *string `pulumi:"name"`
// The version of Passenger to use. Defaults to "4.0.46".
PassengerVersion *string `pulumi:"passengerVersion"`
// The version of Ruby to use. Defaults to "2.0.0".
RubyVersion *string `pulumi:"rubyVersion"`
// The version of RubyGems to use. Defaults to "2.2.2".
RubygemsVersion *string `pulumi:"rubygemsVersion"`
// ID of the stack the layer will belong to.
StackId *string `pulumi:"stackId"`
// Names of a set of system packages to install on the layer's instances.
SystemPackages []string `pulumi:"systemPackages"`
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
//
// The following extra optional arguments, all lists of Chef recipe names, allow
// custom Chef recipes to be applied to layer instances at the five different
// lifecycle events, if custom cookbooks are enabled on the layer's stack:
Tags map[string]string `pulumi:"tags"`
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
//
// Deprecated: Please use `tags` instead.
TagsAll map[string]string `pulumi:"tagsAll"`
// Whether to use EBS-optimized instances.
UseEbsOptimizedInstances *bool `pulumi:"useEbsOptimizedInstances"`
}
type RailsAppLayerState struct {
// Keyword for the app server to use. Defaults to "apachePassenger".
AppServer pulumi.StringPtrInput
// The Amazon Resource Name(ARN) of the layer.
Arn pulumi.StringPtrInput
// Whether to automatically assign an elastic IP address to the layer's instances.
AutoAssignElasticIps pulumi.BoolPtrInput
// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
AutoAssignPublicIps pulumi.BoolPtrInput
// Whether to enable auto-healing for the layer.
AutoHealing pulumi.BoolPtrInput
// When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
BundlerVersion pulumi.StringPtrInput
CloudwatchConfiguration RailsAppLayerCloudwatchConfigurationPtrInput
CustomConfigureRecipes pulumi.StringArrayInput
CustomDeployRecipes pulumi.StringArrayInput
// The ARN of an IAM profile that will be used for the layer's instances.
CustomInstanceProfileArn pulumi.StringPtrInput
// Custom JSON attributes to apply to the layer.
CustomJson pulumi.StringPtrInput
// Ids for a set of security groups to apply to the layer's instances.
CustomSecurityGroupIds pulumi.StringArrayInput
CustomSetupRecipes pulumi.StringArrayInput
CustomShutdownRecipes pulumi.StringArrayInput
CustomUndeployRecipes pulumi.StringArrayInput
// Whether to enable Elastic Load Balancing connection draining.
DrainElbOnShutdown pulumi.BoolPtrInput
// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
EbsVolumes RailsAppLayerEbsVolumeArrayInput
// Name of an Elastic Load Balancer to attach to this layer
ElasticLoadBalancer pulumi.StringPtrInput
// Whether to install OS and package updates on each instance when it boots.
InstallUpdatesOnBoot pulumi.BoolPtrInput
// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
InstanceShutdownTimeout pulumi.IntPtrInput
LoadBasedAutoScaling RailsAppLayerLoadBasedAutoScalingPtrInput
// Whether OpsWorks should manage bundler. On by default.
ManageBundler pulumi.BoolPtrInput
// A human-readable name for the layer.
Name pulumi.StringPtrInput
// The version of Passenger to use. Defaults to "4.0.46".
PassengerVersion pulumi.StringPtrInput
// The version of Ruby to use. Defaults to "2.0.0".
RubyVersion pulumi.StringPtrInput
// The version of RubyGems to use. Defaults to "2.2.2".
RubygemsVersion pulumi.StringPtrInput
// ID of the stack the layer will belong to.
StackId pulumi.StringPtrInput
// Names of a set of system packages to install on the layer's instances.
SystemPackages pulumi.StringArrayInput
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
//
// The following extra optional arguments, all lists of Chef recipe names, allow
// custom Chef recipes to be applied to layer instances at the five different
// lifecycle events, if custom cookbooks are enabled on the layer's stack:
Tags pulumi.StringMapInput
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
//
// Deprecated: Please use `tags` instead.
TagsAll pulumi.StringMapInput
// Whether to use EBS-optimized instances.
UseEbsOptimizedInstances pulumi.BoolPtrInput
}
func (RailsAppLayerState) ElementType() reflect.Type {
return reflect.TypeOf((*railsAppLayerState)(nil)).Elem()
}
type railsAppLayerArgs struct {
// Keyword for the app server to use. Defaults to "apachePassenger".
AppServer *string `pulumi:"appServer"`
// Whether to automatically assign an elastic IP address to the layer's instances.
AutoAssignElasticIps *bool `pulumi:"autoAssignElasticIps"`
// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
AutoAssignPublicIps *bool `pulumi:"autoAssignPublicIps"`
// Whether to enable auto-healing for the layer.
AutoHealing *bool `pulumi:"autoHealing"`
// When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
BundlerVersion *string `pulumi:"bundlerVersion"`
CloudwatchConfiguration *RailsAppLayerCloudwatchConfiguration `pulumi:"cloudwatchConfiguration"`
CustomConfigureRecipes []string `pulumi:"customConfigureRecipes"`
CustomDeployRecipes []string `pulumi:"customDeployRecipes"`
// The ARN of an IAM profile that will be used for the layer's instances.
CustomInstanceProfileArn *string `pulumi:"customInstanceProfileArn"`
// Custom JSON attributes to apply to the layer.
CustomJson *string `pulumi:"customJson"`
// Ids for a set of security groups to apply to the layer's instances.
CustomSecurityGroupIds []string `pulumi:"customSecurityGroupIds"`
CustomSetupRecipes []string `pulumi:"customSetupRecipes"`
CustomShutdownRecipes []string `pulumi:"customShutdownRecipes"`
CustomUndeployRecipes []string `pulumi:"customUndeployRecipes"`
// Whether to enable Elastic Load Balancing connection draining.
DrainElbOnShutdown *bool `pulumi:"drainElbOnShutdown"`
// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
EbsVolumes []RailsAppLayerEbsVolume `pulumi:"ebsVolumes"`
// Name of an Elastic Load Balancer to attach to this layer
ElasticLoadBalancer *string `pulumi:"elasticLoadBalancer"`
// Whether to install OS and package updates on each instance when it boots.
InstallUpdatesOnBoot *bool `pulumi:"installUpdatesOnBoot"`
// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
InstanceShutdownTimeout *int `pulumi:"instanceShutdownTimeout"`
LoadBasedAutoScaling *RailsAppLayerLoadBasedAutoScaling `pulumi:"loadBasedAutoScaling"`
// Whether OpsWorks should manage bundler. On by default.
ManageBundler *bool `pulumi:"manageBundler"`
// A human-readable name for the layer.
Name *string `pulumi:"name"`
// The version of Passenger to use. Defaults to "4.0.46".
PassengerVersion *string `pulumi:"passengerVersion"`
// The version of Ruby to use. Defaults to "2.0.0".
RubyVersion *string `pulumi:"rubyVersion"`
// The version of RubyGems to use. Defaults to "2.2.2".
RubygemsVersion *string `pulumi:"rubygemsVersion"`
// ID of the stack the layer will belong to.
StackId string `pulumi:"stackId"`
// Names of a set of system packages to install on the layer's instances.
SystemPackages []string `pulumi:"systemPackages"`
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
//
// The following extra optional arguments, all lists of Chef recipe names, allow
// custom Chef recipes to be applied to layer instances at the five different
// lifecycle events, if custom cookbooks are enabled on the layer's stack:
Tags map[string]string `pulumi:"tags"`
// Whether to use EBS-optimized instances.
UseEbsOptimizedInstances *bool `pulumi:"useEbsOptimizedInstances"`
}
// The set of arguments for constructing a RailsAppLayer resource.
type RailsAppLayerArgs struct {
// Keyword for the app server to use. Defaults to "apachePassenger".
AppServer pulumi.StringPtrInput
// Whether to automatically assign an elastic IP address to the layer's instances.
AutoAssignElasticIps pulumi.BoolPtrInput
// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
AutoAssignPublicIps pulumi.BoolPtrInput
// Whether to enable auto-healing for the layer.
AutoHealing pulumi.BoolPtrInput
// When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
BundlerVersion pulumi.StringPtrInput
CloudwatchConfiguration RailsAppLayerCloudwatchConfigurationPtrInput
CustomConfigureRecipes pulumi.StringArrayInput
CustomDeployRecipes pulumi.StringArrayInput
// The ARN of an IAM profile that will be used for the layer's instances.
CustomInstanceProfileArn pulumi.StringPtrInput
// Custom JSON attributes to apply to the layer.
CustomJson pulumi.StringPtrInput
// Ids for a set of security groups to apply to the layer's instances.
CustomSecurityGroupIds pulumi.StringArrayInput
CustomSetupRecipes pulumi.StringArrayInput
CustomShutdownRecipes pulumi.StringArrayInput
CustomUndeployRecipes pulumi.StringArrayInput
// Whether to enable Elastic Load Balancing connection draining.
DrainElbOnShutdown pulumi.BoolPtrInput
// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
EbsVolumes RailsAppLayerEbsVolumeArrayInput
// Name of an Elastic Load Balancer to attach to this layer
ElasticLoadBalancer pulumi.StringPtrInput
// Whether to install OS and package updates on each instance when it boots.
InstallUpdatesOnBoot pulumi.BoolPtrInput
// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
InstanceShutdownTimeout pulumi.IntPtrInput
LoadBasedAutoScaling RailsAppLayerLoadBasedAutoScalingPtrInput
// Whether OpsWorks should manage bundler. On by default.
ManageBundler pulumi.BoolPtrInput
// A human-readable name for the layer.
Name pulumi.StringPtrInput
// The version of Passenger to use. Defaults to "4.0.46".
PassengerVersion pulumi.StringPtrInput
// The version of Ruby to use. Defaults to "2.0.0".
RubyVersion pulumi.StringPtrInput
// The version of RubyGems to use. Defaults to "2.2.2".
RubygemsVersion pulumi.StringPtrInput
// ID of the stack the layer will belong to.
StackId pulumi.StringInput
// Names of a set of system packages to install on the layer's instances.
SystemPackages pulumi.StringArrayInput
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
//
// The following extra optional arguments, all lists of Chef recipe names, allow
// custom Chef recipes to be applied to layer instances at the five different
// lifecycle events, if custom cookbooks are enabled on the layer's stack:
Tags pulumi.StringMapInput
// Whether to use EBS-optimized instances.
UseEbsOptimizedInstances pulumi.BoolPtrInput
}
func (RailsAppLayerArgs) ElementType() reflect.Type {
return reflect.TypeOf((*railsAppLayerArgs)(nil)).Elem()
}
type RailsAppLayerInput interface {
pulumi.Input
ToRailsAppLayerOutput() RailsAppLayerOutput
ToRailsAppLayerOutputWithContext(ctx context.Context) RailsAppLayerOutput
}
func (*RailsAppLayer) ElementType() reflect.Type {
return reflect.TypeOf((**RailsAppLayer)(nil)).Elem()
}
func (i *RailsAppLayer) ToRailsAppLayerOutput() RailsAppLayerOutput {
return i.ToRailsAppLayerOutputWithContext(context.Background())
}
func (i *RailsAppLayer) ToRailsAppLayerOutputWithContext(ctx context.Context) RailsAppLayerOutput {
return pulumi.ToOutputWithContext(ctx, i).(RailsAppLayerOutput)
}
// RailsAppLayerArrayInput is an input type that accepts RailsAppLayerArray and RailsAppLayerArrayOutput values.
// You can construct a concrete instance of `RailsAppLayerArrayInput` via:
//
// RailsAppLayerArray{ RailsAppLayerArgs{...} }
type RailsAppLayerArrayInput interface {
pulumi.Input
ToRailsAppLayerArrayOutput() RailsAppLayerArrayOutput
ToRailsAppLayerArrayOutputWithContext(context.Context) RailsAppLayerArrayOutput
}
type RailsAppLayerArray []RailsAppLayerInput
func (RailsAppLayerArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*RailsAppLayer)(nil)).Elem()
}
func (i RailsAppLayerArray) ToRailsAppLayerArrayOutput() RailsAppLayerArrayOutput {
return i.ToRailsAppLayerArrayOutputWithContext(context.Background())
}
func (i RailsAppLayerArray) ToRailsAppLayerArrayOutputWithContext(ctx context.Context) RailsAppLayerArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(RailsAppLayerArrayOutput)
}
// RailsAppLayerMapInput is an input type that accepts RailsAppLayerMap and RailsAppLayerMapOutput values.
// You can construct a concrete instance of `RailsAppLayerMapInput` via:
//
// RailsAppLayerMap{ "key": RailsAppLayerArgs{...} }
type RailsAppLayerMapInput interface {
pulumi.Input
ToRailsAppLayerMapOutput() RailsAppLayerMapOutput
ToRailsAppLayerMapOutputWithContext(context.Context) RailsAppLayerMapOutput
}
type RailsAppLayerMap map[string]RailsAppLayerInput
func (RailsAppLayerMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*RailsAppLayer)(nil)).Elem()
}
func (i RailsAppLayerMap) ToRailsAppLayerMapOutput() RailsAppLayerMapOutput {
return i.ToRailsAppLayerMapOutputWithContext(context.Background())
}
func (i RailsAppLayerMap) ToRailsAppLayerMapOutputWithContext(ctx context.Context) RailsAppLayerMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(RailsAppLayerMapOutput)
}
type RailsAppLayerOutput struct{ *pulumi.OutputState }
func (RailsAppLayerOutput) ElementType() reflect.Type {
return reflect.TypeOf((**RailsAppLayer)(nil)).Elem()
}
func (o RailsAppLayerOutput) ToRailsAppLayerOutput() RailsAppLayerOutput {
return o
}
func (o RailsAppLayerOutput) ToRailsAppLayerOutputWithContext(ctx context.Context) RailsAppLayerOutput {
return o
}
// Keyword for the app server to use. Defaults to "apachePassenger".
func (o RailsAppLayerOutput) AppServer() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringPtrOutput { return v.AppServer }).(pulumi.StringPtrOutput)
}
// The Amazon Resource Name(ARN) of the layer.
func (o RailsAppLayerOutput) Arn() pulumi.StringOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
}
// Whether to automatically assign an elastic IP address to the layer's instances.
func (o RailsAppLayerOutput) AutoAssignElasticIps() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.BoolPtrOutput { return v.AutoAssignElasticIps }).(pulumi.BoolPtrOutput)
}
// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
func (o RailsAppLayerOutput) AutoAssignPublicIps() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.BoolPtrOutput { return v.AutoAssignPublicIps }).(pulumi.BoolPtrOutput)
}
// Whether to enable auto-healing for the layer.
func (o RailsAppLayerOutput) AutoHealing() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.BoolPtrOutput { return v.AutoHealing }).(pulumi.BoolPtrOutput)
}
// When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
func (o RailsAppLayerOutput) BundlerVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringPtrOutput { return v.BundlerVersion }).(pulumi.StringPtrOutput)
}
func (o RailsAppLayerOutput) CloudwatchConfiguration() RailsAppLayerCloudwatchConfigurationPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) RailsAppLayerCloudwatchConfigurationPtrOutput { return v.CloudwatchConfiguration }).(RailsAppLayerCloudwatchConfigurationPtrOutput)
}
func (o RailsAppLayerOutput) CustomConfigureRecipes() pulumi.StringArrayOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringArrayOutput { return v.CustomConfigureRecipes }).(pulumi.StringArrayOutput)
}
func (o RailsAppLayerOutput) CustomDeployRecipes() pulumi.StringArrayOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringArrayOutput { return v.CustomDeployRecipes }).(pulumi.StringArrayOutput)
}
// The ARN of an IAM profile that will be used for the layer's instances.
func (o RailsAppLayerOutput) CustomInstanceProfileArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringPtrOutput { return v.CustomInstanceProfileArn }).(pulumi.StringPtrOutput)
}
// Custom JSON attributes to apply to the layer.
func (o RailsAppLayerOutput) CustomJson() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringPtrOutput { return v.CustomJson }).(pulumi.StringPtrOutput)
}
// Ids for a set of security groups to apply to the layer's instances.
func (o RailsAppLayerOutput) CustomSecurityGroupIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringArrayOutput { return v.CustomSecurityGroupIds }).(pulumi.StringArrayOutput)
}
func (o RailsAppLayerOutput) CustomSetupRecipes() pulumi.StringArrayOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringArrayOutput { return v.CustomSetupRecipes }).(pulumi.StringArrayOutput)
}
func (o RailsAppLayerOutput) CustomShutdownRecipes() pulumi.StringArrayOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringArrayOutput { return v.CustomShutdownRecipes }).(pulumi.StringArrayOutput)
}
func (o RailsAppLayerOutput) CustomUndeployRecipes() pulumi.StringArrayOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringArrayOutput { return v.CustomUndeployRecipes }).(pulumi.StringArrayOutput)
}
// Whether to enable Elastic Load Balancing connection draining.
func (o RailsAppLayerOutput) DrainElbOnShutdown() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.BoolPtrOutput { return v.DrainElbOnShutdown }).(pulumi.BoolPtrOutput)
}
// `ebsVolume` blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
func (o RailsAppLayerOutput) EbsVolumes() RailsAppLayerEbsVolumeArrayOutput {
return o.ApplyT(func(v *RailsAppLayer) RailsAppLayerEbsVolumeArrayOutput { return v.EbsVolumes }).(RailsAppLayerEbsVolumeArrayOutput)
}
// Name of an Elastic Load Balancer to attach to this layer
func (o RailsAppLayerOutput) ElasticLoadBalancer() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringPtrOutput { return v.ElasticLoadBalancer }).(pulumi.StringPtrOutput)
}
// Whether to install OS and package updates on each instance when it boots.
func (o RailsAppLayerOutput) InstallUpdatesOnBoot() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.BoolPtrOutput { return v.InstallUpdatesOnBoot }).(pulumi.BoolPtrOutput)
}
// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
func (o RailsAppLayerOutput) InstanceShutdownTimeout() pulumi.IntPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.IntPtrOutput { return v.InstanceShutdownTimeout }).(pulumi.IntPtrOutput)
}
func (o RailsAppLayerOutput) LoadBasedAutoScaling() RailsAppLayerLoadBasedAutoScalingOutput {
return o.ApplyT(func(v *RailsAppLayer) RailsAppLayerLoadBasedAutoScalingOutput { return v.LoadBasedAutoScaling }).(RailsAppLayerLoadBasedAutoScalingOutput)
}
// Whether OpsWorks should manage bundler. On by default.
func (o RailsAppLayerOutput) ManageBundler() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.BoolPtrOutput { return v.ManageBundler }).(pulumi.BoolPtrOutput)
}
// A human-readable name for the layer.
func (o RailsAppLayerOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The version of Passenger to use. Defaults to "4.0.46".
func (o RailsAppLayerOutput) PassengerVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringPtrOutput { return v.PassengerVersion }).(pulumi.StringPtrOutput)
}
// The version of Ruby to use. Defaults to "2.0.0".
func (o RailsAppLayerOutput) RubyVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringPtrOutput { return v.RubyVersion }).(pulumi.StringPtrOutput)
}
// The version of RubyGems to use. Defaults to "2.2.2".
func (o RailsAppLayerOutput) RubygemsVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringPtrOutput { return v.RubygemsVersion }).(pulumi.StringPtrOutput)
}
// ID of the stack the layer will belong to.
func (o RailsAppLayerOutput) StackId() pulumi.StringOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringOutput { return v.StackId }).(pulumi.StringOutput)
}
// Names of a set of system packages to install on the layer's instances.
func (o RailsAppLayerOutput) SystemPackages() pulumi.StringArrayOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringArrayOutput { return v.SystemPackages }).(pulumi.StringArrayOutput)
}
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
//
// The following extra optional arguments, all lists of Chef recipe names, allow
// custom Chef recipes to be applied to layer instances at the five different
// lifecycle events, if custom cookbooks are enabled on the layer's stack:
func (o RailsAppLayerOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
//
// Deprecated: Please use `tags` instead.
func (o RailsAppLayerOutput) TagsAll() pulumi.StringMapOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
}
// Whether to use EBS-optimized instances.
func (o RailsAppLayerOutput) UseEbsOptimizedInstances() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *RailsAppLayer) pulumi.BoolPtrOutput { return v.UseEbsOptimizedInstances }).(pulumi.BoolPtrOutput)
}
type RailsAppLayerArrayOutput struct{ *pulumi.OutputState }
func (RailsAppLayerArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*RailsAppLayer)(nil)).Elem()
}
func (o RailsAppLayerArrayOutput) ToRailsAppLayerArrayOutput() RailsAppLayerArrayOutput {
return o
}
func (o RailsAppLayerArrayOutput) ToRailsAppLayerArrayOutputWithContext(ctx context.Context) RailsAppLayerArrayOutput {
return o
}
func (o RailsAppLayerArrayOutput) Index(i pulumi.IntInput) RailsAppLayerOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RailsAppLayer {
return vs[0].([]*RailsAppLayer)[vs[1].(int)]
}).(RailsAppLayerOutput)
}
type RailsAppLayerMapOutput struct{ *pulumi.OutputState }
func (RailsAppLayerMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*RailsAppLayer)(nil)).Elem()
}
func (o RailsAppLayerMapOutput) ToRailsAppLayerMapOutput() RailsAppLayerMapOutput {
return o
}
func (o RailsAppLayerMapOutput) ToRailsAppLayerMapOutputWithContext(ctx context.Context) RailsAppLayerMapOutput {
return o
}
func (o RailsAppLayerMapOutput) MapIndex(k pulumi.StringInput) RailsAppLayerOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RailsAppLayer {
return vs[0].(map[string]*RailsAppLayer)[vs[1].(string)]
}).(RailsAppLayerOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*RailsAppLayerInput)(nil)).Elem(), &RailsAppLayer{})
pulumi.RegisterInputType(reflect.TypeOf((*RailsAppLayerArrayInput)(nil)).Elem(), RailsAppLayerArray{})
pulumi.RegisterInputType(reflect.TypeOf((*RailsAppLayerMapInput)(nil)).Elem(), RailsAppLayerMap{})
pulumi.RegisterOutputType(RailsAppLayerOutput{})
pulumi.RegisterOutputType(RailsAppLayerArrayOutput{})
pulumi.RegisterOutputType(RailsAppLayerMapOutput{})
}