-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_cluster_types.go
executable file
·202 lines (151 loc) · 7.88 KB
/
zz_cluster_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
/*
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 ClusterObservation struct {
// ARN that identifies the cluster.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// List of short names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT.
CapacityProviders []*string `json:"capacityProviders,omitempty" tf:"capacity_providers,omitempty"`
// ARN that identifies the cluster.
ID *string `json:"id,omitempty" tf:"id,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"`
}
type ClusterParameters struct {
// The execute command configuration for the cluster. Detailed below.
// +kubebuilder:validation:Optional
Configuration []ConfigurationParameters `json:"configuration,omitempty" tf:"configuration,omitempty"`
// Configuration block for capacity provider strategy to use by default for the cluster. Can be one or more. Detailed below.
// +kubebuilder:validation:Optional
DefaultCapacityProviderStrategy []DefaultCapacityProviderStrategyParameters `json:"defaultCapacityProviderStrategy,omitempty" tf:"default_capacity_provider_strategy,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:"-"`
// Configures a default Service Connect namespace. Detailed below.
// +kubebuilder:validation:Optional
ServiceConnectDefaults []ServiceConnectDefaultsParameters `json:"serviceConnectDefaults,omitempty" tf:"service_connect_defaults,omitempty"`
// Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Detailed below.
// +kubebuilder:validation:Optional
Setting []SettingParameters `json:"setting,omitempty" tf:"setting,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type ConfigurationObservation struct {
}
type ConfigurationParameters struct {
// The details of the execute command configuration. Detailed below.
// +kubebuilder:validation:Optional
ExecuteCommandConfiguration []ExecuteCommandConfigurationParameters `json:"executeCommandConfiguration,omitempty" tf:"execute_command_configuration,omitempty"`
}
type DefaultCapacityProviderStrategyObservation struct {
}
type DefaultCapacityProviderStrategyParameters struct {
// The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined.
// +kubebuilder:validation:Optional
Base *float64 `json:"base,omitempty" tf:"base,omitempty"`
// The short name of the capacity provider.
// +kubebuilder:validation:Required
CapacityProvider *string `json:"capacityProvider" tf:"capacity_provider,omitempty"`
// The relative percentage of the total number of launched tasks that should use the specified capacity provider.
// +kubebuilder:validation:Optional
Weight *float64 `json:"weight,omitempty" tf:"weight,omitempty"`
}
type ExecuteCommandConfigurationObservation struct {
}
type ExecuteCommandConfigurationParameters struct {
// The AWS Key Management Service key ID to encrypt the data between the local client and the container.
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// The log configuration for the results of the execute command actions Required when logging is OVERRIDE. Detailed below.
// +kubebuilder:validation:Optional
LogConfiguration []LogConfigurationParameters `json:"logConfiguration,omitempty" tf:"log_configuration,omitempty"`
// The log setting to use for redirecting logs for your execute command results. Valid values are NONE, DEFAULT, and OVERRIDE.
// +kubebuilder:validation:Optional
Logging *string `json:"logging,omitempty" tf:"logging,omitempty"`
}
type LogConfigurationObservation struct {
}
type LogConfigurationParameters struct {
// Whether or not to enable encryption on the CloudWatch logs. If not specified, encryption will be disabled.
// +kubebuilder:validation:Optional
CloudWatchEncryptionEnabled *bool `json:"cloudWatchEncryptionEnabled,omitempty" tf:"cloud_watch_encryption_enabled,omitempty"`
// The name of the CloudWatch log group to send logs to.
// +kubebuilder:validation:Optional
CloudWatchLogGroupName *string `json:"cloudWatchLogGroupName,omitempty" tf:"cloud_watch_log_group_name,omitempty"`
// Whether or not to enable encryption on the logs sent to S3. If not specified, encryption will be disabled.
// +kubebuilder:validation:Optional
S3BucketEncryptionEnabled *bool `json:"s3BucketEncryptionEnabled,omitempty" tf:"s3_bucket_encryption_enabled,omitempty"`
// The name of the S3 bucket to send logs to.
// +kubebuilder:validation:Optional
S3BucketName *string `json:"s3BucketName,omitempty" tf:"s3_bucket_name,omitempty"`
// An optional folder in the S3 bucket to place logs in.
// +kubebuilder:validation:Optional
S3KeyPrefix *string `json:"s3KeyPrefix,omitempty" tf:"s3_key_prefix,omitempty"`
}
type ServiceConnectDefaultsObservation struct {
}
type ServiceConnectDefaultsParameters struct {
// The ARN of the aws_service_discovery_http_namespace that's used when you create a service and don't specify a Service Connect configuration.
// +kubebuilder:validation:Required
Namespace *string `json:"namespace" tf:"namespace,omitempty"`
}
type SettingObservation struct {
}
type SettingParameters struct {
// Name of the setting to manage. Valid values: containerInsights.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
// The value to assign to the setting. Valid values are enabled and disabled.
// +kubebuilder:validation:Required
Value *string `json:"value" tf:"value,omitempty"`
}
// ClusterSpec defines the desired state of Cluster
type ClusterSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ClusterParameters `json:"forProvider"`
}
// ClusterStatus defines the observed state of Cluster.
type ClusterStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ClusterObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Cluster is the Schema for the Clusters API. Provides an ECS cluster.
// +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 Cluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterSpec `json:"spec"`
Status ClusterStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ClusterList contains a list of Clusters
type ClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Cluster `json:"items"`
}
// Repository type metadata.
var (
Cluster_Kind = "Cluster"
Cluster_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Cluster_Kind}.String()
Cluster_KindAPIVersion = Cluster_Kind + "." + CRDGroupVersion.String()
Cluster_GroupVersionKind = CRDGroupVersion.WithKind(Cluster_Kind)
)
func init() {
SchemeBuilder.Register(&Cluster{}, &ClusterList{})
}