AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Creates an S3 File System resource scoped to a bucket or prefix within a bucket, enabling file system access to S3 data. To create a file system, you need an S3 bucket and an IAM role that grants the service permission to access the bucket.

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.7.2 or higher.

Namespace: Amazon.S3Files
Assembly: AWSSDK.S3Files.dll
Version: 3.x.y.z

Syntax

C#
public virtual Task<CreateFileSystemResponse> CreateFileSystemAsync(
         CreateFileSystemRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.S3Files.Model.CreateFileSystemRequest

Container for the necessary parameters to execute the CreateFileSystem service method.

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the CreateFileSystem service method, as returned by S3Files.

Exceptions

ExceptionCondition
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.
ServiceQuotaExceededException The request would exceed a service quota. Review your service quotas and either delete resources or request a quota increase.
ThrottlingException The request was throttled. Retry your request using exponential backoff.
ValidationException The input parameters are not valid. Check the parameter values and try again.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer

See Also