2026/11/29 - Amazon S3 Files - 1 new api methods
Changes Amazon S3 file systems supports mounting from outside your virtual private cloud (VPC).
Creates a mount session for an S3 File System and returns a set of endpoints that you can use to mount the file system. Each endpoint includes an IP address, a port, and a mount token that a client presents when it connects to the endpoint.
See also: AWS API Documentation
Request Syntax
client.create_mount_session(
fileSystemId='string',
preferredAvailabilityZoneId='string',
networkOrigin='AWS_NETWORK'|'EXTERNAL_NETWORK'
)
string
[REQUIRED]
The ID of the S3 File System for which to create the mount session.
string
The ID of the Availability Zone (for example, use1-az1) in which you prefer the returned endpoints to be located. The Availability Zone must be in the same Amazon Web Services Region as the file system. This preference is best effort: if an endpoint in the preferred Availability Zone isn't available, endpoints in another Availability Zone are returned instead of failing the request. If you don't specify a value, endpoints are returned without an Availability Zone preference.
string
Indicates whether the client connects to the file system from within the Amazon Web Services Cloud ( AWS_NETWORK). External network ( EXTERNAL_NETWORK) connections are not supported.
dict
Response Syntax
{
'fileSystemId': 'string',
'preferredAvailabilityZoneId': 'string',
'endpoints': [
{
'availabilityZoneId': 'string',
'ipv4Address': 'string',
'ipv6Address': 'string',
'port': 123,
'mountToken': 'string',
'issuedAt': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
fileSystemId (string) --
The ID of the S3 File System that the mount session applies to.
preferredAvailabilityZoneId (string) --
The ID of the preferred Availability Zone that was specified in the request, if any. The Availability Zone of an individual endpoint can differ from this value.
endpoints (list) --
The endpoints that you can use to mount the file system. Each endpoint includes an IP address, a port, and a mount token.
(dict) --
Describes a single endpoint that a client can use to mount an S3 File System. An endpoint includes the network address, port, and mount token for the connection.
availabilityZoneId (string) --
The ID of the Availability Zone in which the endpoint is located.
ipv4Address (string) --
The IPv4 address to connect to for this endpoint.
ipv6Address (string) --
The IPv6 address to connect to for this endpoint.
port (integer) --
The port to connect to for this endpoint.
mountToken (string) --
An opaque token that the client presents when it connects to this endpoint to mount the file system. Treat the mount token as a credential and keep it secret.
issuedAt (datetime) --
The time at which this endpoint was issued.