-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_staticweblayer_types.go
executable file
·337 lines (244 loc) · 13.7 KB
/
zz_staticweblayer_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
/*
Copyright 2022 Upbound Inc.
*/
// 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 StaticWebLayerCloudwatchConfigurationLogStreamsObservation struct {
}
type StaticWebLayerCloudwatchConfigurationLogStreamsParameters 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:Required
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:Required
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 StaticWebLayerCloudwatchConfigurationObservation struct {
}
type StaticWebLayerCloudwatchConfigurationParameters struct {
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// +kubebuilder:validation:Optional
LogStreams []StaticWebLayerCloudwatchConfigurationLogStreamsParameters `json:"logStreams,omitempty" tf:"log_streams,omitempty"`
}
type StaticWebLayerEBSVolumeObservation struct {
}
type StaticWebLayerEBSVolumeParameters 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:Required
MountPoint *string `json:"mountPoint" tf:"mount_point,omitempty"`
// The number of disks to use for the EBS volume.
// +kubebuilder:validation:Required
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:Required
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 StaticWebLayerLoadBasedAutoScalingDownscalingObservation struct {
}
type StaticWebLayerLoadBasedAutoScalingDownscalingParameters 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 StaticWebLayerLoadBasedAutoScalingObservation struct {
}
type StaticWebLayerLoadBasedAutoScalingParameters struct {
// +kubebuilder:validation:Optional
Downscaling []StaticWebLayerLoadBasedAutoScalingDownscalingParameters `json:"downscaling,omitempty" tf:"downscaling,omitempty"`
// +kubebuilder:validation:Optional
Enable *bool `json:"enable,omitempty" tf:"enable,omitempty"`
// +kubebuilder:validation:Optional
Upscaling []StaticWebLayerLoadBasedAutoScalingUpscalingParameters `json:"upscaling,omitempty" tf:"upscaling,omitempty"`
}
type StaticWebLayerLoadBasedAutoScalingUpscalingObservation struct {
}
type StaticWebLayerLoadBasedAutoScalingUpscalingParameters 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 StaticWebLayerObservation struct {
// The Amazon Resource Name(ARN) of the layer.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// The id of the layer.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
}
type StaticWebLayerParameters 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"`
// +kubebuilder:validation:Optional
CloudwatchConfiguration []StaticWebLayerCloudwatchConfigurationParameters `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"`
// +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
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 []StaticWebLayerEBSVolumeParameters `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 []StaticWebLayerLoadBasedAutoScalingParameters `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/upbound/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
SystemPackages []*string `json:"systemPackages,omitempty" tf:"system_packages,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
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"`
}
// StaticWebLayerSpec defines the desired state of StaticWebLayer
type StaticWebLayerSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider StaticWebLayerParameters `json:"forProvider"`
}
// StaticWebLayerStatus defines the observed state of StaticWebLayer.
type StaticWebLayerStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider StaticWebLayerObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// StaticWebLayer is the Schema for the StaticWebLayers API. Provides an OpsWorks static web server layer resource.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
type StaticWebLayer struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec StaticWebLayerSpec `json:"spec"`
Status StaticWebLayerStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// StaticWebLayerList contains a list of StaticWebLayers
type StaticWebLayerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []StaticWebLayer `json:"items"`
}
// Repository type metadata.
var (
StaticWebLayer_Kind = "StaticWebLayer"
StaticWebLayer_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: StaticWebLayer_Kind}.String()
StaticWebLayer_KindAPIVersion = StaticWebLayer_Kind + "." + CRDGroupVersion.String()
StaticWebLayer_GroupVersionKind = CRDGroupVersion.WithKind(StaticWebLayer_Kind)
)
func init() {
SchemeBuilder.Register(&StaticWebLayer{}, &StaticWebLayerList{})
}