{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datasync/json-schema/amazon-datasync-create-location-fsx-windows-request-schema.json",
  "title": "CreateLocationFsxWindowsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datasync-location-fsx-window-api-openapi.yml#/components/schemas/CreateLocationFsxWindowsRequest",
  "type": "object",
  "properties": {
    "Subdirectory": {
      "type": "string",
      "description": "Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes data (depending on if this is a source or destination location)."
    },
    "FsxFilesystemArn": {
      "type": "string",
      "description": "Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system."
    },
    "SecurityGroupArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specifies the ARNs of the Amazon EC2 security groups that provide access to your file system's preferred subnet. The security groups that you specify must be able to communicate with your file system's security groups. For information about configuring security groups for file system access, see the Amazon FSx for Windows File Server User Guide . If you choose a security group that doesn't allow connections from within itself, do one of the following: Configure the security group to allow it to communicate within itself. Choose a different security group that can communicate with the mount tar"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagListEntry"
      },
      "description": "Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location."
    },
    "User": {
      "type": "string",
      "description": "Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system. For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations."
    },
    "Domain": {
      "type": "string",
      "description": "Specifies the name of the Windows domain that the FSx for Windows File Server file system belongs to. If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system."
    },
    "Password": {
      "type": "string",
      "description": "Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system."
    },
    "CmkSecretConfig": {
      "$ref": "#/$defs/CmkSecretConfig"
    },
    "CustomSecretConfig": {
      "$ref": "#/$defs/CustomSecretConfig"
    }
  },
  "required": [
    "FsxFilesystemArn",
    "SecurityGroupArns",
    "User"
  ],
  "$defs": {
    "CmkSecretConfig": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "Specifies the ARN for the DataSync-managed Secrets Manager secret that that is used to access a specific storage location. This property is generated by DataSync and is read-only. DataSync encrypts this secret with the KMS key that you specify for KmsKeyArn."
        },
        "KmsKeyArn": {
          "type": "string",
          "description": "Specifies the ARN for the customer-managed KMS key that DataSync uses to encrypt the DataSync-managed secret stored for SecretArn. DataSync provides this key to Secrets Manager."
        }
      }
    },
    "CustomSecretConfig": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "Specifies the ARN for an Secrets Manager secret."
        },
        "SecretAccessRoleArn": {
          "type": "string",
          "description": "Specifies the ARN for the Identity and Access Management role that DataSync uses to access the secret specified for SecretArn."
        }
      }
    },
    "TagListEntry": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key for an Amazon Web Services resource tag."
        },
        "Value": {
          "type": "string",
          "description": "The value for an Amazon Web Services resource tag."
        }
      },
      "required": [
        "Key"
      ]
    }
  }
}