{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-s3/json-schema/amazon-s3-create-file-system-request-schema.json",
  "title": "CreateFileSystemRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-s3-file-systems-api-openapi.yml#/components/schemas/CreateFileSystemRequest",
  "type": "object",
  "properties": {
    "bucket": {
      "type": "string",
      "description": "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."
    },
    "prefix": {
      "type": "string",
      "description": "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."
    },
    "clientToken": {
      "type": "string",
      "description": "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."
    },
    "kmsKeyId": {
      "type": "string",
      "description": "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 KmsKeyId, the file system will be encrypted."
    },
    "roleArn": {
      "type": "string",
      "description": "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."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/S3FilesTag"
      },
      "description": "An array of key-value pairs to apply as tags to the file system resource. Each tag is a user-defined key-value pair. You can use tags to categorize and manage your file systems. Each key must be unique for the resource."
    },
    "acceptBucketWarning": {
      "type": "boolean",
      "description": "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."
    }
  },
  "required": [
    "bucket",
    "roleArn"
  ],
  "$defs": {
    "S3FilesTag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The tag key. The key can't start with aws:."
        },
        "value": {
          "type": "string",
          "description": "The tag value."
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}