-
Notifications
You must be signed in to change notification settings - Fork 112
/
zz_customlayer_types.go
executable file
·791 lines (566 loc) · 40.4 KB
/
zz_customlayer_types.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
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type CloudwatchConfigurationInitParameters struct {
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// A block the specifies how an opsworks logs look like. See Log Streams.
LogStreams []LogStreamsInitParameters `json:"logStreams,omitempty" tf:"log_streams,omitempty"`
}
type CloudwatchConfigurationObservation struct {
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// A block the specifies how an opsworks logs look like. See Log Streams.
LogStreams []LogStreamsObservation `json:"logStreams,omitempty" tf:"log_streams,omitempty"`
}
type CloudwatchConfigurationParameters struct {
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// A block the specifies how an opsworks logs look like. See Log Streams.
// +kubebuilder:validation:Optional
LogStreams []LogStreamsParameters `json:"logStreams,omitempty" tf:"log_streams,omitempty"`
}
type CustomLayerInitParameters struct {
// Whether to automatically assign an elastic IP address to the layer's instances.
AutoAssignElasticIps *bool `json:"autoAssignElasticIps,omitempty" tf:"auto_assign_elastic_ips,omitempty"`
// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
AutoAssignPublicIps *bool `json:"autoAssignPublicIps,omitempty" tf:"auto_assign_public_ips,omitempty"`
// Whether to enable auto-healing for the layer.
AutoHealing *bool `json:"autoHealing,omitempty" tf:"auto_healing,omitempty"`
// Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
CloudwatchConfiguration []CloudwatchConfigurationInitParameters `json:"cloudwatchConfiguration,omitempty" tf:"cloudwatch_configuration,omitempty"`
CustomConfigureRecipes []*string `json:"customConfigureRecipes,omitempty" tf:"custom_configure_recipes,omitempty"`
CustomDeployRecipes []*string `json:"customDeployRecipes,omitempty" tf:"custom_deploy_recipes,omitempty"`
// The ARN of an IAM profile that will be used for the layer's instances.
CustomInstanceProfileArn *string `json:"customInstanceProfileArn,omitempty" tf:"custom_instance_profile_arn,omitempty"`
// Custom JSON attributes to apply to the layer.
CustomJSON *string `json:"customJson,omitempty" tf:"custom_json,omitempty"`
// References to SecurityGroup in ec2 to populate customSecurityGroupIds.
// +kubebuilder:validation:Optional
CustomSecurityGroupIDRefs []v1.Reference `json:"customSecurityGroupIdRefs,omitempty" tf:"-"`
// Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds.
// +kubebuilder:validation:Optional
CustomSecurityGroupIDSelector *v1.Selector `json:"customSecurityGroupIdSelector,omitempty" tf:"-"`
// Ids for a set of security groups to apply to the layer's instances.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup
// +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs
// +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector
// +listType=set
CustomSecurityGroupIds []*string `json:"customSecurityGroupIds,omitempty" tf:"custom_security_group_ids,omitempty"`
CustomSetupRecipes []*string `json:"customSetupRecipes,omitempty" tf:"custom_setup_recipes,omitempty"`
CustomShutdownRecipes []*string `json:"customShutdownRecipes,omitempty" tf:"custom_shutdown_recipes,omitempty"`
CustomUndeployRecipes []*string `json:"customUndeployRecipes,omitempty" tf:"custom_undeploy_recipes,omitempty"`
// Whether to enable Elastic Load Balancing connection draining.
DrainELBOnShutdown *bool `json:"drainElbOnShutdown,omitempty" tf:"drain_elb_on_shutdown,omitempty"`
// Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
EBSVolume []EBSVolumeInitParameters `json:"ebsVolume,omitempty" tf:"ebs_volume,omitempty"`
// Name of an Elastic Load Balancer to attach to this layer
ElasticLoadBalancer *string `json:"elasticLoadBalancer,omitempty" tf:"elastic_load_balancer,omitempty"`
// Whether to install OS and package updates on each instance when it boots.
InstallUpdatesOnBoot *bool `json:"installUpdatesOnBoot,omitempty" tf:"install_updates_on_boot,omitempty"`
// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
InstanceShutdownTimeout *float64 `json:"instanceShutdownTimeout,omitempty" tf:"instance_shutdown_timeout,omitempty"`
// Load-based auto scaling configuration. See Load Based AutoScaling
LoadBasedAutoScaling []LoadBasedAutoScalingInitParameters `json:"loadBasedAutoScaling,omitempty" tf:"load_based_auto_scaling,omitempty"`
// A human-readable name for the layer.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
ShortName *string `json:"shortName,omitempty" tf:"short_name,omitempty"`
// ID of the stack the layer will belong to.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
StackID *string `json:"stackId,omitempty" tf:"stack_id,omitempty"`
// Reference to a Stack in opsworks to populate stackId.
// +kubebuilder:validation:Optional
StackIDRef *v1.Reference `json:"stackIdRef,omitempty" tf:"-"`
// Selector for a Stack in opsworks to populate stackId.
// +kubebuilder:validation:Optional
StackIDSelector *v1.Selector `json:"stackIdSelector,omitempty" tf:"-"`
// Names of a set of system packages to install on the layer's instances.
// +listType=set
SystemPackages []*string `json:"systemPackages,omitempty" tf:"system_packages,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Whether to use EBS-optimized instances.
UseEBSOptimizedInstances *bool `json:"useEbsOptimizedInstances,omitempty" tf:"use_ebs_optimized_instances,omitempty"`
}
type CustomLayerObservation struct {
// The Amazon Resource Name(ARN) of the layer.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Whether to automatically assign an elastic IP address to the layer's instances.
AutoAssignElasticIps *bool `json:"autoAssignElasticIps,omitempty" tf:"auto_assign_elastic_ips,omitempty"`
// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
AutoAssignPublicIps *bool `json:"autoAssignPublicIps,omitempty" tf:"auto_assign_public_ips,omitempty"`
// Whether to enable auto-healing for the layer.
AutoHealing *bool `json:"autoHealing,omitempty" tf:"auto_healing,omitempty"`
// Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
CloudwatchConfiguration []CloudwatchConfigurationObservation `json:"cloudwatchConfiguration,omitempty" tf:"cloudwatch_configuration,omitempty"`
CustomConfigureRecipes []*string `json:"customConfigureRecipes,omitempty" tf:"custom_configure_recipes,omitempty"`
CustomDeployRecipes []*string `json:"customDeployRecipes,omitempty" tf:"custom_deploy_recipes,omitempty"`
// The ARN of an IAM profile that will be used for the layer's instances.
CustomInstanceProfileArn *string `json:"customInstanceProfileArn,omitempty" tf:"custom_instance_profile_arn,omitempty"`
// Custom JSON attributes to apply to the layer.
CustomJSON *string `json:"customJson,omitempty" tf:"custom_json,omitempty"`
// Ids for a set of security groups to apply to the layer's instances.
// +listType=set
CustomSecurityGroupIds []*string `json:"customSecurityGroupIds,omitempty" tf:"custom_security_group_ids,omitempty"`
CustomSetupRecipes []*string `json:"customSetupRecipes,omitempty" tf:"custom_setup_recipes,omitempty"`
CustomShutdownRecipes []*string `json:"customShutdownRecipes,omitempty" tf:"custom_shutdown_recipes,omitempty"`
CustomUndeployRecipes []*string `json:"customUndeployRecipes,omitempty" tf:"custom_undeploy_recipes,omitempty"`
// Whether to enable Elastic Load Balancing connection draining.
DrainELBOnShutdown *bool `json:"drainElbOnShutdown,omitempty" tf:"drain_elb_on_shutdown,omitempty"`
// Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
EBSVolume []EBSVolumeObservation `json:"ebsVolume,omitempty" tf:"ebs_volume,omitempty"`
// Name of an Elastic Load Balancer to attach to this layer
ElasticLoadBalancer *string `json:"elasticLoadBalancer,omitempty" tf:"elastic_load_balancer,omitempty"`
// The id of the layer.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Whether to install OS and package updates on each instance when it boots.
InstallUpdatesOnBoot *bool `json:"installUpdatesOnBoot,omitempty" tf:"install_updates_on_boot,omitempty"`
// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
InstanceShutdownTimeout *float64 `json:"instanceShutdownTimeout,omitempty" tf:"instance_shutdown_timeout,omitempty"`
// Load-based auto scaling configuration. See Load Based AutoScaling
LoadBasedAutoScaling []LoadBasedAutoScalingObservation `json:"loadBasedAutoScaling,omitempty" tf:"load_based_auto_scaling,omitempty"`
// A human-readable name for the layer.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
ShortName *string `json:"shortName,omitempty" tf:"short_name,omitempty"`
// ID of the stack the layer will belong to.
StackID *string `json:"stackId,omitempty" tf:"stack_id,omitempty"`
// Names of a set of system packages to install on the layer's instances.
// +listType=set
SystemPackages []*string `json:"systemPackages,omitempty" tf:"system_packages,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
// +mapType=granular
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// Whether to use EBS-optimized instances.
UseEBSOptimizedInstances *bool `json:"useEbsOptimizedInstances,omitempty" tf:"use_ebs_optimized_instances,omitempty"`
}
type CustomLayerParameters struct {
// Whether to automatically assign an elastic IP address to the layer's instances.
// +kubebuilder:validation:Optional
AutoAssignElasticIps *bool `json:"autoAssignElasticIps,omitempty" tf:"auto_assign_elastic_ips,omitempty"`
// For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
// +kubebuilder:validation:Optional
AutoAssignPublicIps *bool `json:"autoAssignPublicIps,omitempty" tf:"auto_assign_public_ips,omitempty"`
// Whether to enable auto-healing for the layer.
// +kubebuilder:validation:Optional
AutoHealing *bool `json:"autoHealing,omitempty" tf:"auto_healing,omitempty"`
// Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
// +kubebuilder:validation:Optional
CloudwatchConfiguration []CloudwatchConfigurationParameters `json:"cloudwatchConfiguration,omitempty" tf:"cloudwatch_configuration,omitempty"`
// +kubebuilder:validation:Optional
CustomConfigureRecipes []*string `json:"customConfigureRecipes,omitempty" tf:"custom_configure_recipes,omitempty"`
// +kubebuilder:validation:Optional
CustomDeployRecipes []*string `json:"customDeployRecipes,omitempty" tf:"custom_deploy_recipes,omitempty"`
// The ARN of an IAM profile that will be used for the layer's instances.
// +kubebuilder:validation:Optional
CustomInstanceProfileArn *string `json:"customInstanceProfileArn,omitempty" tf:"custom_instance_profile_arn,omitempty"`
// Custom JSON attributes to apply to the layer.
// +kubebuilder:validation:Optional
CustomJSON *string `json:"customJson,omitempty" tf:"custom_json,omitempty"`
// References to SecurityGroup in ec2 to populate customSecurityGroupIds.
// +kubebuilder:validation:Optional
CustomSecurityGroupIDRefs []v1.Reference `json:"customSecurityGroupIdRefs,omitempty" tf:"-"`
// Selector for a list of SecurityGroup in ec2 to populate customSecurityGroupIds.
// +kubebuilder:validation:Optional
CustomSecurityGroupIDSelector *v1.Selector `json:"customSecurityGroupIdSelector,omitempty" tf:"-"`
// Ids for a set of security groups to apply to the layer's instances.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup
// +crossplane:generate:reference:refFieldName=CustomSecurityGroupIDRefs
// +crossplane:generate:reference:selectorFieldName=CustomSecurityGroupIDSelector
// +kubebuilder:validation:Optional
// +listType=set
CustomSecurityGroupIds []*string `json:"customSecurityGroupIds,omitempty" tf:"custom_security_group_ids,omitempty"`
// +kubebuilder:validation:Optional
CustomSetupRecipes []*string `json:"customSetupRecipes,omitempty" tf:"custom_setup_recipes,omitempty"`
// +kubebuilder:validation:Optional
CustomShutdownRecipes []*string `json:"customShutdownRecipes,omitempty" tf:"custom_shutdown_recipes,omitempty"`
// +kubebuilder:validation:Optional
CustomUndeployRecipes []*string `json:"customUndeployRecipes,omitempty" tf:"custom_undeploy_recipes,omitempty"`
// Whether to enable Elastic Load Balancing connection draining.
// +kubebuilder:validation:Optional
DrainELBOnShutdown *bool `json:"drainElbOnShutdown,omitempty" tf:"drain_elb_on_shutdown,omitempty"`
// Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
// +kubebuilder:validation:Optional
EBSVolume []EBSVolumeParameters `json:"ebsVolume,omitempty" tf:"ebs_volume,omitempty"`
// Name of an Elastic Load Balancer to attach to this layer
// +kubebuilder:validation:Optional
ElasticLoadBalancer *string `json:"elasticLoadBalancer,omitempty" tf:"elastic_load_balancer,omitempty"`
// Whether to install OS and package updates on each instance when it boots.
// +kubebuilder:validation:Optional
InstallUpdatesOnBoot *bool `json:"installUpdatesOnBoot,omitempty" tf:"install_updates_on_boot,omitempty"`
// The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
// +kubebuilder:validation:Optional
InstanceShutdownTimeout *float64 `json:"instanceShutdownTimeout,omitempty" tf:"instance_shutdown_timeout,omitempty"`
// Load-based auto scaling configuration. See Load Based AutoScaling
// +kubebuilder:validation:Optional
LoadBasedAutoScaling []LoadBasedAutoScalingParameters `json:"loadBasedAutoScaling,omitempty" tf:"load_based_auto_scaling,omitempty"`
// A human-readable name for the layer.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
// +kubebuilder:validation:Optional
ShortName *string `json:"shortName,omitempty" tf:"short_name,omitempty"`
// ID of the stack the layer will belong to.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/opsworks/v1beta1.Stack
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
StackID *string `json:"stackId,omitempty" tf:"stack_id,omitempty"`
// Reference to a Stack in opsworks to populate stackId.
// +kubebuilder:validation:Optional
StackIDRef *v1.Reference `json:"stackIdRef,omitempty" tf:"-"`
// Selector for a Stack in opsworks to populate stackId.
// +kubebuilder:validation:Optional
StackIDSelector *v1.Selector `json:"stackIdSelector,omitempty" tf:"-"`
// Names of a set of system packages to install on the layer's instances.
// +kubebuilder:validation:Optional
// +listType=set
SystemPackages []*string `json:"systemPackages,omitempty" tf:"system_packages,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Whether to use EBS-optimized instances.
// +kubebuilder:validation:Optional
UseEBSOptimizedInstances *bool `json:"useEbsOptimizedInstances,omitempty" tf:"use_ebs_optimized_instances,omitempty"`
}
type DownscalingInitParameters struct {
// Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
// The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
// The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
// The number of instances to add or remove when the load exceeds a threshold.
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// The load threshold. A value of -1 disables the threshold.
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
// The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
// The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type DownscalingObservation struct {
// Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
// The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
// The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
// The number of instances to add or remove when the load exceeds a threshold.
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// The load threshold. A value of -1 disables the threshold.
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
// The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
// The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type DownscalingParameters struct {
// Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
// +kubebuilder:validation:Optional
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
// The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
// +kubebuilder:validation:Optional
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
// The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
// +kubebuilder:validation:Optional
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
// The number of instances to add or remove when the load exceeds a threshold.
// +kubebuilder:validation:Optional
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// The load threshold. A value of -1 disables the threshold.
// +kubebuilder:validation:Optional
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
// The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
// +kubebuilder:validation:Optional
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
// The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
// +kubebuilder:validation:Optional
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type EBSVolumeInitParameters struct {
// Encrypt the volume.
Encrypted *bool `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
// For PIOPS volumes, the IOPS per disk.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// The path to mount the EBS volume on the layer's instances.
MountPoint *string `json:"mountPoint,omitempty" tf:"mount_point,omitempty"`
// The number of disks to use for the EBS volume.
NumberOfDisks *float64 `json:"numberOfDisks,omitempty" tf:"number_of_disks,omitempty"`
// The RAID level to use for the volume.
RaidLevel *string `json:"raidLevel,omitempty" tf:"raid_level,omitempty"`
// The size of the volume in gigabytes.
Size *float64 `json:"size,omitempty" tf:"size,omitempty"`
// The type of volume to create. This may be standard (the default), io1 or gp2.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type EBSVolumeObservation struct {
// Encrypt the volume.
Encrypted *bool `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
// For PIOPS volumes, the IOPS per disk.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// The path to mount the EBS volume on the layer's instances.
MountPoint *string `json:"mountPoint,omitempty" tf:"mount_point,omitempty"`
// The number of disks to use for the EBS volume.
NumberOfDisks *float64 `json:"numberOfDisks,omitempty" tf:"number_of_disks,omitempty"`
// The RAID level to use for the volume.
RaidLevel *string `json:"raidLevel,omitempty" tf:"raid_level,omitempty"`
// The size of the volume in gigabytes.
Size *float64 `json:"size,omitempty" tf:"size,omitempty"`
// The type of volume to create. This may be standard (the default), io1 or gp2.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type EBSVolumeParameters struct {
// Encrypt the volume.
// +kubebuilder:validation:Optional
Encrypted *bool `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
// For PIOPS volumes, the IOPS per disk.
// +kubebuilder:validation:Optional
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// The path to mount the EBS volume on the layer's instances.
// +kubebuilder:validation:Optional
MountPoint *string `json:"mountPoint" tf:"mount_point,omitempty"`
// The number of disks to use for the EBS volume.
// +kubebuilder:validation:Optional
NumberOfDisks *float64 `json:"numberOfDisks" tf:"number_of_disks,omitempty"`
// The RAID level to use for the volume.
// +kubebuilder:validation:Optional
RaidLevel *string `json:"raidLevel,omitempty" tf:"raid_level,omitempty"`
// The size of the volume in gigabytes.
// +kubebuilder:validation:Optional
Size *float64 `json:"size" tf:"size,omitempty"`
// The type of volume to create. This may be standard (the default), io1 or gp2.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type LoadBasedAutoScalingInitParameters struct {
// The downscaling settings, as defined below, used for load-based autoscaling
Downscaling []DownscalingInitParameters `json:"downscaling,omitempty" tf:"downscaling,omitempty"`
// Whether load-based auto scaling is enabled for the layer.
Enable *bool `json:"enable,omitempty" tf:"enable,omitempty"`
// The upscaling settings, as defined below, used for load-based autoscaling
Upscaling []UpscalingInitParameters `json:"upscaling,omitempty" tf:"upscaling,omitempty"`
}
type LoadBasedAutoScalingObservation struct {
// The downscaling settings, as defined below, used for load-based autoscaling
Downscaling []DownscalingObservation `json:"downscaling,omitempty" tf:"downscaling,omitempty"`
// Whether load-based auto scaling is enabled for the layer.
Enable *bool `json:"enable,omitempty" tf:"enable,omitempty"`
// The upscaling settings, as defined below, used for load-based autoscaling
Upscaling []UpscalingObservation `json:"upscaling,omitempty" tf:"upscaling,omitempty"`
}
type LoadBasedAutoScalingParameters struct {
// The downscaling settings, as defined below, used for load-based autoscaling
// +kubebuilder:validation:Optional
Downscaling []DownscalingParameters `json:"downscaling,omitempty" tf:"downscaling,omitempty"`
// Whether load-based auto scaling is enabled for the layer.
// +kubebuilder:validation:Optional
Enable *bool `json:"enable,omitempty" tf:"enable,omitempty"`
// The upscaling settings, as defined below, used for load-based autoscaling
// +kubebuilder:validation:Optional
Upscaling []UpscalingParameters `json:"upscaling,omitempty" tf:"upscaling,omitempty"`
}
type LogStreamsInitParameters struct {
// Specifies the max number of log events in a batch, up to 10000. The default value is 1000.
BatchCount *float64 `json:"batchCount,omitempty" tf:"batch_count,omitempty"`
// Specifies the maximum size of log events in a batch, in bytes, up to 1048576 bytes. The default value is 32768 bytes.
BatchSize *float64 `json:"batchSize,omitempty" tf:"batch_size,omitempty"`
// Specifies the time duration for the batching of log events. The minimum value is 5000 and default value is 5000.
BufferDuration *float64 `json:"bufferDuration,omitempty" tf:"buffer_duration,omitempty"`
// Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
DatetimeFormat *string `json:"datetimeFormat,omitempty" tf:"datetime_format,omitempty"`
// Specifies the encoding of the log file so that the file can be read correctly. The default is utf_8.
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
// Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
File *string `json:"file,omitempty" tf:"file,omitempty"`
// Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as 1, 2-5. The default value is 1.
FileFingerprintLines *string `json:"fileFingerprintLines,omitempty" tf:"file_fingerprint_lines,omitempty"`
// Specifies where to start to read data (start_of_file or end_of_file). The default is start_of_file.
InitialPosition *string `json:"initialPosition,omitempty" tf:"initial_position,omitempty"`
// Specifies the destination log group. A log group is created automatically if it doesn't already exist.
LogGroupName *string `json:"logGroupName,omitempty" tf:"log_group_name,omitempty"`
// Specifies the pattern for identifying the start of a log message.
MultilineStartPattern *string `json:"multilineStartPattern,omitempty" tf:"multiline_start_pattern,omitempty"`
// Specifies the time zone of log event time stamps.
TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}
type LogStreamsObservation struct {
// Specifies the max number of log events in a batch, up to 10000. The default value is 1000.
BatchCount *float64 `json:"batchCount,omitempty" tf:"batch_count,omitempty"`
// Specifies the maximum size of log events in a batch, in bytes, up to 1048576 bytes. The default value is 32768 bytes.
BatchSize *float64 `json:"batchSize,omitempty" tf:"batch_size,omitempty"`
// Specifies the time duration for the batching of log events. The minimum value is 5000 and default value is 5000.
BufferDuration *float64 `json:"bufferDuration,omitempty" tf:"buffer_duration,omitempty"`
// Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
DatetimeFormat *string `json:"datetimeFormat,omitempty" tf:"datetime_format,omitempty"`
// Specifies the encoding of the log file so that the file can be read correctly. The default is utf_8.
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
// Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
File *string `json:"file,omitempty" tf:"file,omitempty"`
// Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as 1, 2-5. The default value is 1.
FileFingerprintLines *string `json:"fileFingerprintLines,omitempty" tf:"file_fingerprint_lines,omitempty"`
// Specifies where to start to read data (start_of_file or end_of_file). The default is start_of_file.
InitialPosition *string `json:"initialPosition,omitempty" tf:"initial_position,omitempty"`
// Specifies the destination log group. A log group is created automatically if it doesn't already exist.
LogGroupName *string `json:"logGroupName,omitempty" tf:"log_group_name,omitempty"`
// Specifies the pattern for identifying the start of a log message.
MultilineStartPattern *string `json:"multilineStartPattern,omitempty" tf:"multiline_start_pattern,omitempty"`
// Specifies the time zone of log event time stamps.
TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}
type LogStreamsParameters struct {
// Specifies the max number of log events in a batch, up to 10000. The default value is 1000.
// +kubebuilder:validation:Optional
BatchCount *float64 `json:"batchCount,omitempty" tf:"batch_count,omitempty"`
// Specifies the maximum size of log events in a batch, in bytes, up to 1048576 bytes. The default value is 32768 bytes.
// +kubebuilder:validation:Optional
BatchSize *float64 `json:"batchSize,omitempty" tf:"batch_size,omitempty"`
// Specifies the time duration for the batching of log events. The minimum value is 5000 and default value is 5000.
// +kubebuilder:validation:Optional
BufferDuration *float64 `json:"bufferDuration,omitempty" tf:"buffer_duration,omitempty"`
// Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
// +kubebuilder:validation:Optional
DatetimeFormat *string `json:"datetimeFormat,omitempty" tf:"datetime_format,omitempty"`
// Specifies the encoding of the log file so that the file can be read correctly. The default is utf_8.
// +kubebuilder:validation:Optional
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
// Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
// +kubebuilder:validation:Optional
File *string `json:"file" tf:"file,omitempty"`
// Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as 1, 2-5. The default value is 1.
// +kubebuilder:validation:Optional
FileFingerprintLines *string `json:"fileFingerprintLines,omitempty" tf:"file_fingerprint_lines,omitempty"`
// Specifies where to start to read data (start_of_file or end_of_file). The default is start_of_file.
// +kubebuilder:validation:Optional
InitialPosition *string `json:"initialPosition,omitempty" tf:"initial_position,omitempty"`
// Specifies the destination log group. A log group is created automatically if it doesn't already exist.
// +kubebuilder:validation:Optional
LogGroupName *string `json:"logGroupName" tf:"log_group_name,omitempty"`
// Specifies the pattern for identifying the start of a log message.
// +kubebuilder:validation:Optional
MultilineStartPattern *string `json:"multilineStartPattern,omitempty" tf:"multiline_start_pattern,omitempty"`
// Specifies the time zone of log event time stamps.
// +kubebuilder:validation:Optional
TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}
type UpscalingInitParameters struct {
// Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
// The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
// The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
// The number of instances to add or remove when the load exceeds a threshold.
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// The load threshold. A value of -1 disables the threshold.
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
// The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
// The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type UpscalingObservation struct {
// Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
// The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
// The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
// The number of instances to add or remove when the load exceeds a threshold.
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// The load threshold. A value of -1 disables the threshold.
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
// The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
// The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type UpscalingParameters struct {
// Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
// +kubebuilder:validation:Optional
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
// The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
// +kubebuilder:validation:Optional
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
// The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
// +kubebuilder:validation:Optional
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
// The number of instances to add or remove when the load exceeds a threshold.
// +kubebuilder:validation:Optional
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// The load threshold. A value of -1 disables the threshold.
// +kubebuilder:validation:Optional
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
// The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
// +kubebuilder:validation:Optional
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
// The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
// +kubebuilder:validation:Optional
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
// CustomLayerSpec defines the desired state of CustomLayer
type CustomLayerSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider CustomLayerParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider CustomLayerInitParameters `json:"initProvider,omitempty"`
}
// CustomLayerStatus defines the observed state of CustomLayer.
type CustomLayerStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider CustomLayerObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// CustomLayer is the Schema for the CustomLayers API. Provides an OpsWorks custom layer resource.
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
type CustomLayer struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.shortName) || (has(self.initProvider) && has(self.initProvider.shortName))",message="spec.forProvider.shortName is a required parameter"
Spec CustomLayerSpec `json:"spec"`
Status CustomLayerStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// CustomLayerList contains a list of CustomLayers
type CustomLayerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []CustomLayer `json:"items"`
}
// Repository type metadata.
var (
CustomLayer_Kind = "CustomLayer"
CustomLayer_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: CustomLayer_Kind}.String()
CustomLayer_KindAPIVersion = CustomLayer_Kind + "." + CRDGroupVersion.String()
CustomLayer_GroupVersionKind = CRDGroupVersion.WithKind(CustomLayer_Kind)
)
func init() {
SchemeBuilder.Register(&CustomLayer{}, &CustomLayerList{})
}