create_mount_session
¶
create_mount_session(
file_system_id: FileSystemId,
*,
config_overrides: Optional[S3FilesClientConfig] = None,
preferred_availability_zone_id: Optional[AvailabilityZoneId] = None,
network_origin: Optional[NetworkOrigin] = None,
) -> CreateMountSessionResponse
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.
Parameters:
-
file_system_id(FileSystemId) –The ID of the S3 File System for which to create the mount session.
-
preferred_availability_zone_id(Optional[AvailabilityZoneId], default:None) –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. -
network_origin(Optional[NetworkOrigin], default:None) –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.
Raises:
-
ThrottlingException–The request was throttled. Retry your request using exponential backoff.
-
ConflictException–The request conflicts with the current state of the resource. This can occur when trying to create a resource that already exists or delete a resource that is in use.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource was not found. Verify that the resource exists and that you have permission to access it.
-
ValidationException–The input parameters are not valid. Check the parameter values and try again.
-
UnknownServiceError–The service returned an error code this client does not model.