-
Notifications
You must be signed in to change notification settings - Fork 117
/
zz_layerversion_types.go
executable file
·141 lines (107 loc) · 6.11 KB
/
zz_layerversion_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
/*
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 LayerVersionObservation struct {
// ARN of the Lambda Layer with version.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Date this resource was created.
CreatedDate *string `json:"createdDate,omitempty" tf:"created_date,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// ARN of the Lambda Layer without version.
LayerArn *string `json:"layerArn,omitempty" tf:"layer_arn,omitempty"`
// ARN of a signing job.
SigningJobArn *string `json:"signingJobArn,omitempty" tf:"signing_job_arn,omitempty"`
// ARN for a signing profile version.
SigningProfileVersionArn *string `json:"signingProfileVersionArn,omitempty" tf:"signing_profile_version_arn,omitempty"`
// Size in bytes of the function .zip file.
SourceCodeSize *float64 `json:"sourceCodeSize,omitempty" tf:"source_code_size,omitempty"`
// Lambda Layer version.
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
type LayerVersionParameters struct {
// List of Architectures this layer is compatible with. Currently x86_64 and arm64 can be specified.
// +kubebuilder:validation:Optional
CompatibleArchitectures []*string `json:"compatibleArchitectures,omitempty" tf:"compatible_architectures,omitempty"`
// List of Runtimes this layer is compatible with. Up to 5 runtimes can be specified.
// +kubebuilder:validation:Optional
CompatibleRuntimes []*string `json:"compatibleRuntimes,omitempty" tf:"compatible_runtimes,omitempty"`
// Description of what your Lambda Layer does.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// prefixed options cannot be used.
// +kubebuilder:validation:Optional
Filename *string `json:"filename,omitempty" tf:"filename,omitempty"`
// Unique name for your Lambda Layer
// +kubebuilder:validation:Required
LayerName *string `json:"layerName" tf:"layer_name,omitempty"`
// License info for your Lambda Layer. See License Info.
// +kubebuilder:validation:Optional
LicenseInfo *string `json:"licenseInfo,omitempty" tf:"license_info,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:"-"`
// S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function.
// +kubebuilder:validation:Optional
S3Bucket *string `json:"s3Bucket,omitempty" tf:"s3_bucket,omitempty"`
// S3 key of an object containing the function's deployment package. Conflicts with filename.
// +kubebuilder:validation:Optional
S3Key *string `json:"s3Key,omitempty" tf:"s3_key,omitempty"`
// Object version containing the function's deployment package. Conflicts with filename.
// +kubebuilder:validation:Optional
S3ObjectVersion *string `json:"s3ObjectVersion,omitempty" tf:"s3_object_version,omitempty"`
// Whether to retain the old version of a previously deployed Lambda Layer. Default is false. When this is not set to true, changing any of compatible_architectures, compatible_runtimes, description, filename, layer_name, license_info, s3_bucket, s3_key, s3_object_version, or source_code_hash forces deletion of the existing layer version and creation of a new layer version.
// +kubebuilder:validation:Optional
SkipDestroy *bool `json:"skipDestroy,omitempty" tf:"skip_destroy,omitempty"`
// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key. The usual way to set this is ${filebase64sha256("file.11.12 or later) or ${base64sha256(file("file.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive.
// +kubebuilder:validation:Optional
SourceCodeHash *string `json:"sourceCodeHash,omitempty" tf:"source_code_hash,omitempty"`
}
// LayerVersionSpec defines the desired state of LayerVersion
type LayerVersionSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider LayerVersionParameters `json:"forProvider"`
}
// LayerVersionStatus defines the observed state of LayerVersion.
type LayerVersionStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider LayerVersionObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// LayerVersion is the Schema for the LayerVersions API. Provides a Lambda Layer Version resource. Lambda Layers allow you to reuse shared bits of code across multiple lambda functions.
// +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 LayerVersion struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec LayerVersionSpec `json:"spec"`
Status LayerVersionStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// LayerVersionList contains a list of LayerVersions
type LayerVersionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []LayerVersion `json:"items"`
}
// Repository type metadata.
var (
LayerVersion_Kind = "LayerVersion"
LayerVersion_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: LayerVersion_Kind}.String()
LayerVersion_KindAPIVersion = LayerVersion_Kind + "." + CRDGroupVersion.String()
LayerVersion_GroupVersionKind = CRDGroupVersion.WithKind(LayerVersion_Kind)
)
func init() {
SchemeBuilder.Register(&LayerVersion{}, &LayerVersionList{})
}