Name:
interface
Value:
Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.
Maintenance ModeYou are viewing Amplify Gen 1 documentation. Amplify Gen 1 has entered maintenance mode and will reach end of life on May 1, 2027. New project should use Amplify Gen 2. For existing Gen 1 projects, a migration guide and tooling are available to help you upgrade. Switch to the latest Gen 2 docs →

ディレクティブ

You are currently viewing the legacy GraphQL Transformer documentation. View latest documentation

Amplify CLIは、カスタムインデックス、認可ルール、関数トリガーなど、スキーマに追加機能を付与するGraphQLディレクティブを提供します。

Amplify提供のディレクティブ

DataStoreの制限: カスタム主キーはGraphQL Transformer v1でサポートされていません。 DataStoreでカスタム主キーを活用するには、GraphQL Transformer v2にアップグレードしてください。

AWS AppSync提供のディレクティブ

以下のディレクティブはAppSyncサービスでサポートされており、Amplify GraphQLスキーマ内で使用できます。これらはAmplify CLIでは処理されず、サービスにそのまま渡され、出力スキーマに存在します。例えば、Amplifyの@authディレクティブは、出力スキーマの下でこれらのディレクティブを追加します。

  • @aws_api_key
  • @aws_iam
  • @aws_oidc
  • @aws_cognito_user_pools
  • @aws_auth
  • @aws_subscribe

これらのディレクティブの詳細については、AWS AppSync Developer Guideをご覧ください。

サードパーティディレクティブ

独自のトランスフォーマーとディレクティブを構築したいですか?独自のトランスフォーマーとディレクティブを作成する方法に関するガイドをご覧ください。