import { EnterpriseBadge, IconSpark } from "@humansignal/ui";
|
import { Alert, AlertTitle, AlertDescription } from "@humansignal/shad/components/ui/alert";
|
import { IconCloudProviderS3 } from "@humansignal/icons";
|
import type { ProviderConfig } from "@humansignal/app-common/blocks/StorageProviderForm/types/provider";
|
|
const s3sProvider: ProviderConfig = {
|
name: "s3s",
|
title: "Amazon S3\n使用 IAM 角色",
|
description: "配置您的 AWS S3 连接,使用 IAM 角色访问以增强安全性(仅代理模式)",
|
icon: IconCloudProviderS3,
|
disabled: true,
|
badge: <EnterpriseBadge />,
|
fields: [
|
{
|
name: "enterprise_info",
|
type: "message",
|
content: (
|
<Alert variant="gradient">
|
<IconSpark />
|
<AlertTitle>Enterprise Feature</AlertTitle>
|
<AlertDescription>
|
Amazon S3 with IAM Role is available in Label Studio Enterprise.{" "}
|
<a
|
href="https://docs.humansignal.com/guide/storage.html#Set-up-an-S3-connection-with-IAM-role-access"
|
target="_blank"
|
rel="noopener noreferrer"
|
className="underline hover:no-underline"
|
>
|
Learn more
|
</a>
|
</AlertDescription>
|
</Alert>
|
),
|
},
|
],
|
layout: [{ fields: ["enterprise_info"] }],
|
};
|
|
export default s3sProvider;
|