-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_server_types.go
executable file
·634 lines (468 loc) · 39.2 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
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
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// 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 EndpointDetailsInitParameters 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.
// +listType=set
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.
// +listType=set
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.
// +listType=set
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.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
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 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.
// +listType=set
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.
// +listType=set
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.
// +listType=set
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
// +listType=set
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
// +listType=set
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
// +listType=set
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/crossplane/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 OnPartialUploadInitParameters 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 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:Optional
ExecutionRole *string `json:"executionRole" tf:"execution_role,omitempty"`
// A unique identifier for the workflow.
// +kubebuilder:validation:Optional
WorkflowID *string `json:"workflowId" tf:"workflow_id,omitempty"`
}
type OnUploadInitParameters 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 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:Optional
ExecutionRole *string `json:"executionRole" tf:"execution_role,omitempty"`
// A unique identifier for the workflow.
// +kubebuilder:validation:Optional
WorkflowID *string `json:"workflowId" tf:"workflow_id,omitempty"`
}
type ProtocolDetailsInitParameters struct {
// Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
// +listType=set
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 ProtocolDetailsObservation struct {
// Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
// +listType=set
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
// +listType=set
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 S3StorageOptionsInitParameters struct {
// Specifies whether or not performance for your Amazon S3 directories is optimized. Valid values are DISABLED, ENABLED.
DirectoryListingOptimization *string `json:"directoryListingOptimization,omitempty" tf:"directory_listing_optimization,omitempty"`
}
type S3StorageOptionsObservation struct {
// Specifies whether or not performance for your Amazon S3 directories is optimized. Valid values are DISABLED, ENABLED.
DirectoryListingOptimization *string `json:"directoryListingOptimization,omitempty" tf:"directory_listing_optimization,omitempty"`
}
type S3StorageOptionsParameters struct {
// Specifies whether or not performance for your Amazon S3 directories is optimized. Valid values are DISABLED, ENABLED.
// +kubebuilder:validation:Optional
DirectoryListingOptimization *string `json:"directoryListingOptimization,omitempty" tf:"directory_listing_optimization,omitempty"`
}
type ServerInitParameters 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/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true)
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/crossplane/upjet/pkg/resource.ExtractResourceID()
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.
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
// The virtual private cloud (VPC) endpoint settings that you want to configure for your SFTP server. See endpoint_details block below for details.
EndpointDetails []EndpointDetailsInitParameters `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"`
// 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).
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.
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.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true)
LoggingRole *string `json:"loggingRole,omitempty" tf:"logging_role,omitempty"`
// Reference to a Role in iam to populate loggingRole.
// +kubebuilder:validation:Optional
LoggingRoleRef *v1.Reference `json:"loggingRoleRef,omitempty" tf:"-"`
// Selector for a Role in iam to populate loggingRole.
// +kubebuilder:validation:Optional
LoggingRoleSelector *v1.Selector `json:"loggingRoleSelector,omitempty" tf:"-"`
// 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.
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.
PreAuthenticationLoginBannerSecretRef *v1.SecretKeySelector `json:"preAuthenticationLoginBannerSecretRef,omitempty" tf:"-"`
// The protocol settings that are configured for your server. See protocol_details block below for details.
ProtocolDetails []ProtocolDetailsInitParameters `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:
// +listType=set
Protocols []*string `json:"protocols,omitempty" tf:"protocols,omitempty"`
// Specifies whether or not performance for your Amazon S3 directories is optimized. This is disabled by default. See s3_storage_options block below for details.
S3StorageOptions []S3StorageOptionsInitParameters `json:"s3StorageOptions,omitempty" tf:"s3_storage_options,omitempty"`
// Specifies the name of the security policy that is attached to the server. Default value is: TransferSecurityPolicy-2018-11. The available values are:
SecurityPolicyName *string `json:"securityPolicyName,omitempty" tf:"security_policy_name,omitempty"`
// For SFTP-enabled servers, and for custom identity providers only. Valid values are PASSWORD, PUBLIC_KEY, PUBLIC_KEY_OR_PASSWORD and PUBLIC_KEY_AND_PASSWORD. Default value is: PUBLIC_KEY_OR_PASSWORD.
SftpAuthenticationMethods *string `json:"sftpAuthenticationMethods,omitempty" tf:"sftp_authentication_methods,omitempty"`
// A set of ARNs of destinations that will receive structured logs from the transfer server such as CloudWatch Log Group ARNs. If provided this enables the transfer server to emit structured logs to the specified locations.
// This is a set of arns of destinations that will receive structured logs from the transfer server
// +listType=set
StructuredLogDestinations []*string `json:"structuredLogDestinations,omitempty" tf:"structured_log_destinations,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
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.
URL *string `json:"url,omitempty" tf:"url,omitempty"`
// Specifies the workflow details. See workflow_details block below for details.
WorkflowDetails []WorkflowDetailsInitParameters `json:"workflowDetails,omitempty" tf:"workflow_details,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. See endpoint_details block below for details.
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. See protocol_details block below for details.
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:
// +listType=set
Protocols []*string `json:"protocols,omitempty" tf:"protocols,omitempty"`
// Specifies whether or not performance for your Amazon S3 directories is optimized. This is disabled by default. See s3_storage_options block below for details.
S3StorageOptions []S3StorageOptionsObservation `json:"s3StorageOptions,omitempty" tf:"s3_storage_options,omitempty"`
// Specifies the name of the security policy that is attached to the server. Default value is: TransferSecurityPolicy-2018-11. The available values are:
SecurityPolicyName *string `json:"securityPolicyName,omitempty" tf:"security_policy_name,omitempty"`
// For SFTP-enabled servers, and for custom identity providers only. Valid values are PASSWORD, PUBLIC_KEY, PUBLIC_KEY_OR_PASSWORD and PUBLIC_KEY_AND_PASSWORD. Default value is: PUBLIC_KEY_OR_PASSWORD.
SftpAuthenticationMethods *string `json:"sftpAuthenticationMethods,omitempty" tf:"sftp_authentication_methods,omitempty"`
// A set of ARNs of destinations that will receive structured logs from the transfer server such as CloudWatch Log Group ARNs. If provided this enables the transfer server to emit structured logs to the specified locations.
// This is a set of arns of destinations that will receive structured logs from the transfer server
// +listType=set
StructuredLogDestinations []*string `json:"structuredLogDestinations,omitempty" tf:"structured_log_destinations,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"`
// - 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 block below for details.
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/crossplane/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/crossplane/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. See endpoint_details block below for details.
// +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.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("arn",true)
// +kubebuilder:validation:Optional
LoggingRole *string `json:"loggingRole,omitempty" tf:"logging_role,omitempty"`
// Reference to a Role in iam to populate loggingRole.
// +kubebuilder:validation:Optional
LoggingRoleRef *v1.Reference `json:"loggingRoleRef,omitempty" tf:"-"`
// Selector for a Role in iam to populate loggingRole.
// +kubebuilder:validation:Optional
LoggingRoleSelector *v1.Selector `json:"loggingRoleSelector,omitempty" tf:"-"`
// 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. See protocol_details block below for details.
// +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
// +listType=set
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 whether or not performance for your Amazon S3 directories is optimized. This is disabled by default. See s3_storage_options block below for details.
// +kubebuilder:validation:Optional
S3StorageOptions []S3StorageOptionsParameters `json:"s3StorageOptions,omitempty" tf:"s3_storage_options,omitempty"`
// Specifies the name of the security policy that is attached to the server. Default value is: TransferSecurityPolicy-2018-11. The available values are:
// +kubebuilder:validation:Optional
SecurityPolicyName *string `json:"securityPolicyName,omitempty" tf:"security_policy_name,omitempty"`
// For SFTP-enabled servers, and for custom identity providers only. Valid values are PASSWORD, PUBLIC_KEY, PUBLIC_KEY_OR_PASSWORD and PUBLIC_KEY_AND_PASSWORD. Default value is: PUBLIC_KEY_OR_PASSWORD.
// +kubebuilder:validation:Optional
SftpAuthenticationMethods *string `json:"sftpAuthenticationMethods,omitempty" tf:"sftp_authentication_methods,omitempty"`
// A set of ARNs of destinations that will receive structured logs from the transfer server such as CloudWatch Log Group ARNs. If provided this enables the transfer server to emit structured logs to the specified locations.
// This is a set of arns of destinations that will receive structured logs from the transfer server
// +kubebuilder:validation:Optional
// +listType=set
StructuredLogDestinations []*string `json:"structuredLogDestinations,omitempty" tf:"structured_log_destinations,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
// +mapType=granular
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 block below for details.
// +kubebuilder:validation:Optional
WorkflowDetails []WorkflowDetailsParameters `json:"workflowDetails,omitempty" tf:"workflow_details,omitempty"`
}
type WorkflowDetailsInitParameters struct {
// A trigger that starts a workflow if a file is only partially uploaded. See Workflow Detail below. See on_partial_upload block below for details.
OnPartialUpload []OnPartialUploadInitParameters `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 on_upload block below for details.
OnUpload []OnUploadInitParameters `json:"onUpload,omitempty" tf:"on_upload,omitempty"`
}
type WorkflowDetailsObservation struct {
// A trigger that starts a workflow if a file is only partially uploaded. See Workflow Detail below. See on_partial_upload block below for details.
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 on_upload block below for details.
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. See on_partial_upload block below for details.
// +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 on_upload block below for details.
// +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"`
// 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 ServerInitParameters `json:"initProvider,omitempty"`
}
// ServerStatus defines the observed state of Server.
type ServerStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ServerObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// Server is the Schema for the Servers API. Provides a AWS Transfer Server resource.
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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: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{})
}