Class ProtocolDetails
- java.lang.Object
-
- software.amazon.awssdk.services.transfer.model.ProtocolDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ProtocolDetails.Builder,ProtocolDetails>
@Generated("software.amazon.awssdk:codegen") public final class ProtocolDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ProtocolDetails.Builder,ProtocolDetails>
The protocol settings that are configured for your server.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProtocolDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<As2Transport>as2Transports()Indicates the transport method for the AS2 messages.List<String>as2TransportsAsStrings()Indicates the transport method for the AS2 messages.static ProtocolDetails.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAs2Transports()For responses, this returns true if the service returned a value for the As2Transports property.inthashCode()StringpassiveIp()Indicates passive mode, for FTP and FTPS protocols.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ProtocolDetails.Builder>serializableBuilderClass()SetStatOptionsetStatOption()Use theSetStatOptionto ignore the error that is generated when the client attempts to useSETSTATon a file you are uploading to an S3 bucket.StringsetStatOptionAsString()Use theSetStatOptionto ignore the error that is generated when the client attempts to useSETSTATon a file you are uploading to an S3 bucket.TlsSessionResumptionModetlsSessionResumptionMode()A property used with Transfer Family servers that use the FTPS protocol.StringtlsSessionResumptionModeAsString()A property used with Transfer Family servers that use the FTPS protocol.ProtocolDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
passiveIp
public final String passiveIp()
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 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.- Returns:
- 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 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.
-
tlsSessionResumptionMode
public final TlsSessionResumptionMode tlsSessionResumptionMode()
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.
If the service returns an enum value that is not available in the current SDK version,
tlsSessionResumptionModewill returnTlsSessionResumptionMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtlsSessionResumptionModeAsString().- Returns:
- 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:
TlsSessionResumptionMode
-
-
tlsSessionResumptionModeAsString
public final String tlsSessionResumptionModeAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
tlsSessionResumptionModewill returnTlsSessionResumptionMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtlsSessionResumptionModeAsString().- Returns:
- 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:
TlsSessionResumptionMode
-
-
setStatOption
public final SetStatOption setStatOption()
Use the
SetStatOptionto 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.If the service returns an enum value that is not available in the current SDK version,
setStatOptionwill returnSetStatOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsetStatOptionAsString().- Returns:
- Use the
SetStatOptionto 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:
SetStatOption
-
setStatOptionAsString
public final String setStatOptionAsString()
Use the
SetStatOptionto 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.If the service returns an enum value that is not available in the current SDK version,
setStatOptionwill returnSetStatOption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsetStatOptionAsString().- Returns:
- Use the
SetStatOptionto 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:
SetStatOption
-
as2Transports
public final List<As2Transport> as2Transports()
Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAs2Transports()method.- Returns:
- Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
-
hasAs2Transports
public final boolean hasAs2Transports()
For responses, this returns true if the service returned a value for the As2Transports property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
as2TransportsAsStrings
public final List<String> as2TransportsAsStrings()
Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAs2Transports()method.- Returns:
- Indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
-
toBuilder
public ProtocolDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ProtocolDetails.Builder,ProtocolDetails>
-
builder
public static ProtocolDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends ProtocolDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-