-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_server_types.go
executable file
·378 lines (277 loc) · 22.4 KB
/
zz_server_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
/*
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 EndpointDetailsObservation struct {
// A list of address allocation IDs that are required to attach an Elastic IP address to your SFTP server's endpoint. This property can only be used when endpoint_type is set to VPC.
AddressAllocationIds []*string `json:"addressAllocationIds,omitempty" tf:"address_allocation_ids,omitempty"`
// A list of security groups IDs that are available to attach to your server's endpoint. If no security groups are specified, the VPC's default security groups are automatically assigned to your endpoint. This property can only be used when endpoint_type is set to VPC.
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// A list of subnet IDs that are required to host your SFTP server endpoint in your VPC. This property can only be used when endpoint_type is set to VPC.
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
// The ID of the VPC endpoint. This property can only be used when endpoint_type is set to VPC_ENDPOINT
VPCEndpointID *string `json:"vpcEndpointId,omitempty" tf:"vpc_endpoint_id,omitempty"`
// The VPC ID of the virtual private cloud in which the SFTP server's endpoint will be hosted. This property can only be used when endpoint_type is set to VPC.
VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`
}
type EndpointDetailsParameters struct {
// A list of address allocation IDs that are required to attach an Elastic IP address to your SFTP server's endpoint. This property can only be used when endpoint_type is set to VPC.
// +kubebuilder:validation:Optional
AddressAllocationIds []*string `json:"addressAllocationIds,omitempty" tf:"address_allocation_ids,omitempty"`
// A list of security groups IDs that are available to attach to your server's endpoint. If no security groups are specified, the VPC's default security groups are automatically assigned to your endpoint. This property can only be used when endpoint_type is set to VPC.
// +kubebuilder:validation:Optional
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// A list of subnet IDs that are required to host your SFTP server endpoint in your VPC. This property can only be used when endpoint_type is set to VPC.
// +kubebuilder:validation:Optional
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
// The ID of the VPC endpoint. This property can only be used when endpoint_type is set to VPC_ENDPOINT
// +kubebuilder:validation:Optional
VPCEndpointID *string `json:"vpcEndpointId,omitempty" tf:"vpc_endpoint_id,omitempty"`
// The VPC ID of the virtual private cloud in which the SFTP server's endpoint will be hosted. This property can only be used when endpoint_type is set to VPC.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`
// Reference to a VPC in ec2 to populate vpcId.
// +kubebuilder:validation:Optional
VPCIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"`
// Selector for a VPC in ec2 to populate vpcId.
// +kubebuilder:validation:Optional
VPCIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"`
}
type OnPartialUploadObservation struct {
// Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources.
ExecutionRole *string `json:"executionRole,omitempty" tf:"execution_role,omitempty"`
// A unique identifier for the workflow.
WorkflowID *string `json:"workflowId,omitempty" tf:"workflow_id,omitempty"`
}
type OnPartialUploadParameters struct {
// Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources.
// +kubebuilder:validation:Required
ExecutionRole *string `json:"executionRole" tf:"execution_role,omitempty"`
// A unique identifier for the workflow.
// +kubebuilder:validation:Required
WorkflowID *string `json:"workflowId" tf:"workflow_id,omitempty"`
}
type OnUploadObservation struct {
// Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources.
ExecutionRole *string `json:"executionRole,omitempty" tf:"execution_role,omitempty"`
// A unique identifier for the workflow.
WorkflowID *string `json:"workflowId,omitempty" tf:"workflow_id,omitempty"`
}
type OnUploadParameters struct {
// Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources.
// +kubebuilder:validation:Required
ExecutionRole *string `json:"executionRole" tf:"execution_role,omitempty"`
// A unique identifier for the workflow.
// +kubebuilder:validation:Required
WorkflowID *string `json:"workflowId" tf:"workflow_id,omitempty"`
}
type ProtocolDetailsObservation struct {
// Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
As2Transports []*string `json:"as2Transports,omitempty" tf:"as2_transports,omitempty"`
// Indicates passive mode, for FTP and FTPS protocols. Enter a single IPv4 address, such as the public IP address of a firewall, router, or load balancer.
PassiveIP *string `json:"passiveIp,omitempty" tf:"passive_ip,omitempty"`
// Use to ignore the error that is generated when the client attempts to use SETSTAT on a file you are uploading to an S3 bucket. Valid values: DEFAULT, ENABLE_NO_OP.
SetStatOption *string `json:"setStatOption,omitempty" tf:"set_stat_option,omitempty"`
// A property used with Transfer Family servers that use the FTPS protocol. Provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. Valid values: DISABLED, ENABLED, ENFORCED.
TLSSessionResumptionMode *string `json:"tlsSessionResumptionMode,omitempty" tf:"tls_session_resumption_mode,omitempty"`
}
type ProtocolDetailsParameters struct {
// Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
// +kubebuilder:validation:Optional
As2Transports []*string `json:"as2Transports,omitempty" tf:"as2_transports,omitempty"`
// Indicates passive mode, for FTP and FTPS protocols. Enter a single IPv4 address, such as the public IP address of a firewall, router, or load balancer.
// +kubebuilder:validation:Optional
PassiveIP *string `json:"passiveIp,omitempty" tf:"passive_ip,omitempty"`
// Use to ignore the error that is generated when the client attempts to use SETSTAT on a file you are uploading to an S3 bucket. Valid values: DEFAULT, ENABLE_NO_OP.
// +kubebuilder:validation:Optional
SetStatOption *string `json:"setStatOption,omitempty" tf:"set_stat_option,omitempty"`
// A property used with Transfer Family servers that use the FTPS protocol. Provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session. Valid values: DISABLED, ENABLED, ENFORCED.
// +kubebuilder:validation:Optional
TLSSessionResumptionMode *string `json:"tlsSessionResumptionMode,omitempty" tf:"tls_session_resumption_mode,omitempty"`
}
type ServerObservation struct {
// Amazon Resource Name (ARN) of Transfer Server
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate. This is required when protocols is set to FTPS
Certificate *string `json:"certificate,omitempty" tf:"certificate,omitempty"`
// The directory service ID of the directory service you want to connect to with an identity_provider_type of AWS_DIRECTORY_SERVICE.
DirectoryID *string `json:"directoryId,omitempty" tf:"directory_id,omitempty"`
// The domain of the storage system that is used for file transfers. Valid values are: S3 and EFS. The default value is S3.
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
// The endpoint of the Transfer Server (e.g., s-12345678.server.transfer.REGION.amazonaws.com)
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// The virtual private cloud (VPC) endpoint settings that you want to configure for your SFTP server. Fields documented below.
EndpointDetails []EndpointDetailsObservation `json:"endpointDetails,omitempty" tf:"endpoint_details,omitempty"`
// The type of endpoint that you want your SFTP server connect to. If you connect to a VPC (or VPC_ENDPOINT), your SFTP server isn't accessible over the public internet. If you want to connect your SFTP server via public internet, set PUBLIC. Defaults to PUBLIC.
EndpointType *string `json:"endpointType,omitempty" tf:"endpoint_type,omitempty"`
// A boolean that indicates all users associated with the server should be deleted so that the Server can be destroyed without error. The default value is false. This option only applies to servers configured with a SERVICE_MANAGED identity_provider_type.
ForceDestroy *bool `json:"forceDestroy,omitempty" tf:"force_destroy,omitempty"`
// The ARN for a lambda function to use for the Identity provider.
Function *string `json:"function,omitempty" tf:"function,omitempty"`
// This value contains the message-digest algorithm (MD5) hash of the server's host key. This value is equivalent to the output of the ssh-keygen -l -E md5 -f my-new-server-key command.
HostKeyFingerprint *string `json:"hostKeyFingerprint,omitempty" tf:"host_key_fingerprint,omitempty"`
// The Server ID of the Transfer Server (e.g., s-12345678)
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The mode of authentication enabled for this service. The default value is SERVICE_MANAGED, which allows you to store and access SFTP user credentials within the service. API_GATEWAY indicates that user authentication requires a call to an API Gateway endpoint URL provided by you to integrate an identity provider of your choice. Using AWS_DIRECTORY_SERVICE will allow for authentication against AWS Managed Active Directory or Microsoft Active Directory in your on-premises environment, or in AWS using AD Connectors. Use the AWS_LAMBDA value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the function argument.
IdentityProviderType *string `json:"identityProviderType,omitempty" tf:"identity_provider_type,omitempty"`
// Amazon Resource Name (ARN) of the IAM role used to authenticate the user account with an identity_provider_type of API_GATEWAY.
InvocationRole *string `json:"invocationRole,omitempty" tf:"invocation_role,omitempty"`
// Amazon Resource Name (ARN) of an IAM role that allows the service to write your SFTP users’ activity to your Amazon CloudWatch logs for monitoring and auditing purposes.
LoggingRole *string `json:"loggingRole,omitempty" tf:"logging_role,omitempty"`
// The protocol settings that are configured for your server.
ProtocolDetails []ProtocolDetailsObservation `json:"protocolDetails,omitempty" tf:"protocol_details,omitempty"`
// Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. This defaults to SFTP . The available protocols are:
Protocols []*string `json:"protocols,omitempty" tf:"protocols,omitempty"`
// Specifies the name of the security policy that is attached to the server. Possible values are TransferSecurityPolicy-2018-11, TransferSecurityPolicy-2020-06, TransferSecurityPolicy-FIPS-2020-06 and TransferSecurityPolicy-2022-03. Default value is: TransferSecurityPolicy-2018-11.
SecurityPolicyName *string `json:"securityPolicyName,omitempty" tf:"security_policy_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"`
// - URL of the service endpoint used to authenticate users with an identity_provider_type of API_GATEWAY.
URL *string `json:"url,omitempty" tf:"url,omitempty"`
// Specifies the workflow details. See Workflow Details below.
WorkflowDetails []WorkflowDetailsObservation `json:"workflowDetails,omitempty" tf:"workflow_details,omitempty"`
}
type ServerParameters struct {
// The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate. This is required when protocols is set to FTPS
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/acm/v1beta1.Certificate
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("arn",true)
// +kubebuilder:validation:Optional
Certificate *string `json:"certificate,omitempty" tf:"certificate,omitempty"`
// Reference to a Certificate in acm to populate certificate.
// +kubebuilder:validation:Optional
CertificateRef *v1.Reference `json:"certificateRef,omitempty" tf:"-"`
// Selector for a Certificate in acm to populate certificate.
// +kubebuilder:validation:Optional
CertificateSelector *v1.Selector `json:"certificateSelector,omitempty" tf:"-"`
// The directory service ID of the directory service you want to connect to with an identity_provider_type of AWS_DIRECTORY_SERVICE.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ds/v1beta1.Directory
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
DirectoryID *string `json:"directoryId,omitempty" tf:"directory_id,omitempty"`
// Reference to a Directory in ds to populate directoryId.
// +kubebuilder:validation:Optional
DirectoryIDRef *v1.Reference `json:"directoryIdRef,omitempty" tf:"-"`
// Selector for a Directory in ds to populate directoryId.
// +kubebuilder:validation:Optional
DirectoryIDSelector *v1.Selector `json:"directoryIdSelector,omitempty" tf:"-"`
// The domain of the storage system that is used for file transfers. Valid values are: S3 and EFS. The default value is S3.
// +kubebuilder:validation:Optional
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
// The virtual private cloud (VPC) endpoint settings that you want to configure for your SFTP server. Fields documented below.
// +kubebuilder:validation:Optional
EndpointDetails []EndpointDetailsParameters `json:"endpointDetails,omitempty" tf:"endpoint_details,omitempty"`
// The type of endpoint that you want your SFTP server connect to. If you connect to a VPC (or VPC_ENDPOINT), your SFTP server isn't accessible over the public internet. If you want to connect your SFTP server via public internet, set PUBLIC. Defaults to PUBLIC.
// +kubebuilder:validation:Optional
EndpointType *string `json:"endpointType,omitempty" tf:"endpoint_type,omitempty"`
// A boolean that indicates all users associated with the server should be deleted so that the Server can be destroyed without error. The default value is false. This option only applies to servers configured with a SERVICE_MANAGED identity_provider_type.
// +kubebuilder:validation:Optional
ForceDestroy *bool `json:"forceDestroy,omitempty" tf:"force_destroy,omitempty"`
// The ARN for a lambda function to use for the Identity provider.
// +kubebuilder:validation:Optional
Function *string `json:"function,omitempty" tf:"function,omitempty"`
// RSA, ECDSA, or ED25519 private key (e.g., as generated by the ssh-keygen -t rsa -b 2048 -N "" -m PEM -f my-new-server-key, ssh-keygen -t ecdsa -b 256 -N "" -m PEM -f my-new-server-key or ssh-keygen -t ed25519 -N "" -f my-new-server-key commands).
// +kubebuilder:validation:Optional
HostKeySecretRef *v1.SecretKeySelector `json:"hostKeySecretRef,omitempty" tf:"-"`
// The mode of authentication enabled for this service. The default value is SERVICE_MANAGED, which allows you to store and access SFTP user credentials within the service. API_GATEWAY indicates that user authentication requires a call to an API Gateway endpoint URL provided by you to integrate an identity provider of your choice. Using AWS_DIRECTORY_SERVICE will allow for authentication against AWS Managed Active Directory or Microsoft Active Directory in your on-premises environment, or in AWS using AD Connectors. Use the AWS_LAMBDA value to directly use a Lambda function as your identity provider. If you choose this value, you must specify the ARN for the lambda function in the function argument.
// +kubebuilder:validation:Optional
IdentityProviderType *string `json:"identityProviderType,omitempty" tf:"identity_provider_type,omitempty"`
// Amazon Resource Name (ARN) of the IAM role used to authenticate the user account with an identity_provider_type of API_GATEWAY.
// +kubebuilder:validation:Optional
InvocationRole *string `json:"invocationRole,omitempty" tf:"invocation_role,omitempty"`
// Amazon Resource Name (ARN) of an IAM role that allows the service to write your SFTP users’ activity to your Amazon CloudWatch logs for monitoring and auditing purposes.
// +kubebuilder:validation:Optional
LoggingRole *string `json:"loggingRole,omitempty" tf:"logging_role,omitempty"`
// Specify a string to display when users connect to a server. This string is displayed after the user authenticates. The SFTP protocol does not support post-authentication display banners.
// +kubebuilder:validation:Optional
PostAuthenticationLoginBannerSecretRef *v1.SecretKeySelector `json:"postAuthenticationLoginBannerSecretRef,omitempty" tf:"-"`
// Specify a string to display when users connect to a server. This string is displayed before the user authenticates.
// +kubebuilder:validation:Optional
PreAuthenticationLoginBannerSecretRef *v1.SecretKeySelector `json:"preAuthenticationLoginBannerSecretRef,omitempty" tf:"-"`
// The protocol settings that are configured for your server.
// +kubebuilder:validation:Optional
ProtocolDetails []ProtocolDetailsParameters `json:"protocolDetails,omitempty" tf:"protocol_details,omitempty"`
// Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server's endpoint. This defaults to SFTP . The available protocols are:
// +kubebuilder:validation:Optional
Protocols []*string `json:"protocols,omitempty" tf:"protocols,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:"-"`
// Specifies the name of the security policy that is attached to the server. Possible values are TransferSecurityPolicy-2018-11, TransferSecurityPolicy-2020-06, TransferSecurityPolicy-FIPS-2020-06 and TransferSecurityPolicy-2022-03. Default value is: TransferSecurityPolicy-2018-11.
// +kubebuilder:validation:Optional
SecurityPolicyName *string `json:"securityPolicyName,omitempty" tf:"security_policy_name,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// - URL of the service endpoint used to authenticate users with an identity_provider_type of API_GATEWAY.
// +kubebuilder:validation:Optional
URL *string `json:"url,omitempty" tf:"url,omitempty"`
// Specifies the workflow details. See Workflow Details below.
// +kubebuilder:validation:Optional
WorkflowDetails []WorkflowDetailsParameters `json:"workflowDetails,omitempty" tf:"workflow_details,omitempty"`
}
type WorkflowDetailsObservation struct {
// A trigger that starts a workflow if a file is only partially uploaded. See Workflow Detail below.
OnPartialUpload []OnPartialUploadObservation `json:"onPartialUpload,omitempty" tf:"on_partial_upload,omitempty"`
// A trigger that starts a workflow: the workflow begins to execute after a file is uploaded. See Workflow Detail below.
OnUpload []OnUploadObservation `json:"onUpload,omitempty" tf:"on_upload,omitempty"`
}
type WorkflowDetailsParameters struct {
// A trigger that starts a workflow if a file is only partially uploaded. See Workflow Detail below.
// +kubebuilder:validation:Optional
OnPartialUpload []OnPartialUploadParameters `json:"onPartialUpload,omitempty" tf:"on_partial_upload,omitempty"`
// A trigger that starts a workflow: the workflow begins to execute after a file is uploaded. See Workflow Detail below.
// +kubebuilder:validation:Optional
OnUpload []OnUploadParameters `json:"onUpload,omitempty" tf:"on_upload,omitempty"`
}
// ServerSpec defines the desired state of Server
type ServerSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ServerParameters `json:"forProvider"`
}
// ServerStatus defines the observed state of Server.
type ServerStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ServerObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Server is the Schema for the Servers API. Provides a AWS Transfer Server resource.
// +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 Server struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServerSpec `json:"spec"`
Status ServerStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ServerList contains a list of Servers
type ServerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Server `json:"items"`
}
// Repository type metadata.
var (
Server_Kind = "Server"
Server_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Server_Kind}.String()
Server_KindAPIVersion = Server_Kind + "." + CRDGroupVersion.String()
Server_GroupVersionKind = CRDGroupVersion.WithKind(Server_Kind)
)
func init() {
SchemeBuilder.Register(&Server{}, &ServerList{})
}