-
Notifications
You must be signed in to change notification settings - Fork 121
/
zz_application_types.go
executable file
·303 lines (221 loc) · 13 KB
/
zz_application_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
/*
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 ApplicationObservation struct {
// – The CPU architecture of an application. Valid values are ARM64 or X86_64. Default value is X86_64.
Architecture *string `json:"architecture,omitempty" tf:"architecture,omitempty"`
// ARN of the cluster.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// – The configuration for an application to automatically start on job submission.
AutoStartConfiguration []AutoStartConfigurationObservation `json:"autoStartConfiguration,omitempty" tf:"auto_start_configuration,omitempty"`
// – The configuration for an application to automatically stop after a certain amount of time being idle.
AutoStopConfiguration []AutoStopConfigurationObservation `json:"autoStopConfiguration,omitempty" tf:"auto_stop_configuration,omitempty"`
// The ID of the cluster.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// – The capacity to initialize when the application is created.
InitialCapacity []InitialCapacityObservation `json:"initialCapacity,omitempty" tf:"initial_capacity,omitempty"`
// – The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit.
MaximumCapacity []MaximumCapacityObservation `json:"maximumCapacity,omitempty" tf:"maximum_capacity,omitempty"`
// – The name of the application.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// – The network configuration for customer VPC connectivity.
NetworkConfiguration []NetworkConfigurationObservation `json:"networkConfiguration,omitempty" tf:"network_configuration,omitempty"`
// – The EMR release version associated with the application.
ReleaseLabel *string `json:"releaseLabel,omitempty" tf:"release_label,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// 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"`
// – The type of application you want to start, such as spark or hive.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type ApplicationParameters struct {
// – The CPU architecture of an application. Valid values are ARM64 or X86_64. Default value is X86_64.
// +kubebuilder:validation:Optional
Architecture *string `json:"architecture,omitempty" tf:"architecture,omitempty"`
// – The configuration for an application to automatically start on job submission.
// +kubebuilder:validation:Optional
AutoStartConfiguration []AutoStartConfigurationParameters `json:"autoStartConfiguration,omitempty" tf:"auto_start_configuration,omitempty"`
// – The configuration for an application to automatically stop after a certain amount of time being idle.
// +kubebuilder:validation:Optional
AutoStopConfiguration []AutoStopConfigurationParameters `json:"autoStopConfiguration,omitempty" tf:"auto_stop_configuration,omitempty"`
// – The capacity to initialize when the application is created.
// +kubebuilder:validation:Optional
InitialCapacity []InitialCapacityParameters `json:"initialCapacity,omitempty" tf:"initial_capacity,omitempty"`
// – The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit.
// +kubebuilder:validation:Optional
MaximumCapacity []MaximumCapacityParameters `json:"maximumCapacity,omitempty" tf:"maximum_capacity,omitempty"`
// – The name of the application.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// – The network configuration for customer VPC connectivity.
// +kubebuilder:validation:Optional
NetworkConfiguration []NetworkConfigurationParameters `json:"networkConfiguration,omitempty" tf:"network_configuration,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// – The EMR release version associated with the application.
// +kubebuilder:validation:Optional
ReleaseLabel *string `json:"releaseLabel,omitempty" tf:"release_label,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// – The type of application you want to start, such as spark or hive.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type AutoStartConfigurationObservation struct {
// Enables the application to automatically start on job submission. Defaults to true.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type AutoStartConfigurationParameters struct {
// Enables the application to automatically start on job submission. Defaults to true.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type AutoStopConfigurationObservation struct {
// Enables the application to automatically start on job submission. Defaults to true.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes.
IdleTimeoutMinutes *float64 `json:"idleTimeoutMinutes,omitempty" tf:"idle_timeout_minutes,omitempty"`
}
type AutoStopConfigurationParameters struct {
// Enables the application to automatically start on job submission. Defaults to true.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes.
// +kubebuilder:validation:Optional
IdleTimeoutMinutes *float64 `json:"idleTimeoutMinutes,omitempty" tf:"idle_timeout_minutes,omitempty"`
}
type InitialCapacityConfigObservation struct {
// The resource configuration of the initial capacity configuration.
WorkerConfiguration []WorkerConfigurationObservation `json:"workerConfiguration,omitempty" tf:"worker_configuration,omitempty"`
// The number of workers in the initial capacity configuration.
WorkerCount *float64 `json:"workerCount,omitempty" tf:"worker_count,omitempty"`
}
type InitialCapacityConfigParameters struct {
// The resource configuration of the initial capacity configuration.
// +kubebuilder:validation:Optional
WorkerConfiguration []WorkerConfigurationParameters `json:"workerConfiguration,omitempty" tf:"worker_configuration,omitempty"`
// The number of workers in the initial capacity configuration.
// +kubebuilder:validation:Required
WorkerCount *float64 `json:"workerCount" tf:"worker_count,omitempty"`
}
type InitialCapacityObservation struct {
// The initial capacity configuration per worker.
InitialCapacityConfig []InitialCapacityConfigObservation `json:"initialCapacityConfig,omitempty" tf:"initial_capacity_config,omitempty"`
// The worker type for an analytics framework. For Spark applications, the key can either be set to Driver or Executor. For Hive applications, it can be set to HiveDriver or TezTask.
InitialCapacityType *string `json:"initialCapacityType,omitempty" tf:"initial_capacity_type,omitempty"`
}
type InitialCapacityParameters struct {
// The initial capacity configuration per worker.
// +kubebuilder:validation:Optional
InitialCapacityConfig []InitialCapacityConfigParameters `json:"initialCapacityConfig,omitempty" tf:"initial_capacity_config,omitempty"`
// The worker type for an analytics framework. For Spark applications, the key can either be set to Driver or Executor. For Hive applications, it can be set to HiveDriver or TezTask.
// +kubebuilder:validation:Required
InitialCapacityType *string `json:"initialCapacityType" tf:"initial_capacity_type,omitempty"`
}
type MaximumCapacityObservation struct {
// The maximum allowed CPU for an application.
CPU *string `json:"cpu,omitempty" tf:"cpu,omitempty"`
// The maximum allowed disk for an application.
Disk *string `json:"disk,omitempty" tf:"disk,omitempty"`
// The maximum allowed resources for an application.
Memory *string `json:"memory,omitempty" tf:"memory,omitempty"`
}
type MaximumCapacityParameters struct {
// The maximum allowed CPU for an application.
// +kubebuilder:validation:Required
CPU *string `json:"cpu" tf:"cpu,omitempty"`
// The maximum allowed disk for an application.
// +kubebuilder:validation:Optional
Disk *string `json:"disk,omitempty" tf:"disk,omitempty"`
// The maximum allowed resources for an application.
// +kubebuilder:validation:Required
Memory *string `json:"memory" tf:"memory,omitempty"`
}
type NetworkConfigurationObservation struct {
// The array of security group Ids for customer VPC connectivity.
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// The array of subnet Ids for customer VPC connectivity.
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
}
type NetworkConfigurationParameters struct {
// The array of security group Ids for customer VPC connectivity.
// +kubebuilder:validation:Optional
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// The array of subnet Ids for customer VPC connectivity.
// +kubebuilder:validation:Optional
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
}
type WorkerConfigurationObservation struct {
// The maximum allowed CPU for an application.
CPU *string `json:"cpu,omitempty" tf:"cpu,omitempty"`
// The maximum allowed disk for an application.
Disk *string `json:"disk,omitempty" tf:"disk,omitempty"`
// The maximum allowed resources for an application.
Memory *string `json:"memory,omitempty" tf:"memory,omitempty"`
}
type WorkerConfigurationParameters struct {
// The maximum allowed CPU for an application.
// +kubebuilder:validation:Required
CPU *string `json:"cpu" tf:"cpu,omitempty"`
// The maximum allowed disk for an application.
// +kubebuilder:validation:Optional
Disk *string `json:"disk,omitempty" tf:"disk,omitempty"`
// The maximum allowed resources for an application.
// +kubebuilder:validation:Required
Memory *string `json:"memory" tf:"memory,omitempty"`
}
// ApplicationSpec defines the desired state of Application
type ApplicationSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ApplicationParameters `json:"forProvider"`
}
// ApplicationStatus defines the observed state of Application.
type ApplicationStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ApplicationObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Application is the Schema for the Applications API. Manages an EMR Serverless Application
// +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 Application struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.name)",message="name is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.releaseLabel)",message="releaseLabel is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.type)",message="type is a required parameter"
Spec ApplicationSpec `json:"spec"`
Status ApplicationStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ApplicationList contains a list of Applications
type ApplicationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Application `json:"items"`
}
// Repository type metadata.
var (
Application_Kind = "Application"
Application_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Application_Kind}.String()
Application_KindAPIVersion = Application_Kind + "." + CRDGroupVersion.String()
Application_GroupVersionKind = CRDGroupVersion.WithKind(Application_Kind)
)
func init() {
SchemeBuilder.Register(&Application{}, &ApplicationList{})
}