-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_directory_types.go
executable file
·418 lines (305 loc) · 21.5 KB
/
zz_directory_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
/*
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 DirectoryInitParameters struct {
// The identifiers of the IP access control groups associated with the directory.
IPGroupIds []*string `json:"ipGroupIds,omitempty" tf:"ip_group_ids,omitempty"`
// service capabilities. Defined below.
SelfServicePermissions []SelfServicePermissionsInitParameters `json:"selfServicePermissions,omitempty" tf:"self_service_permissions,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// – Specifies which devices and operating systems users can use to access their WorkSpaces. Defined below.
WorkspaceAccessProperties []WorkspaceAccessPropertiesInitParameters `json:"workspaceAccessProperties,omitempty" tf:"workspace_access_properties,omitempty"`
// – Default properties that are used for creating WorkSpaces. Defined below.
WorkspaceCreationProperties []WorkspaceCreationPropertiesInitParameters `json:"workspaceCreationProperties,omitempty" tf:"workspace_creation_properties,omitempty"`
}
type DirectoryObservation struct {
// The directory alias.
Alias *string `json:"alias,omitempty" tf:"alias,omitempty"`
// The user name for the service account.
CustomerUserName *string `json:"customerUserName,omitempty" tf:"customer_user_name,omitempty"`
// The IP addresses of the DNS servers for the directory.
DNSIPAddresses []*string `json:"dnsIpAddresses,omitempty" tf:"dns_ip_addresses,omitempty"`
// The directory identifier for registration in WorkSpaces service.
DirectoryID *string `json:"directoryId,omitempty" tf:"directory_id,omitempty"`
// The name of the directory.
DirectoryName *string `json:"directoryName,omitempty" tf:"directory_name,omitempty"`
// The directory type.
DirectoryType *string `json:"directoryType,omitempty" tf:"directory_type,omitempty"`
// The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.
IAMRoleID *string `json:"iamRoleId,omitempty" tf:"iam_role_id,omitempty"`
// The WorkSpaces directory identifier.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The identifiers of the IP access control groups associated with the directory.
IPGroupIds []*string `json:"ipGroupIds,omitempty" tf:"ip_group_ids,omitempty"`
// The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
RegistrationCode *string `json:"registrationCode,omitempty" tf:"registration_code,omitempty"`
// service capabilities. Defined below.
SelfServicePermissions []SelfServicePermissionsObservation `json:"selfServicePermissions,omitempty" tf:"self_service_permissions,omitempty"`
// The identifiers of the subnets where the directory resides.
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
// Key-value map of resource tags.
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.
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// – Specifies which devices and operating systems users can use to access their WorkSpaces. Defined below.
WorkspaceAccessProperties []WorkspaceAccessPropertiesObservation `json:"workspaceAccessProperties,omitempty" tf:"workspace_access_properties,omitempty"`
// – Default properties that are used for creating WorkSpaces. Defined below.
WorkspaceCreationProperties []WorkspaceCreationPropertiesObservation `json:"workspaceCreationProperties,omitempty" tf:"workspace_creation_properties,omitempty"`
// The identifier of the security group that is assigned to new WorkSpaces.
WorkspaceSecurityGroupID *string `json:"workspaceSecurityGroupId,omitempty" tf:"workspace_security_group_id,omitempty"`
}
type DirectoryParameters struct {
// The directory identifier for registration in WorkSpaces service.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ds/v1beta1.Directory
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
DirectoryID *string `json:"directoryId,omitempty" tf:"directory_id,omitempty"`
// Reference to a Directory in ds to populate directoryId.
// +kubebuilder:validation:Optional
DirectoryIDRef *v1.Reference `json:"directoryIdRef,omitempty" tf:"-"`
// Selector for a Directory in ds to populate directoryId.
// +kubebuilder:validation:Optional
DirectoryIDSelector *v1.Selector `json:"directoryIdSelector,omitempty" tf:"-"`
// The identifiers of the IP access control groups associated with the directory.
// +kubebuilder:validation:Optional
IPGroupIds []*string `json:"ipGroupIds,omitempty" tf:"ip_group_ids,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:"-"`
// service capabilities. Defined below.
// +kubebuilder:validation:Optional
SelfServicePermissions []SelfServicePermissionsParameters `json:"selfServicePermissions,omitempty" tf:"self_service_permissions,omitempty"`
// References to Subnet in ec2 to populate subnetIds.
// +kubebuilder:validation:Optional
SubnetIDRefs []v1.Reference `json:"subnetIdRefs,omitempty" tf:"-"`
// Selector for a list of Subnet in ec2 to populate subnetIds.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// The identifiers of the subnets where the directory resides.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet
// +crossplane:generate:reference:refFieldName=SubnetIDRefs
// +crossplane:generate:reference:selectorFieldName=SubnetIDSelector
// +kubebuilder:validation:Optional
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// – Specifies which devices and operating systems users can use to access their WorkSpaces. Defined below.
// +kubebuilder:validation:Optional
WorkspaceAccessProperties []WorkspaceAccessPropertiesParameters `json:"workspaceAccessProperties,omitempty" tf:"workspace_access_properties,omitempty"`
// – Default properties that are used for creating WorkSpaces. Defined below.
// +kubebuilder:validation:Optional
WorkspaceCreationProperties []WorkspaceCreationPropertiesParameters `json:"workspaceCreationProperties,omitempty" tf:"workspace_creation_properties,omitempty"`
}
type SelfServicePermissionsInitParameters struct {
// – Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default false.
ChangeComputeType *bool `json:"changeComputeType,omitempty" tf:"change_compute_type,omitempty"`
// – Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default false.
IncreaseVolumeSize *bool `json:"increaseVolumeSize,omitempty" tf:"increase_volume_size,omitempty"`
// – Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default false.
RebuildWorkspace *bool `json:"rebuildWorkspace,omitempty" tf:"rebuild_workspace,omitempty"`
// – Whether WorkSpaces directory users can restart their workspace. Default true.
RestartWorkspace *bool `json:"restartWorkspace,omitempty" tf:"restart_workspace,omitempty"`
// – Whether WorkSpaces directory users can switch the running mode of their workspace. Default false.
SwitchRunningMode *bool `json:"switchRunningMode,omitempty" tf:"switch_running_mode,omitempty"`
}
type SelfServicePermissionsObservation struct {
// – Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default false.
ChangeComputeType *bool `json:"changeComputeType,omitempty" tf:"change_compute_type,omitempty"`
// – Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default false.
IncreaseVolumeSize *bool `json:"increaseVolumeSize,omitempty" tf:"increase_volume_size,omitempty"`
// – Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default false.
RebuildWorkspace *bool `json:"rebuildWorkspace,omitempty" tf:"rebuild_workspace,omitempty"`
// – Whether WorkSpaces directory users can restart their workspace. Default true.
RestartWorkspace *bool `json:"restartWorkspace,omitempty" tf:"restart_workspace,omitempty"`
// – Whether WorkSpaces directory users can switch the running mode of their workspace. Default false.
SwitchRunningMode *bool `json:"switchRunningMode,omitempty" tf:"switch_running_mode,omitempty"`
}
type SelfServicePermissionsParameters struct {
// – Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default false.
// +kubebuilder:validation:Optional
ChangeComputeType *bool `json:"changeComputeType,omitempty" tf:"change_compute_type,omitempty"`
// – Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default false.
// +kubebuilder:validation:Optional
IncreaseVolumeSize *bool `json:"increaseVolumeSize,omitempty" tf:"increase_volume_size,omitempty"`
// – Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default false.
// +kubebuilder:validation:Optional
RebuildWorkspace *bool `json:"rebuildWorkspace,omitempty" tf:"rebuild_workspace,omitempty"`
// – Whether WorkSpaces directory users can restart their workspace. Default true.
// +kubebuilder:validation:Optional
RestartWorkspace *bool `json:"restartWorkspace,omitempty" tf:"restart_workspace,omitempty"`
// – Whether WorkSpaces directory users can switch the running mode of their workspace. Default false.
// +kubebuilder:validation:Optional
SwitchRunningMode *bool `json:"switchRunningMode,omitempty" tf:"switch_running_mode,omitempty"`
}
type WorkspaceAccessPropertiesInitParameters struct {
// – Indicates whether users can use Android devices to access their WorkSpaces.
DeviceTypeAndroid *string `json:"deviceTypeAndroid,omitempty" tf:"device_type_android,omitempty"`
// – Indicates whether users can use Chromebooks to access their WorkSpaces.
DeviceTypeChromeos *string `json:"deviceTypeChromeos,omitempty" tf:"device_type_chromeos,omitempty"`
// – Indicates whether users can use iOS devices to access their WorkSpaces.
DeviceTypeIos *string `json:"deviceTypeIos,omitempty" tf:"device_type_ios,omitempty"`
// – Indicates whether users can use Linux clients to access their WorkSpaces.
DeviceTypeLinux *string `json:"deviceTypeLinux,omitempty" tf:"device_type_linux,omitempty"`
// – Indicates whether users can use macOS clients to access their WorkSpaces.
DeviceTypeOsx *string `json:"deviceTypeOsx,omitempty" tf:"device_type_osx,omitempty"`
// – Indicates whether users can access their WorkSpaces through a web browser.
DeviceTypeWeb *string `json:"deviceTypeWeb,omitempty" tf:"device_type_web,omitempty"`
// – Indicates whether users can use Windows clients to access their WorkSpaces.
DeviceTypeWindows *string `json:"deviceTypeWindows,omitempty" tf:"device_type_windows,omitempty"`
// – Indicates whether users can use zero client devices to access their WorkSpaces.
DeviceTypeZeroclient *string `json:"deviceTypeZeroclient,omitempty" tf:"device_type_zeroclient,omitempty"`
}
type WorkspaceAccessPropertiesObservation struct {
// – Indicates whether users can use Android devices to access their WorkSpaces.
DeviceTypeAndroid *string `json:"deviceTypeAndroid,omitempty" tf:"device_type_android,omitempty"`
// – Indicates whether users can use Chromebooks to access their WorkSpaces.
DeviceTypeChromeos *string `json:"deviceTypeChromeos,omitempty" tf:"device_type_chromeos,omitempty"`
// – Indicates whether users can use iOS devices to access their WorkSpaces.
DeviceTypeIos *string `json:"deviceTypeIos,omitempty" tf:"device_type_ios,omitempty"`
// – Indicates whether users can use Linux clients to access their WorkSpaces.
DeviceTypeLinux *string `json:"deviceTypeLinux,omitempty" tf:"device_type_linux,omitempty"`
// – Indicates whether users can use macOS clients to access their WorkSpaces.
DeviceTypeOsx *string `json:"deviceTypeOsx,omitempty" tf:"device_type_osx,omitempty"`
// – Indicates whether users can access their WorkSpaces through a web browser.
DeviceTypeWeb *string `json:"deviceTypeWeb,omitempty" tf:"device_type_web,omitempty"`
// – Indicates whether users can use Windows clients to access their WorkSpaces.
DeviceTypeWindows *string `json:"deviceTypeWindows,omitempty" tf:"device_type_windows,omitempty"`
// – Indicates whether users can use zero client devices to access their WorkSpaces.
DeviceTypeZeroclient *string `json:"deviceTypeZeroclient,omitempty" tf:"device_type_zeroclient,omitempty"`
}
type WorkspaceAccessPropertiesParameters struct {
// – Indicates whether users can use Android devices to access their WorkSpaces.
// +kubebuilder:validation:Optional
DeviceTypeAndroid *string `json:"deviceTypeAndroid,omitempty" tf:"device_type_android,omitempty"`
// – Indicates whether users can use Chromebooks to access their WorkSpaces.
// +kubebuilder:validation:Optional
DeviceTypeChromeos *string `json:"deviceTypeChromeos,omitempty" tf:"device_type_chromeos,omitempty"`
// – Indicates whether users can use iOS devices to access their WorkSpaces.
// +kubebuilder:validation:Optional
DeviceTypeIos *string `json:"deviceTypeIos,omitempty" tf:"device_type_ios,omitempty"`
// – Indicates whether users can use Linux clients to access their WorkSpaces.
// +kubebuilder:validation:Optional
DeviceTypeLinux *string `json:"deviceTypeLinux,omitempty" tf:"device_type_linux,omitempty"`
// – Indicates whether users can use macOS clients to access their WorkSpaces.
// +kubebuilder:validation:Optional
DeviceTypeOsx *string `json:"deviceTypeOsx,omitempty" tf:"device_type_osx,omitempty"`
// – Indicates whether users can access their WorkSpaces through a web browser.
// +kubebuilder:validation:Optional
DeviceTypeWeb *string `json:"deviceTypeWeb,omitempty" tf:"device_type_web,omitempty"`
// – Indicates whether users can use Windows clients to access their WorkSpaces.
// +kubebuilder:validation:Optional
DeviceTypeWindows *string `json:"deviceTypeWindows,omitempty" tf:"device_type_windows,omitempty"`
// – Indicates whether users can use zero client devices to access their WorkSpaces.
// +kubebuilder:validation:Optional
DeviceTypeZeroclient *string `json:"deviceTypeZeroclient,omitempty" tf:"device_type_zeroclient,omitempty"`
}
type WorkspaceCreationPropertiesInitParameters struct {
// – The default organizational unit (OU) for your WorkSpace directories. Should conform "OU=<value>,DC=<value>,...,DC=<value>" pattern.
DefaultOu *string `json:"defaultOu,omitempty" tf:"default_ou,omitempty"`
// – Indicates whether internet access is enabled for your WorkSpaces.
EnableInternetAccess *bool `json:"enableInternetAccess,omitempty" tf:"enable_internet_access,omitempty"`
// – Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see WorkSpace Maintenance..
EnableMaintenanceMode *bool `json:"enableMaintenanceMode,omitempty" tf:"enable_maintenance_mode,omitempty"`
// – Indicates whether users are local administrators of their WorkSpaces.
UserEnabledAsLocalAdministrator *bool `json:"userEnabledAsLocalAdministrator,omitempty" tf:"user_enabled_as_local_administrator,omitempty"`
}
type WorkspaceCreationPropertiesObservation struct {
// – The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in.
CustomSecurityGroupID *string `json:"customSecurityGroupId,omitempty" tf:"custom_security_group_id,omitempty"`
// – The default organizational unit (OU) for your WorkSpace directories. Should conform "OU=<value>,DC=<value>,...,DC=<value>" pattern.
DefaultOu *string `json:"defaultOu,omitempty" tf:"default_ou,omitempty"`
// – Indicates whether internet access is enabled for your WorkSpaces.
EnableInternetAccess *bool `json:"enableInternetAccess,omitempty" tf:"enable_internet_access,omitempty"`
// – Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see WorkSpace Maintenance..
EnableMaintenanceMode *bool `json:"enableMaintenanceMode,omitempty" tf:"enable_maintenance_mode,omitempty"`
// – Indicates whether users are local administrators of their WorkSpaces.
UserEnabledAsLocalAdministrator *bool `json:"userEnabledAsLocalAdministrator,omitempty" tf:"user_enabled_as_local_administrator,omitempty"`
}
type WorkspaceCreationPropertiesParameters struct {
// – The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
CustomSecurityGroupID *string `json:"customSecurityGroupId,omitempty" tf:"custom_security_group_id,omitempty"`
// Reference to a SecurityGroup in ec2 to populate customSecurityGroupId.
// +kubebuilder:validation:Optional
CustomSecurityGroupIDRef *v1.Reference `json:"customSecurityGroupIdRef,omitempty" tf:"-"`
// Selector for a SecurityGroup in ec2 to populate customSecurityGroupId.
// +kubebuilder:validation:Optional
CustomSecurityGroupIDSelector *v1.Selector `json:"customSecurityGroupIdSelector,omitempty" tf:"-"`
// – The default organizational unit (OU) for your WorkSpace directories. Should conform "OU=<value>,DC=<value>,...,DC=<value>" pattern.
// +kubebuilder:validation:Optional
DefaultOu *string `json:"defaultOu,omitempty" tf:"default_ou,omitempty"`
// – Indicates whether internet access is enabled for your WorkSpaces.
// +kubebuilder:validation:Optional
EnableInternetAccess *bool `json:"enableInternetAccess,omitempty" tf:"enable_internet_access,omitempty"`
// – Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see WorkSpace Maintenance..
// +kubebuilder:validation:Optional
EnableMaintenanceMode *bool `json:"enableMaintenanceMode,omitempty" tf:"enable_maintenance_mode,omitempty"`
// – Indicates whether users are local administrators of their WorkSpaces.
// +kubebuilder:validation:Optional
UserEnabledAsLocalAdministrator *bool `json:"userEnabledAsLocalAdministrator,omitempty" tf:"user_enabled_as_local_administrator,omitempty"`
}
// DirectorySpec defines the desired state of Directory
type DirectorySpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider DirectoryParameters `json:"forProvider"`
// THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored
// unless the relevant Crossplane feature flag is enabled, and may be
// changed or removed without notice.
// 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 DirectoryInitParameters `json:"initProvider,omitempty"`
}
// DirectoryStatus defines the observed state of Directory.
type DirectoryStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider DirectoryObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Directory is the Schema for the Directorys API. Provides a WorkSpaces directory in AWS WorkSpaces Service.
// +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 Directory struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DirectorySpec `json:"spec"`
Status DirectoryStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// DirectoryList contains a list of Directorys
type DirectoryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Directory `json:"items"`
}
// Repository type metadata.
var (
Directory_Kind = "Directory"
Directory_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Directory_Kind}.String()
Directory_KindAPIVersion = Directory_Kind + "." + CRDGroupVersion.String()
Directory_GroupVersionKind = CRDGroupVersion.WithKind(Directory_Kind)
)
func init() {
SchemeBuilder.Register(&Directory{}, &DirectoryList{})
}