-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_permissions_types.go
executable file
·277 lines (209 loc) · 10.7 KB
/
zz_permissions_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
/*
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 DataLocationObservation struct {
}
type DataLocationParameters struct {
// – Amazon Resource Name (ARN) that uniquely identifies the data location resource.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lakeformation/v1beta1.Resource
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("arn",false)
// +kubebuilder:validation:Optional
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Reference to a Resource in lakeformation to populate arn.
// +kubebuilder:validation:Optional
ArnRef *v1.Reference `json:"arnRef,omitempty" tf:"-"`
// Selector for a Resource in lakeformation to populate arn.
// +kubebuilder:validation:Optional
ArnSelector *v1.Selector `json:"arnSelector,omitempty" tf:"-"`
// Identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.
// +kubebuilder:validation:Optional
CatalogID *string `json:"catalogId,omitempty" tf:"catalog_id,omitempty"`
}
type DatabaseObservation struct {
}
type DatabaseParameters struct {
// Identifier for the Data Catalog. By default, it is the account ID of the caller.
// +kubebuilder:validation:Optional
CatalogID *string `json:"catalogId,omitempty" tf:"catalog_id,omitempty"`
// – Name of the database resource. Unique to the Data Catalog.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.CatalogDatabase
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Reference to a CatalogDatabase in glue to populate name.
// +kubebuilder:validation:Optional
NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"`
// Selector for a CatalogDatabase in glue to populate name.
// +kubebuilder:validation:Optional
NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"`
}
type ExpressionObservation struct {
}
type ExpressionParameters struct {
// name of an LF-Tag.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// A list of possible values of an LF-Tag.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type LfTagObservation struct {
}
type LfTagParameters struct {
// Identifier for the Data Catalog. By default, it is the account ID of the caller.
// +kubebuilder:validation:Optional
CatalogID *string `json:"catalogId,omitempty" tf:"catalog_id,omitempty"`
// name for the tag.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// A list of possible values an attribute can take.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type LfTagPolicyObservation struct {
}
type LfTagPolicyParameters struct {
// Identifier for the Data Catalog. By default, it is the account ID of the caller.
// +kubebuilder:validation:Optional
CatalogID *string `json:"catalogId,omitempty" tf:"catalog_id,omitempty"`
// A list of tag conditions that apply to the resource's tag policy. Configuration block for tag conditions that apply to the policy. See expression below.
// +kubebuilder:validation:Required
Expression []ExpressionParameters `json:"expression" tf:"expression,omitempty"`
// – The resource type for which the tag policy applies. Valid values are DATABASE and TABLE.
// +kubebuilder:validation:Required
ResourceType *string `json:"resourceType" tf:"resource_type,omitempty"`
}
type PermissionsObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
type PermissionsParameters struct {
// – Identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
// +kubebuilder:validation:Optional
CatalogID *string `json:"catalogId,omitempty" tf:"catalog_id,omitempty"`
// Whether the permissions are to be granted for the Data Catalog. Defaults to false.
// +kubebuilder:validation:Optional
CatalogResource *bool `json:"catalogResource,omitempty" tf:"catalog_resource,omitempty"`
// Configuration block for a data location resource. Detailed below.
// +kubebuilder:validation:Optional
DataLocation []DataLocationParameters `json:"dataLocation,omitempty" tf:"data_location,omitempty"`
// Configuration block for a database resource. Detailed below.
// +kubebuilder:validation:Optional
Database []DatabaseParameters `json:"database,omitempty" tf:"database,omitempty"`
// Configuration block for an LF-tag resource. Detailed below.
// +kubebuilder:validation:Optional
LfTag []LfTagParameters `json:"lfTag,omitempty" tf:"lf_tag,omitempty"`
// Configuration block for an LF-tag policy resource. Detailed below.
// +kubebuilder:validation:Optional
LfTagPolicy []LfTagPolicyParameters `json:"lfTagPolicy,omitempty" tf:"lf_tag_policy,omitempty"`
// – List of permissions granted to the principal. Valid values may include ALL, ALTER, ASSOCIATE, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS, DELETE, DESCRIBE, DROP, INSERT, and SELECT. For details on each permission, see Lake Formation Permissions Reference.
// +kubebuilder:validation:Required
Permissions []*string `json:"permissions" tf:"permissions,omitempty"`
// Subset of permissions which the principal can pass.
// +kubebuilder:validation:Optional
PermissionsWithGrantOption []*string `json:"permissionsWithGrantOption,omitempty" tf:"permissions_with_grant_option,omitempty"`
// account permissions. For more information, see Lake Formation Permissions Reference.
// +kubebuilder:validation:Required
Principal *string `json:"principal" tf:"principal,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:"-"`
// Configuration block for a table resource. Detailed below.
// +kubebuilder:validation:Optional
Table []TableParameters `json:"table,omitempty" tf:"table,omitempty"`
// Configuration block for a table with columns resource. Detailed below.
// +kubebuilder:validation:Optional
TableWithColumns []TableWithColumnsParameters `json:"tableWithColumns,omitempty" tf:"table_with_columns,omitempty"`
}
type TableObservation struct {
}
type TableParameters struct {
// Identifier for the Data Catalog. By default, it is the account ID of the caller.
// +kubebuilder:validation:Optional
CatalogID *string `json:"catalogId,omitempty" tf:"catalog_id,omitempty"`
// – Name of the database for the table. Unique to a Data Catalog.
// +kubebuilder:validation:Required
DatabaseName *string `json:"databaseName" tf:"database_name,omitempty"`
// Name of the table.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Whether to use a wildcard representing every table under a database. Defaults to false.
// +kubebuilder:validation:Optional
Wildcard *bool `json:"wildcard,omitempty" tf:"wildcard,omitempty"`
}
type TableWithColumnsObservation struct {
}
type TableWithColumnsParameters struct {
// Identifier for the Data Catalog. By default, it is the account ID of the caller.
// +kubebuilder:validation:Optional
CatalogID *string `json:"catalogId,omitempty" tf:"catalog_id,omitempty"`
// Set of column names for the table.
// +kubebuilder:validation:Optional
ColumnNames []*string `json:"columnNames,omitempty" tf:"column_names,omitempty"`
// – Name of the database for the table with columns resource. Unique to the Data Catalog.
// +kubebuilder:validation:Required
DatabaseName *string `json:"databaseName" tf:"database_name,omitempty"`
// Set of column names for the table to exclude.
// +kubebuilder:validation:Optional
ExcludedColumnNames []*string `json:"excludedColumnNames,omitempty" tf:"excluded_column_names,omitempty"`
// – Name of the table resource.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/glue/v1beta1.CatalogTable
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Reference to a CatalogTable in glue to populate name.
// +kubebuilder:validation:Optional
NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"`
// Selector for a CatalogTable in glue to populate name.
// +kubebuilder:validation:Optional
NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"`
// Whether to use a column wildcard.
// +kubebuilder:validation:Optional
Wildcard *bool `json:"wildcard,omitempty" tf:"wildcard,omitempty"`
}
// PermissionsSpec defines the desired state of Permissions
type PermissionsSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider PermissionsParameters `json:"forProvider"`
}
// PermissionsStatus defines the observed state of Permissions.
type PermissionsStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider PermissionsObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Permissions is the Schema for the Permissionss API. Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
// +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 Permissions struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PermissionsSpec `json:"spec"`
Status PermissionsStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// PermissionsList contains a list of Permissionss
type PermissionsList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Permissions `json:"items"`
}
// Repository type metadata.
var (
Permissions_Kind = "Permissions"
Permissions_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Permissions_Kind}.String()
Permissions_KindAPIVersion = Permissions_Kind + "." + CRDGroupVersion.String()
Permissions_GroupVersionKind = CRDGroupVersion.WithKind(Permissions_Kind)
)
func init() {
SchemeBuilder.Register(&Permissions{}, &PermissionsList{})
}