-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_distributionconfiguration_types.go
executable file
·554 lines (396 loc) · 27.3 KB
/
zz_distributionconfiguration_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
/*
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 AMIDistributionConfigurationInitParameters struct {
// Key-value map of tags to apply to the distributed AMI.
AMITags map[string]*string `json:"amiTags,omitempty" tf:"ami_tags,omitempty"`
// Description to apply to the distributed AMI.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below.
LaunchPermission []LaunchPermissionInitParameters `json:"launchPermission,omitempty" tf:"launch_permission,omitempty"`
// Name to apply to the distributed AMI.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Set of AWS Account identifiers to distribute the AMI.
TargetAccountIds []*string `json:"targetAccountIds,omitempty" tf:"target_account_ids,omitempty"`
}
type AMIDistributionConfigurationObservation struct {
// Key-value map of tags to apply to the distributed AMI.
AMITags map[string]*string `json:"amiTags,omitempty" tf:"ami_tags,omitempty"`
// Description to apply to the distributed AMI.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below.
LaunchPermission []LaunchPermissionObservation `json:"launchPermission,omitempty" tf:"launch_permission,omitempty"`
// Name to apply to the distributed AMI.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Set of AWS Account identifiers to distribute the AMI.
TargetAccountIds []*string `json:"targetAccountIds,omitempty" tf:"target_account_ids,omitempty"`
}
type AMIDistributionConfigurationParameters struct {
// Key-value map of tags to apply to the distributed AMI.
// +kubebuilder:validation:Optional
AMITags map[string]*string `json:"amiTags,omitempty" tf:"ami_tags,omitempty"`
// Description to apply to the distributed AMI.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI.
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below.
// +kubebuilder:validation:Optional
LaunchPermission []LaunchPermissionParameters `json:"launchPermission,omitempty" tf:"launch_permission,omitempty"`
// Name to apply to the distributed AMI.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Set of AWS Account identifiers to distribute the AMI.
// +kubebuilder:validation:Optional
TargetAccountIds []*string `json:"targetAccountIds,omitempty" tf:"target_account_ids,omitempty"`
}
type ContainerDistributionConfigurationInitParameters struct {
// Set of tags that are attached to the container distribution configuration.
ContainerTags []*string `json:"containerTags,omitempty" tf:"container_tags,omitempty"`
// Description of the container distribution configuration.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Configuration block with the destination repository for the container distribution configuration.
TargetRepository []ContainerDistributionConfigurationTargetRepositoryInitParameters `json:"targetRepository,omitempty" tf:"target_repository,omitempty"`
}
type ContainerDistributionConfigurationObservation struct {
// Set of tags that are attached to the container distribution configuration.
ContainerTags []*string `json:"containerTags,omitempty" tf:"container_tags,omitempty"`
// Description of the container distribution configuration.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Configuration block with the destination repository for the container distribution configuration.
TargetRepository []ContainerDistributionConfigurationTargetRepositoryObservation `json:"targetRepository,omitempty" tf:"target_repository,omitempty"`
}
type ContainerDistributionConfigurationParameters struct {
// Set of tags that are attached to the container distribution configuration.
// +kubebuilder:validation:Optional
ContainerTags []*string `json:"containerTags,omitempty" tf:"container_tags,omitempty"`
// Description of the container distribution configuration.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Configuration block with the destination repository for the container distribution configuration.
// +kubebuilder:validation:Optional
TargetRepository []ContainerDistributionConfigurationTargetRepositoryParameters `json:"targetRepository" tf:"target_repository,omitempty"`
}
type ContainerDistributionConfigurationTargetRepositoryInitParameters struct {
// The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
RepositoryName *string `json:"repositoryName,omitempty" tf:"repository_name,omitempty"`
// The service in which this image is registered. Valid values: ECR.
Service *string `json:"service,omitempty" tf:"service,omitempty"`
}
type ContainerDistributionConfigurationTargetRepositoryObservation struct {
// The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
RepositoryName *string `json:"repositoryName,omitempty" tf:"repository_name,omitempty"`
// The service in which this image is registered. Valid values: ECR.
Service *string `json:"service,omitempty" tf:"service,omitempty"`
}
type ContainerDistributionConfigurationTargetRepositoryParameters struct {
// The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
// +kubebuilder:validation:Optional
RepositoryName *string `json:"repositoryName" tf:"repository_name,omitempty"`
// The service in which this image is registered. Valid values: ECR.
// +kubebuilder:validation:Optional
Service *string `json:"service" tf:"service,omitempty"`
}
type DistributionConfigurationInitParameters struct {
// Description of the distribution configuration.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// One or more configuration blocks with distribution settings. Detailed below.
Distribution []DistributionInitParameters `json:"distribution,omitempty" tf:"distribution,omitempty"`
// Name of the distribution configuration.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type DistributionConfigurationObservation struct {
// Amazon Resource Name (ARN) of the distribution configuration.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Date the distribution configuration was created.
DateCreated *string `json:"dateCreated,omitempty" tf:"date_created,omitempty"`
// Date the distribution configuration was updated.
DateUpdated *string `json:"dateUpdated,omitempty" tf:"date_updated,omitempty"`
// Description of the distribution configuration.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// One or more configuration blocks with distribution settings. Detailed below.
Distribution []DistributionObservation `json:"distribution,omitempty" tf:"distribution,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Name of the distribution configuration.
Name *string `json:"name,omitempty" tf:"name,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"`
}
type DistributionConfigurationParameters struct {
// Description of the distribution configuration.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// One or more configuration blocks with distribution settings. Detailed below.
// +kubebuilder:validation:Optional
Distribution []DistributionParameters `json:"distribution,omitempty" tf:"distribution,omitempty"`
// Name of the distribution configuration.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// AWS Region for the distribution.
// 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:"-"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type DistributionInitParameters struct {
// Configuration block with Amazon Machine Image (AMI) distribution settings. Detailed below.
AMIDistributionConfiguration []AMIDistributionConfigurationInitParameters `json:"amiDistributionConfiguration,omitempty" tf:"ami_distribution_configuration,omitempty"`
// Configuration block with container distribution settings. Detailed below.
ContainerDistributionConfiguration []ContainerDistributionConfigurationInitParameters `json:"containerDistributionConfiguration,omitempty" tf:"container_distribution_configuration,omitempty"`
// Set of Windows faster-launching configurations to use for AMI distribution. Detailed below.
FastLaunchConfiguration []FastLaunchConfigurationInitParameters `json:"fastLaunchConfiguration,omitempty" tf:"fast_launch_configuration,omitempty"`
// Set of launch template configuration settings that apply to image distribution. Detailed below.
LaunchTemplateConfiguration []LaunchTemplateConfigurationInitParameters `json:"launchTemplateConfiguration,omitempty" tf:"launch_template_configuration,omitempty"`
// Set of Amazon Resource Names (ARNs) of License Manager License Configurations.
LicenseConfigurationArns []*string `json:"licenseConfigurationArns,omitempty" tf:"license_configuration_arns,omitempty"`
}
type DistributionObservation struct {
// Configuration block with Amazon Machine Image (AMI) distribution settings. Detailed below.
AMIDistributionConfiguration []AMIDistributionConfigurationObservation `json:"amiDistributionConfiguration,omitempty" tf:"ami_distribution_configuration,omitempty"`
// Configuration block with container distribution settings. Detailed below.
ContainerDistributionConfiguration []ContainerDistributionConfigurationObservation `json:"containerDistributionConfiguration,omitempty" tf:"container_distribution_configuration,omitempty"`
// Set of Windows faster-launching configurations to use for AMI distribution. Detailed below.
FastLaunchConfiguration []FastLaunchConfigurationObservation `json:"fastLaunchConfiguration,omitempty" tf:"fast_launch_configuration,omitempty"`
// Set of launch template configuration settings that apply to image distribution. Detailed below.
LaunchTemplateConfiguration []LaunchTemplateConfigurationObservation `json:"launchTemplateConfiguration,omitempty" tf:"launch_template_configuration,omitempty"`
// Set of Amazon Resource Names (ARNs) of License Manager License Configurations.
LicenseConfigurationArns []*string `json:"licenseConfigurationArns,omitempty" tf:"license_configuration_arns,omitempty"`
// AWS Region for the distribution.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
}
type DistributionParameters struct {
// Configuration block with Amazon Machine Image (AMI) distribution settings. Detailed below.
// +kubebuilder:validation:Optional
AMIDistributionConfiguration []AMIDistributionConfigurationParameters `json:"amiDistributionConfiguration,omitempty" tf:"ami_distribution_configuration,omitempty"`
// Configuration block with container distribution settings. Detailed below.
// +kubebuilder:validation:Optional
ContainerDistributionConfiguration []ContainerDistributionConfigurationParameters `json:"containerDistributionConfiguration,omitempty" tf:"container_distribution_configuration,omitempty"`
// Set of Windows faster-launching configurations to use for AMI distribution. Detailed below.
// +kubebuilder:validation:Optional
FastLaunchConfiguration []FastLaunchConfigurationParameters `json:"fastLaunchConfiguration,omitempty" tf:"fast_launch_configuration,omitempty"`
// Set of launch template configuration settings that apply to image distribution. Detailed below.
// +kubebuilder:validation:Optional
LaunchTemplateConfiguration []LaunchTemplateConfigurationParameters `json:"launchTemplateConfiguration,omitempty" tf:"launch_template_configuration,omitempty"`
// Set of Amazon Resource Names (ARNs) of License Manager License Configurations.
// +kubebuilder:validation:Optional
LicenseConfigurationArns []*string `json:"licenseConfigurationArns,omitempty" tf:"license_configuration_arns,omitempty"`
// AWS Region for the distribution.
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"region,omitempty"`
}
type FastLaunchConfigurationInitParameters struct {
// The owner account ID for the fast-launch enabled Windows AMI.
AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`
// A Boolean that represents the current state of faster launching for the Windows AMI. Set to true to start using Windows faster launching, or false to stop using it.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below.
LaunchTemplate []LaunchTemplateInitParameters `json:"launchTemplate,omitempty" tf:"launch_template,omitempty"`
// The maximum number of parallel instances that are launched for creating resources.
MaxParallelLaunches *int64 `json:"maxParallelLaunches,omitempty" tf:"max_parallel_launches,omitempty"`
// Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below.
SnapshotConfiguration []SnapshotConfigurationInitParameters `json:"snapshotConfiguration,omitempty" tf:"snapshot_configuration,omitempty"`
}
type FastLaunchConfigurationObservation struct {
// The owner account ID for the fast-launch enabled Windows AMI.
AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`
// A Boolean that represents the current state of faster launching for the Windows AMI. Set to true to start using Windows faster launching, or false to stop using it.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below.
LaunchTemplate []LaunchTemplateObservation `json:"launchTemplate,omitempty" tf:"launch_template,omitempty"`
// The maximum number of parallel instances that are launched for creating resources.
MaxParallelLaunches *int64 `json:"maxParallelLaunches,omitempty" tf:"max_parallel_launches,omitempty"`
// Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below.
SnapshotConfiguration []SnapshotConfigurationObservation `json:"snapshotConfiguration,omitempty" tf:"snapshot_configuration,omitempty"`
}
type FastLaunchConfigurationParameters struct {
// The owner account ID for the fast-launch enabled Windows AMI.
// +kubebuilder:validation:Optional
AccountID *string `json:"accountId" tf:"account_id,omitempty"`
// A Boolean that represents the current state of faster launching for the Windows AMI. Set to true to start using Windows faster launching, or false to stop using it.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
// Configuration block for the launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. Detailed below.
// +kubebuilder:validation:Optional
LaunchTemplate []LaunchTemplateParameters `json:"launchTemplate,omitempty" tf:"launch_template,omitempty"`
// The maximum number of parallel instances that are launched for creating resources.
// +kubebuilder:validation:Optional
MaxParallelLaunches *int64 `json:"maxParallelLaunches,omitempty" tf:"max_parallel_launches,omitempty"`
// Configuration block for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. Detailed below.
// +kubebuilder:validation:Optional
SnapshotConfiguration []SnapshotConfigurationParameters `json:"snapshotConfiguration,omitempty" tf:"snapshot_configuration,omitempty"`
}
type LaunchPermissionInitParameters struct {
// Set of AWS Organization ARNs to assign.
OrganizationArns []*string `json:"organizationArns,omitempty" tf:"organization_arns,omitempty"`
// Set of AWS Organizational Unit ARNs to assign.
OrganizationalUnitArns []*string `json:"organizationalUnitArns,omitempty" tf:"organizational_unit_arns,omitempty"`
// Set of EC2 launch permission user groups to assign. Use all to distribute a public AMI.
UserGroups []*string `json:"userGroups,omitempty" tf:"user_groups,omitempty"`
// Set of AWS Account identifiers to assign.
UserIds []*string `json:"userIds,omitempty" tf:"user_ids,omitempty"`
}
type LaunchPermissionObservation struct {
// Set of AWS Organization ARNs to assign.
OrganizationArns []*string `json:"organizationArns,omitempty" tf:"organization_arns,omitempty"`
// Set of AWS Organizational Unit ARNs to assign.
OrganizationalUnitArns []*string `json:"organizationalUnitArns,omitempty" tf:"organizational_unit_arns,omitempty"`
// Set of EC2 launch permission user groups to assign. Use all to distribute a public AMI.
UserGroups []*string `json:"userGroups,omitempty" tf:"user_groups,omitempty"`
// Set of AWS Account identifiers to assign.
UserIds []*string `json:"userIds,omitempty" tf:"user_ids,omitempty"`
}
type LaunchPermissionParameters struct {
// Set of AWS Organization ARNs to assign.
// +kubebuilder:validation:Optional
OrganizationArns []*string `json:"organizationArns,omitempty" tf:"organization_arns,omitempty"`
// Set of AWS Organizational Unit ARNs to assign.
// +kubebuilder:validation:Optional
OrganizationalUnitArns []*string `json:"organizationalUnitArns,omitempty" tf:"organizational_unit_arns,omitempty"`
// Set of EC2 launch permission user groups to assign. Use all to distribute a public AMI.
// +kubebuilder:validation:Optional
UserGroups []*string `json:"userGroups,omitempty" tf:"user_groups,omitempty"`
// Set of AWS Account identifiers to assign.
// +kubebuilder:validation:Optional
UserIds []*string `json:"userIds,omitempty" tf:"user_ids,omitempty"`
}
type LaunchTemplateConfigurationInitParameters struct {
// The account ID that this configuration applies to.
AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`
// Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to true.
Default *bool `json:"default,omitempty" tf:"default,omitempty"`
// The ID of the Amazon EC2 launch template to use.
LaunchTemplateID *string `json:"launchTemplateId,omitempty" tf:"launch_template_id,omitempty"`
}
type LaunchTemplateConfigurationObservation struct {
// The account ID that this configuration applies to.
AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`
// Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to true.
Default *bool `json:"default,omitempty" tf:"default,omitempty"`
// The ID of the Amazon EC2 launch template to use.
LaunchTemplateID *string `json:"launchTemplateId,omitempty" tf:"launch_template_id,omitempty"`
}
type LaunchTemplateConfigurationParameters struct {
// The account ID that this configuration applies to.
// +kubebuilder:validation:Optional
AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`
// Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to true.
// +kubebuilder:validation:Optional
Default *bool `json:"default,omitempty" tf:"default,omitempty"`
// The ID of the Amazon EC2 launch template to use.
// +kubebuilder:validation:Optional
LaunchTemplateID *string `json:"launchTemplateId" tf:"launch_template_id,omitempty"`
}
type LaunchTemplateInitParameters struct {
// The ID of the launch template to use for faster launching for a Windows AMI.
LaunchTemplateID *string `json:"launchTemplateId,omitempty" tf:"launch_template_id,omitempty"`
// The name of the launch template to use for faster launching for a Windows AMI.
LaunchTemplateName *string `json:"launchTemplateName,omitempty" tf:"launch_template_name,omitempty"`
// The version of the launch template to use for faster launching for a Windows AMI.
LaunchTemplateVersion *string `json:"launchTemplateVersion,omitempty" tf:"launch_template_version,omitempty"`
}
type LaunchTemplateObservation struct {
// The ID of the launch template to use for faster launching for a Windows AMI.
LaunchTemplateID *string `json:"launchTemplateId,omitempty" tf:"launch_template_id,omitempty"`
// The name of the launch template to use for faster launching for a Windows AMI.
LaunchTemplateName *string `json:"launchTemplateName,omitempty" tf:"launch_template_name,omitempty"`
// The version of the launch template to use for faster launching for a Windows AMI.
LaunchTemplateVersion *string `json:"launchTemplateVersion,omitempty" tf:"launch_template_version,omitempty"`
}
type LaunchTemplateParameters struct {
// The ID of the launch template to use for faster launching for a Windows AMI.
// +kubebuilder:validation:Optional
LaunchTemplateID *string `json:"launchTemplateId,omitempty" tf:"launch_template_id,omitempty"`
// The name of the launch template to use for faster launching for a Windows AMI.
// +kubebuilder:validation:Optional
LaunchTemplateName *string `json:"launchTemplateName,omitempty" tf:"launch_template_name,omitempty"`
// The version of the launch template to use for faster launching for a Windows AMI.
// +kubebuilder:validation:Optional
LaunchTemplateVersion *string `json:"launchTemplateVersion,omitempty" tf:"launch_template_version,omitempty"`
}
type SnapshotConfigurationInitParameters struct {
// The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI.
TargetResourceCount *int64 `json:"targetResourceCount,omitempty" tf:"target_resource_count,omitempty"`
}
type SnapshotConfigurationObservation struct {
// The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI.
TargetResourceCount *int64 `json:"targetResourceCount,omitempty" tf:"target_resource_count,omitempty"`
}
type SnapshotConfigurationParameters struct {
// The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI.
// +kubebuilder:validation:Optional
TargetResourceCount *int64 `json:"targetResourceCount,omitempty" tf:"target_resource_count,omitempty"`
}
// DistributionConfigurationSpec defines the desired state of DistributionConfiguration
type DistributionConfigurationSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider DistributionConfigurationParameters `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 DistributionConfigurationInitParameters `json:"initProvider,omitempty"`
}
// DistributionConfigurationStatus defines the observed state of DistributionConfiguration.
type DistributionConfigurationStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider DistributionConfigurationObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// DistributionConfiguration is the Schema for the DistributionConfigurations API. Manage an Image Builder Distribution Configuration
// +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 DistributionConfiguration 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.distribution) || (has(self.initProvider) && has(self.initProvider.distribution))",message="spec.forProvider.distribution is a required parameter"
// +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"
Spec DistributionConfigurationSpec `json:"spec"`
Status DistributionConfigurationStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// DistributionConfigurationList contains a list of DistributionConfigurations
type DistributionConfigurationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DistributionConfiguration `json:"items"`
}
// Repository type metadata.
var (
DistributionConfiguration_Kind = "DistributionConfiguration"
DistributionConfiguration_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: DistributionConfiguration_Kind}.String()
DistributionConfiguration_KindAPIVersion = DistributionConfiguration_Kind + "." + CRDGroupVersion.String()
DistributionConfiguration_GroupVersionKind = CRDGroupVersion.WithKind(DistributionConfiguration_Kind)
)
func init() {
SchemeBuilder.Register(&DistributionConfiguration{}, &DistributionConfigurationList{})
}