Interface CfnServer.ProtocolDetailsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServer.ProtocolDetailsProperty.Jsii$Proxy
- Enclosing class:
CfnServer
Avoid placing Network Load Balancers (NLBs) or NAT gateways in front of AWS Transfer Family servers, as this increases costs and can cause performance issues, including reduced connection limits for FTPS. For more details, see Avoid placing NLBs and NATs in front of AWS Transfer Family .
- To indicate passive mode (for FTP and FTPS protocols), use the
PassiveIpparameter. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. - To ignore the error that is generated when the client attempts to use the
SETSTATcommand on a file that you are uploading to an Amazon S3 bucket, use theSetStatOptionparameter. To have the AWS Transfer Family server ignore theSETSTATcommand and upload files without needing to make any changes to your SFTP client, set the value toENABLE_NO_OP. If you set theSetStatOptionparameter toENABLE_NO_OP, Transfer Family generates a log entry to Amazon CloudWatch Logs, so that you can determine when the client is making aSETSTATcall. - To determine whether your AWS Transfer Family server resumes recent, negotiated sessions through a unique session ID, use the
TlsSessionResumptionModeparameter. As2Transportsindicates the transport method for the AS2 messages. Currently, only HTTP is supported.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.transfer.*;
ProtocolDetailsProperty protocolDetailsProperty = ProtocolDetailsProperty.builder()
.as2Transports(List.of("as2Transports"))
.passiveIp("passiveIp")
.setStatOption("setStatOption")
.tlsSessionResumptionMode("tlsSessionResumptionMode")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServer.ProtocolDetailsPropertystatic final classAn implementation forCfnServer.ProtocolDetailsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()List ofAs2Transportobjects.default StringIndicates passive mode, for FTP and FTPS protocols.default StringUse theSetStatOptionto ignore the error that is generated when the client attempts to useSETSTATon a file you are uploading to an S3 bucket.default StringA property used with Transfer Family servers that use the FTPS protocol.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAs2Transports
List ofAs2Transportobjects.- See Also:
-
getPassiveIp
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. For example:
aws transfer update-server --protocol-details PassiveIp=0.0.0.0Replace
0.0.0.0in the example above with the actual IP address you want to use.If you change the
PassiveIpvalue, you must stop and then restart your Transfer Family server for the change to take effect. For details on using passive mode (PASV) in a NAT environment, see Configuring your FTPS server behind a firewall or NAT with AWS Transfer Family .Additionally, avoid placing Network Load Balancers (NLBs) or NAT gateways in front of AWS Transfer Family servers. This configuration increases costs and can cause performance issues. When NLBs or NATs are in the communication path, Transfer Family cannot accurately recognize client IP addresses, which impacts connection sharding and limits FTPS servers to only 300 simultaneous connections instead of 10,000. If you must use an NLB, use port 21 for health checks and enable TLS session resumption by setting
TlsSessionResumptionMode = ENFORCED. For optimal performance, migrate to VPC endpoints with Elastic IP addresses instead of using NLBs. For more details, see Avoid placing NLBs and NATs in front of AWS Transfer Family .Special values
The
AUTOand0.0.0.0are special values for thePassiveIpparameter. The valuePassiveIp=AUTOis assigned by default to FTP and FTPS type servers. In this case, the server automatically responds with one of the endpoint IPs within the PASV response.PassiveIp=0.0.0.0has a more unique application for its usage. For example, if you have a High Availability (HA) Network Load Balancer (NLB) environment, where you have 3 subnets, you can only specify a single IP address using thePassiveIpparameter. This reduces the effectiveness of having High Availability. In this case, you can specifyPassiveIp=0.0.0.0. This tells the client to use the same IP address as the Control connection and utilize all AZs for their connections. Note, however, that not all FTP clients support thePassiveIp=0.0.0.0response. FileZilla and WinSCP do support it. If you are using other clients, check to see if your client supports thePassiveIp=0.0.0.0response.- See Also:
-
getSetStatOption
Use theSetStatOptionto ignore the error that is generated when the client attempts to useSETSTATon a file you are uploading to an S3 bucket.Some SFTP file transfer clients can attempt to change the attributes of remote files, including timestamp and permissions, using commands, such as
SETSTATwhen uploading the file. However, these commands are not compatible with object storage systems, such as Amazon S3. Due to this incompatibility, file uploads from these clients can result in errors even when the file is otherwise successfully uploaded.Set the value to
ENABLE_NO_OPto have the Transfer Family server ignore theSETSTATcommand, and upload files without needing to make any changes to your SFTP client. While theSetStatOptionENABLE_NO_OPsetting ignores the error, it does generate a log entry in Amazon CloudWatch Logs, so you can determine when the client is making aSETSTATcall.If you want to preserve the original timestamp for your file, and modify other file attributes using
SETSTAT, you can use Amazon EFS as backend storage with Transfer Family.- See Also:
-
getTlsSessionResumptionMode
A property used with Transfer Family servers that use the FTPS protocol.TLS Session Resumption provides a mechanism to resume or share a negotiated secret key between the control and data connection for an FTPS session.
TlsSessionResumptionModedetermines whether or not the server resumes recent, negotiated sessions through a unique session ID. This property is available duringCreateServerandUpdateServercalls. If aTlsSessionResumptionModevalue is not specified duringCreateServer, it is set toENFORCEDby default.DISABLED: the server does not process TLS session resumption client requests and creates a new TLS session for each request.ENABLED: the server processes and accepts clients that are performing TLS session resumption. The server doesn't reject client data connections that do not perform the TLS session resumption client processing.ENFORCED: the server processes and accepts clients that are performing TLS session resumption. The server rejects client data connections that do not perform the TLS session resumption client processing. Before you set the value toENFORCED, test your clients.
Not all FTPS clients perform TLS session resumption. So, if you choose to enforce TLS session resumption, you prevent any connections from FTPS clients that don't perform the protocol negotiation. To determine whether or not you can use the
ENFORCEDvalue, you need to test your clients.- See Also:
-
builder
-