-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_containerrecipe_types.go
executable file
·572 lines (416 loc) · 26.9 KB
/
zz_containerrecipe_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
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
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 BlockDeviceMappingInitParameters struct {
// Name of the device. For example, /dev/sda or /dev/xvdb.
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
EBS []EBSInitParameters `json:"ebs,omitempty" tf:"ebs,omitempty"`
// Set to true to remove a mapping from the parent image.
NoDevice *bool `json:"noDevice,omitempty" tf:"no_device,omitempty"`
// Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
VirtualName *string `json:"virtualName,omitempty" tf:"virtual_name,omitempty"`
}
type BlockDeviceMappingObservation struct {
// Name of the device. For example, /dev/sda or /dev/xvdb.
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
EBS []EBSObservation `json:"ebs,omitempty" tf:"ebs,omitempty"`
// Set to true to remove a mapping from the parent image.
NoDevice *bool `json:"noDevice,omitempty" tf:"no_device,omitempty"`
// Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
VirtualName *string `json:"virtualName,omitempty" tf:"virtual_name,omitempty"`
}
type BlockDeviceMappingParameters struct {
// Name of the device. For example, /dev/sda or /dev/xvdb.
// +kubebuilder:validation:Optional
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
// +kubebuilder:validation:Optional
EBS []EBSParameters `json:"ebs,omitempty" tf:"ebs,omitempty"`
// Set to true to remove a mapping from the parent image.
// +kubebuilder:validation:Optional
NoDevice *bool `json:"noDevice,omitempty" tf:"no_device,omitempty"`
// Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
// +kubebuilder:validation:Optional
VirtualName *string `json:"virtualName,omitempty" tf:"virtual_name,omitempty"`
}
type ContainerRecipeComponentInitParameters struct {
// Amazon Resource Name (ARN) of the Image Builder Component to associate.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/imagebuilder/v1beta1.Component
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true)
ComponentArn *string `json:"componentArn,omitempty" tf:"component_arn,omitempty"`
// Reference to a Component in imagebuilder to populate componentArn.
// +kubebuilder:validation:Optional
ComponentArnRef *v1.Reference `json:"componentArnRef,omitempty" tf:"-"`
// Selector for a Component in imagebuilder to populate componentArn.
// +kubebuilder:validation:Optional
ComponentArnSelector *v1.Selector `json:"componentArnSelector,omitempty" tf:"-"`
// Configuration block(s) for parameters to configure the component. Detailed below.
Parameter []ParameterInitParameters `json:"parameter,omitempty" tf:"parameter,omitempty"`
}
type ContainerRecipeComponentObservation struct {
// Amazon Resource Name (ARN) of the Image Builder Component to associate.
ComponentArn *string `json:"componentArn,omitempty" tf:"component_arn,omitempty"`
// Configuration block(s) for parameters to configure the component. Detailed below.
Parameter []ParameterObservation `json:"parameter,omitempty" tf:"parameter,omitempty"`
}
type ContainerRecipeComponentParameters struct {
// Amazon Resource Name (ARN) of the Image Builder Component to associate.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/imagebuilder/v1beta1.Component
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true)
// +kubebuilder:validation:Optional
ComponentArn *string `json:"componentArn,omitempty" tf:"component_arn,omitempty"`
// Reference to a Component in imagebuilder to populate componentArn.
// +kubebuilder:validation:Optional
ComponentArnRef *v1.Reference `json:"componentArnRef,omitempty" tf:"-"`
// Selector for a Component in imagebuilder to populate componentArn.
// +kubebuilder:validation:Optional
ComponentArnSelector *v1.Selector `json:"componentArnSelector,omitempty" tf:"-"`
// Configuration block(s) for parameters to configure the component. Detailed below.
// +kubebuilder:validation:Optional
Parameter []ParameterParameters `json:"parameter,omitempty" tf:"parameter,omitempty"`
}
type ContainerRecipeInitParameters struct {
// Ordered configuration block(s) with components for the container recipe. Detailed below.
Component []ContainerRecipeComponentInitParameters `json:"component,omitempty" tf:"component,omitempty"`
// The type of the container to create. Valid values: DOCKER.
ContainerType *string `json:"containerType,omitempty" tf:"container_type,omitempty"`
// The description of the container recipe.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The Dockerfile template used to build the image as an inline data blob.
DockerfileTemplateData *string `json:"dockerfileTemplateData,omitempty" tf:"dockerfile_template_data,omitempty"`
// The Amazon S3 URI for the Dockerfile that will be used to build the container image.
DockerfileTemplateURI *string `json:"dockerfileTemplateUri,omitempty" tf:"dockerfile_template_uri,omitempty"`
// Configuration block used to configure an instance for building and testing container images. Detailed below.
InstanceConfiguration []InstanceConfigurationInitParameters `json:"instanceConfiguration,omitempty" tf:"instance_configuration,omitempty"`
// The KMS key used to encrypt the container image.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Reference to a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"`
// Selector for a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"`
// The name of the container recipe.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The base image for the container recipe.
ParentImage *string `json:"parentImage,omitempty" tf:"parent_image,omitempty"`
// Specifies the operating system platform when you use a custom base image.
PlatformOverride *string `json:"platformOverride,omitempty" tf:"platform_override,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The destination repository for the container image. Detailed below.
TargetRepository []TargetRepositoryInitParameters `json:"targetRepository,omitempty" tf:"target_repository,omitempty"`
// Version of the container recipe.
Version *string `json:"version,omitempty" tf:"version,omitempty"`
// The working directory to be used during build and test workflows.
WorkingDirectory *string `json:"workingDirectory,omitempty" tf:"working_directory,omitempty"`
}
type ContainerRecipeObservation struct {
// Amazon Resource Name (ARN) of the container recipe.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Ordered configuration block(s) with components for the container recipe. Detailed below.
Component []ContainerRecipeComponentObservation `json:"component,omitempty" tf:"component,omitempty"`
// The type of the container to create. Valid values: DOCKER.
ContainerType *string `json:"containerType,omitempty" tf:"container_type,omitempty"`
// Date the container recipe was created.
DateCreated *string `json:"dateCreated,omitempty" tf:"date_created,omitempty"`
// The description of the container recipe.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The Dockerfile template used to build the image as an inline data blob.
DockerfileTemplateData *string `json:"dockerfileTemplateData,omitempty" tf:"dockerfile_template_data,omitempty"`
// The Amazon S3 URI for the Dockerfile that will be used to build the container image.
DockerfileTemplateURI *string `json:"dockerfileTemplateUri,omitempty" tf:"dockerfile_template_uri,omitempty"`
// A flag that indicates if the target container is encrypted.
Encrypted *bool `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Configuration block used to configure an instance for building and testing container images. Detailed below.
InstanceConfiguration []InstanceConfigurationObservation `json:"instanceConfiguration,omitempty" tf:"instance_configuration,omitempty"`
// The KMS key used to encrypt the container image.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// The name of the container recipe.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Owner of the container recipe.
Owner *string `json:"owner,omitempty" tf:"owner,omitempty"`
// The base image for the container recipe.
ParentImage *string `json:"parentImage,omitempty" tf:"parent_image,omitempty"`
// Platform of the container recipe.
Platform *string `json:"platform,omitempty" tf:"platform,omitempty"`
// Specifies the operating system platform when you use a custom base image.
PlatformOverride *string `json:"platformOverride,omitempty" tf:"platform_override,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"`
// The destination repository for the container image. Detailed below.
TargetRepository []TargetRepositoryObservation `json:"targetRepository,omitempty" tf:"target_repository,omitempty"`
// Version of the container recipe.
Version *string `json:"version,omitempty" tf:"version,omitempty"`
// The working directory to be used during build and test workflows.
WorkingDirectory *string `json:"workingDirectory,omitempty" tf:"working_directory,omitempty"`
}
type ContainerRecipeParameters struct {
// Ordered configuration block(s) with components for the container recipe. Detailed below.
// +kubebuilder:validation:Optional
Component []ContainerRecipeComponentParameters `json:"component,omitempty" tf:"component,omitempty"`
// The type of the container to create. Valid values: DOCKER.
// +kubebuilder:validation:Optional
ContainerType *string `json:"containerType,omitempty" tf:"container_type,omitempty"`
// The description of the container recipe.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The Dockerfile template used to build the image as an inline data blob.
// +kubebuilder:validation:Optional
DockerfileTemplateData *string `json:"dockerfileTemplateData,omitempty" tf:"dockerfile_template_data,omitempty"`
// The Amazon S3 URI for the Dockerfile that will be used to build the container image.
// +kubebuilder:validation:Optional
DockerfileTemplateURI *string `json:"dockerfileTemplateUri,omitempty" tf:"dockerfile_template_uri,omitempty"`
// Configuration block used to configure an instance for building and testing container images. Detailed below.
// +kubebuilder:validation:Optional
InstanceConfiguration []InstanceConfigurationParameters `json:"instanceConfiguration,omitempty" tf:"instance_configuration,omitempty"`
// The KMS key used to encrypt the container image.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Reference to a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"`
// Selector for a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"`
// The name of the container recipe.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The base image for the container recipe.
// +kubebuilder:validation:Optional
ParentImage *string `json:"parentImage,omitempty" tf:"parent_image,omitempty"`
// Specifies the operating system platform when you use a custom base image.
// +kubebuilder:validation:Optional
PlatformOverride *string `json:"platformOverride,omitempty" tf:"platform_override,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:"-"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The destination repository for the container image. Detailed below.
// +kubebuilder:validation:Optional
TargetRepository []TargetRepositoryParameters `json:"targetRepository,omitempty" tf:"target_repository,omitempty"`
// Version of the container recipe.
// +kubebuilder:validation:Optional
Version *string `json:"version,omitempty" tf:"version,omitempty"`
// The working directory to be used during build and test workflows.
// +kubebuilder:validation:Optional
WorkingDirectory *string `json:"workingDirectory,omitempty" tf:"working_directory,omitempty"`
}
type EBSInitParameters struct {
// Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
DeleteOnTermination *string `json:"deleteOnTermination,omitempty" tf:"delete_on_termination,omitempty"`
// Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
Encrypted *string `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
// Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Identifier of the EC2 Volume Snapshot.
SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"`
// For GP3 volumes only. The throughput in MiB/s that the volume supports.
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Size of the volume, in GiB.
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
// Type of the volume. For example, gp2 or io2.
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type EBSObservation struct {
// Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
DeleteOnTermination *string `json:"deleteOnTermination,omitempty" tf:"delete_on_termination,omitempty"`
// Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
Encrypted *string `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
// Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Identifier of the EC2 Volume Snapshot.
SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"`
// For GP3 volumes only. The throughput in MiB/s that the volume supports.
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Size of the volume, in GiB.
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
// Type of the volume. For example, gp2 or io2.
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type EBSParameters struct {
// Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
// +kubebuilder:validation:Optional
DeleteOnTermination *string `json:"deleteOnTermination,omitempty" tf:"delete_on_termination,omitempty"`
// Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
// +kubebuilder:validation:Optional
Encrypted *string `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
// Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
// +kubebuilder:validation:Optional
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Identifier of the EC2 Volume Snapshot.
// +kubebuilder:validation:Optional
SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"`
// For GP3 volumes only. The throughput in MiB/s that the volume supports.
// +kubebuilder:validation:Optional
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Size of the volume, in GiB.
// +kubebuilder:validation:Optional
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
// Type of the volume. For example, gp2 or io2.
// +kubebuilder:validation:Optional
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type InstanceConfigurationInitParameters struct {
// Configuration block(s) with block device mappings for the container recipe. Detailed below.
BlockDeviceMapping []BlockDeviceMappingInitParameters `json:"blockDeviceMapping,omitempty" tf:"block_device_mapping,omitempty"`
// The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
Image *string `json:"image,omitempty" tf:"image,omitempty"`
}
type InstanceConfigurationObservation struct {
// Configuration block(s) with block device mappings for the container recipe. Detailed below.
BlockDeviceMapping []BlockDeviceMappingObservation `json:"blockDeviceMapping,omitempty" tf:"block_device_mapping,omitempty"`
// The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
Image *string `json:"image,omitempty" tf:"image,omitempty"`
}
type InstanceConfigurationParameters struct {
// Configuration block(s) with block device mappings for the container recipe. Detailed below.
// +kubebuilder:validation:Optional
BlockDeviceMapping []BlockDeviceMappingParameters `json:"blockDeviceMapping,omitempty" tf:"block_device_mapping,omitempty"`
// The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
// +kubebuilder:validation:Optional
Image *string `json:"image,omitempty" tf:"image,omitempty"`
}
type ParameterInitParameters struct {
// The name of the component parameter.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The value for the named component parameter.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type ParameterObservation struct {
// The name of the component parameter.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The value for the named component parameter.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type ParameterParameters struct {
// The name of the component parameter.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The value for the named component parameter.
// +kubebuilder:validation:Optional
Value *string `json:"value" tf:"value,omitempty"`
}
type TargetRepositoryInitParameters struct {
// The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecr/v1beta1.Repository
RepositoryName *string `json:"repositoryName,omitempty" tf:"repository_name,omitempty"`
// Reference to a Repository in ecr to populate repositoryName.
// +kubebuilder:validation:Optional
RepositoryNameRef *v1.Reference `json:"repositoryNameRef,omitempty" tf:"-"`
// Selector for a Repository in ecr to populate repositoryName.
// +kubebuilder:validation:Optional
RepositoryNameSelector *v1.Selector `json:"repositoryNameSelector,omitempty" tf:"-"`
// The service in which this image is registered. Valid values: ECR.
Service *string `json:"service,omitempty" tf:"service,omitempty"`
}
type TargetRepositoryObservation 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 TargetRepositoryParameters struct {
// The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ecr/v1beta1.Repository
// +kubebuilder:validation:Optional
RepositoryName *string `json:"repositoryName,omitempty" tf:"repository_name,omitempty"`
// Reference to a Repository in ecr to populate repositoryName.
// +kubebuilder:validation:Optional
RepositoryNameRef *v1.Reference `json:"repositoryNameRef,omitempty" tf:"-"`
// Selector for a Repository in ecr to populate repositoryName.
// +kubebuilder:validation:Optional
RepositoryNameSelector *v1.Selector `json:"repositoryNameSelector,omitempty" tf:"-"`
// The service in which this image is registered. Valid values: ECR.
// +kubebuilder:validation:Optional
Service *string `json:"service" tf:"service,omitempty"`
}
// ContainerRecipeSpec defines the desired state of ContainerRecipe
type ContainerRecipeSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ContainerRecipeParameters `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 ContainerRecipeInitParameters `json:"initProvider,omitempty"`
}
// ContainerRecipeStatus defines the observed state of ContainerRecipe.
type ContainerRecipeStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ContainerRecipeObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// ContainerRecipe is the Schema for the ContainerRecipes API. Manage an Image Builder Container Recipe
// +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 ContainerRecipe 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.component) || (has(self.initProvider) && has(self.initProvider.component))",message="spec.forProvider.component is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.containerType) || (has(self.initProvider) && has(self.initProvider.containerType))",message="spec.forProvider.containerType 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"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.parentImage) || (has(self.initProvider) && has(self.initProvider.parentImage))",message="spec.forProvider.parentImage is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.targetRepository) || (has(self.initProvider) && has(self.initProvider.targetRepository))",message="spec.forProvider.targetRepository is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.version) || (has(self.initProvider) && has(self.initProvider.version))",message="spec.forProvider.version is a required parameter"
Spec ContainerRecipeSpec `json:"spec"`
Status ContainerRecipeStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ContainerRecipeList contains a list of ContainerRecipes
type ContainerRecipeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ContainerRecipe `json:"items"`
}
// Repository type metadata.
var (
ContainerRecipe_Kind = "ContainerRecipe"
ContainerRecipe_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ContainerRecipe_Kind}.String()
ContainerRecipe_KindAPIVersion = ContainerRecipe_Kind + "." + CRDGroupVersion.String()
ContainerRecipe_GroupVersionKind = CRDGroupVersion.WithKind(ContainerRecipe_Kind)
)
func init() {
SchemeBuilder.Register(&ContainerRecipe{}, &ContainerRecipeList{})
}