v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142110684.3 KB

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.

put/file-systems

Request body

bucketstring required

The Amazon Resource Name (ARN) of the S3 bucket that will be accessible through the file system. The bucket must exist and be in the same Amazon Web Services Region as the file system.

prefixstring

An optional prefix within the S3 bucket to scope the file system access. If specified, the file system provides access only to objects with keys that begin with this prefix. If not specified, the file system provides access to the entire bucket.

clientTokenstring

A unique, case-sensitive identifier that you provide to ensure idempotent creation. Up to 64 ASCII characters are allowed. If you don't specify a client token, the Amazon Web Services SDK automatically generates one.

kmsKeyIdstring

The ARN, key ID, or alias of the KMS key to use for encryption. If not specified, the service uses a service-owned key for encryption. You can specify a KMS key using the following formats: key ID, ARN, key alias, or key alias ARN. If you use <code>KmsKeyId</code>, the file system will be encrypted.

roleArnstring required

The ARN of the IAM role that grants the S3 Files service permission to read and write data between the file system and the S3 bucket. This role must have the necessary permissions to access the specified bucket and prefix.

acceptBucketWarningboolean

Set to true to acknowledge and accept any warnings about the bucket configuration. If not specified, the operation may fail if there are bucket configuration warnings.

Response

Success

creationTimestring date-time

The time when the file system was created, in seconds since 1970-01-01T00:00:00Z (Unix epoch time).

fileSystemArnstring

The ARN for the S3 file system, in the format <code>arn:aws:s3files:region:account-id:file-system/file-system-id</code>.

fileSystemIdstring

The ID of the file system, assigned by S3 Files. This ID is used to reference the file system in subsequent API calls.

bucketstring

The Amazon Resource Name (ARN) of the S3 bucket associated with the file system.

prefixstring

The prefix within the S3 bucket that scopes the file system access.

clientTokenstring

The client token used for idempotency.

kmsKeyIdstring

The ARN or alias of the KMS key used for encryption.

status'available' | 'creating' | 'deleting' | 'deleted' | 'error' | 'updating'

The lifecycle state of the file system. Valid values are: <code>AVAILABLE</code> (the file system is available for use), <code>CREATING</code> (the file system is being created), <code>DELETING</code> (the file system is being deleted), <code>DELETED</code> (the file system has been deleted), <code>ERROR</code> (the file system is in an error state), or <code>UPDATING</code> (the file system is being updated).

statusMessagestring

Additional information about the file system status. This field provides more details when the status is <code>ERROR</code>, or during state transitions.

roleArnstring

The ARN of the IAM role used for S3 access.

ownerIdstring

The Amazon Web Services account ID of the file system owner.

namestring

The name of the file system, derived from the <code>Name</code> tag if present.