/
zz_memcachedlayer_types.go
executable file
·686 lines (471 loc) · 30.9 KB
/
zz_memcachedlayer_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
// 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 MemcachedLayerCloudwatchConfigurationInitParameters struct {
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
LogStreams []MemcachedLayerCloudwatchConfigurationLogStreamsInitParameters `json:"logStreams,omitempty" tf:"log_streams,omitempty"`
}
type MemcachedLayerCloudwatchConfigurationLogStreamsInitParameters struct {
BatchCount *float64 `json:"batchCount,omitempty" tf:"batch_count,omitempty"`
BatchSize *float64 `json:"batchSize,omitempty" tf:"batch_size,omitempty"`
BufferDuration *float64 `json:"bufferDuration,omitempty" tf:"buffer_duration,omitempty"`
DatetimeFormat *string `json:"datetimeFormat,omitempty" tf:"datetime_format,omitempty"`
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
File *string `json:"file,omitempty" tf:"file,omitempty"`
FileFingerprintLines *string `json:"fileFingerprintLines,omitempty" tf:"file_fingerprint_lines,omitempty"`
InitialPosition *string `json:"initialPosition,omitempty" tf:"initial_position,omitempty"`
// A human-readable name for the layer.
LogGroupName *string `json:"logGroupName,omitempty" tf:"log_group_name,omitempty"`
MultilineStartPattern *string `json:"multilineStartPattern,omitempty" tf:"multiline_start_pattern,omitempty"`
TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}
type MemcachedLayerCloudwatchConfigurationLogStreamsObservation struct {
BatchCount *float64 `json:"batchCount,omitempty" tf:"batch_count,omitempty"`
BatchSize *float64 `json:"batchSize,omitempty" tf:"batch_size,omitempty"`
BufferDuration *float64 `json:"bufferDuration,omitempty" tf:"buffer_duration,omitempty"`
DatetimeFormat *string `json:"datetimeFormat,omitempty" tf:"datetime_format,omitempty"`
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
File *string `json:"file,omitempty" tf:"file,omitempty"`
FileFingerprintLines *string `json:"fileFingerprintLines,omitempty" tf:"file_fingerprint_lines,omitempty"`
InitialPosition *string `json:"initialPosition,omitempty" tf:"initial_position,omitempty"`
// A human-readable name for the layer.
LogGroupName *string `json:"logGroupName,omitempty" tf:"log_group_name,omitempty"`
MultilineStartPattern *string `json:"multilineStartPattern,omitempty" tf:"multiline_start_pattern,omitempty"`
TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}
type MemcachedLayerCloudwatchConfigurationLogStreamsParameters struct {
// +kubebuilder:validation:Optional
BatchCount *float64 `json:"batchCount,omitempty" tf:"batch_count,omitempty"`
// +kubebuilder:validation:Optional
BatchSize *float64 `json:"batchSize,omitempty" tf:"batch_size,omitempty"`
// +kubebuilder:validation:Optional
BufferDuration *float64 `json:"bufferDuration,omitempty" tf:"buffer_duration,omitempty"`
// +kubebuilder:validation:Optional
DatetimeFormat *string `json:"datetimeFormat,omitempty" tf:"datetime_format,omitempty"`
// +kubebuilder:validation:Optional
Encoding *string `json:"encoding,omitempty" tf:"encoding,omitempty"`
// +kubebuilder:validation:Optional
File *string `json:"file" tf:"file,omitempty"`
// +kubebuilder:validation:Optional
FileFingerprintLines *string `json:"fileFingerprintLines,omitempty" tf:"file_fingerprint_lines,omitempty"`
// +kubebuilder:validation:Optional
InitialPosition *string `json:"initialPosition,omitempty" tf:"initial_position,omitempty"`
// A human-readable name for the layer.
// +kubebuilder:validation:Optional
LogGroupName *string `json:"logGroupName" tf:"log_group_name,omitempty"`
// +kubebuilder:validation:Optional
MultilineStartPattern *string `json:"multilineStartPattern,omitempty" tf:"multiline_start_pattern,omitempty"`
// +kubebuilder:validation:Optional
TimeZone *string `json:"timeZone,omitempty" tf:"time_zone,omitempty"`
}
type MemcachedLayerCloudwatchConfigurationObservation struct {
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
LogStreams []MemcachedLayerCloudwatchConfigurationLogStreamsObservation `json:"logStreams,omitempty" tf:"log_streams,omitempty"`
}
type MemcachedLayerCloudwatchConfigurationParameters struct {
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// +kubebuilder:validation:Optional
LogStreams []MemcachedLayerCloudwatchConfigurationLogStreamsParameters `json:"logStreams,omitempty" tf:"log_streams,omitempty"`
}
type MemcachedLayerEBSVolumeInitParameters struct {
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 MemcachedLayerEBSVolumeObservation struct {
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 MemcachedLayerEBSVolumeParameters struct {
// +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 MemcachedLayerInitParameters struct {
// Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB.
AllocatedMemory *float64 `json:"allocatedMemory,omitempty" tf:"allocated_memory,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"`
CloudwatchConfiguration []MemcachedLayerCloudwatchConfigurationInitParameters `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"`
// ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
EBSVolume []MemcachedLayerEBSVolumeInitParameters `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"`
LoadBasedAutoScaling []MemcachedLayerLoadBasedAutoScalingInitParameters `json:"loadBasedAutoScaling,omitempty" tf:"load_based_auto_scaling,omitempty"`
// A human-readable name for the layer.
Name *string `json:"name,omitempty" tf:"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 MemcachedLayerLoadBasedAutoScalingDownscalingInitParameters struct {
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type MemcachedLayerLoadBasedAutoScalingDownscalingObservation struct {
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type MemcachedLayerLoadBasedAutoScalingDownscalingParameters struct {
// +kubebuilder:validation:Optional
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
// +kubebuilder:validation:Optional
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
// +kubebuilder:validation:Optional
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
// +kubebuilder:validation:Optional
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// +kubebuilder:validation:Optional
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
// +kubebuilder:validation:Optional
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
// +kubebuilder:validation:Optional
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type MemcachedLayerLoadBasedAutoScalingInitParameters struct {
Downscaling []MemcachedLayerLoadBasedAutoScalingDownscalingInitParameters `json:"downscaling,omitempty" tf:"downscaling,omitempty"`
Enable *bool `json:"enable,omitempty" tf:"enable,omitempty"`
Upscaling []MemcachedLayerLoadBasedAutoScalingUpscalingInitParameters `json:"upscaling,omitempty" tf:"upscaling,omitempty"`
}
type MemcachedLayerLoadBasedAutoScalingObservation struct {
Downscaling []MemcachedLayerLoadBasedAutoScalingDownscalingObservation `json:"downscaling,omitempty" tf:"downscaling,omitempty"`
Enable *bool `json:"enable,omitempty" tf:"enable,omitempty"`
Upscaling []MemcachedLayerLoadBasedAutoScalingUpscalingObservation `json:"upscaling,omitempty" tf:"upscaling,omitempty"`
}
type MemcachedLayerLoadBasedAutoScalingParameters struct {
// +kubebuilder:validation:Optional
Downscaling []MemcachedLayerLoadBasedAutoScalingDownscalingParameters `json:"downscaling,omitempty" tf:"downscaling,omitempty"`
// +kubebuilder:validation:Optional
Enable *bool `json:"enable,omitempty" tf:"enable,omitempty"`
// +kubebuilder:validation:Optional
Upscaling []MemcachedLayerLoadBasedAutoScalingUpscalingParameters `json:"upscaling,omitempty" tf:"upscaling,omitempty"`
}
type MemcachedLayerLoadBasedAutoScalingUpscalingInitParameters struct {
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type MemcachedLayerLoadBasedAutoScalingUpscalingObservation struct {
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type MemcachedLayerLoadBasedAutoScalingUpscalingParameters struct {
// +kubebuilder:validation:Optional
Alarms []*string `json:"alarms,omitempty" tf:"alarms,omitempty"`
// +kubebuilder:validation:Optional
CPUThreshold *float64 `json:"cpuThreshold,omitempty" tf:"cpu_threshold,omitempty"`
// +kubebuilder:validation:Optional
IgnoreMetricsTime *float64 `json:"ignoreMetricsTime,omitempty" tf:"ignore_metrics_time,omitempty"`
// +kubebuilder:validation:Optional
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// +kubebuilder:validation:Optional
LoadThreshold *float64 `json:"loadThreshold,omitempty" tf:"load_threshold,omitempty"`
// +kubebuilder:validation:Optional
MemoryThreshold *float64 `json:"memoryThreshold,omitempty" tf:"memory_threshold,omitempty"`
// +kubebuilder:validation:Optional
ThresholdsWaitTime *float64 `json:"thresholdsWaitTime,omitempty" tf:"thresholds_wait_time,omitempty"`
}
type MemcachedLayerObservation struct {
// Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB.
AllocatedMemory *float64 `json:"allocatedMemory,omitempty" tf:"allocated_memory,omitempty"`
// 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"`
CloudwatchConfiguration []MemcachedLayerCloudwatchConfigurationObservation `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"`
// ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
EBSVolume []MemcachedLayerEBSVolumeObservation `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"`
LoadBasedAutoScaling []MemcachedLayerLoadBasedAutoScalingObservation `json:"loadBasedAutoScaling,omitempty" tf:"load_based_auto_scaling,omitempty"`
// A human-readable name for the layer.
Name *string `json:"name,omitempty" tf:"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 MemcachedLayerParameters struct {
// Amount of memory to allocate for the cache on each instance, in megabytes. Defaults to 512MB.
// +kubebuilder:validation:Optional
AllocatedMemory *float64 `json:"allocatedMemory,omitempty" tf:"allocated_memory,omitempty"`
// 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"`
// +kubebuilder:validation:Optional
CloudwatchConfiguration []MemcachedLayerCloudwatchConfigurationParameters `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"`
// ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances.
// +kubebuilder:validation:Optional
EBSVolume []MemcachedLayerEBSVolumeParameters `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"`
// +kubebuilder:validation:Optional
LoadBasedAutoScaling []MemcachedLayerLoadBasedAutoScalingParameters `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"`
// 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"`
}
// MemcachedLayerSpec defines the desired state of MemcachedLayer
type MemcachedLayerSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider MemcachedLayerParameters `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 MemcachedLayerInitParameters `json:"initProvider,omitempty"`
}
// MemcachedLayerStatus defines the observed state of MemcachedLayer.
type MemcachedLayerStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider MemcachedLayerObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// MemcachedLayer is the Schema for the MemcachedLayers API. Provides an OpsWorks memcached 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 MemcachedLayer struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MemcachedLayerSpec `json:"spec"`
Status MemcachedLayerStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// MemcachedLayerList contains a list of MemcachedLayers
type MemcachedLayerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MemcachedLayer `json:"items"`
}
// Repository type metadata.
var (
MemcachedLayer_Kind = "MemcachedLayer"
MemcachedLayer_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: MemcachedLayer_Kind}.String()
MemcachedLayer_KindAPIVersion = MemcachedLayer_Kind + "." + CRDGroupVersion.String()
MemcachedLayer_GroupVersionKind = CRDGroupVersion.WithKind(MemcachedLayer_Kind)
)
func init() {
SchemeBuilder.Register(&MemcachedLayer{}, &MemcachedLayerList{})
}