View a markdown version of this page

語彙リストの削除 - Amazon Bedrock

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

語彙リストの削除

InvokeDataAutomationLibraryIngestionJob を「DELETE」オペレーションタイプで使用して、ライブラリから特定のエンティティを削除します。

AWS CLI の例:

オプション 1: S3 マニフェストファイルの使用

ステップ 1: JSONL マニフェストファイルを作成する

entityIds のリストを含むシンプルな s3 マニフェストファイルを作成します。

例: cv-delete-manifest.json

{"entityIds": ["medical-en", "medical-es"]}

ステップ 2: マニフェストを S3 にアップロードする

aws s3 cp vocabulary-manifest.json s3://my-bucket/manifests/

ステップ 3: 取り込みジョブを開始する

InvokeDataAutomationLibraryIngestionJob を使用して、オペレーションタイプ DELETE で語彙取り込みジョブを開始する

[リクエスト]

aws bedrock-data-automation invoke-data-automation-library-ingestion-job \ --library-arn "arn:aws:bedrock:us-east-1:123456789012:data-automation-library/healthcare-vocabulary" \ --entity-type "VOCABULARY" \ --operation-type "DELETE" \ --input-configuration '{"s3Object":{"s3Uri":"s3://my-bucket/manifests/cv-delete-manifest.json"}}' \ --output-configuration '{"s3Uri":"s3://my-bucket/outputs/"}'

レスポンス:

{ "jobArn": "arn:aws:bedrock:us-east-1:123456789012:data-automation-library-ingestion-job/job-12345" }

オプション 2: インラインペイロードを使用する

[リクエスト]

aws bedrock-data-automation invoke-data-automation-library-ingestion-job \ --library-arn "arn:aws:bedrock:us-east-1:123456789012:data-automation-library/healthcare-vocabulary" \ --entity-type "VOCABULARY" \ --operation-type "DELETE" \ --input-configuration '{"inlinePayload":{"deleteEntitiesInfo":{"entityIds": ["medical-en"]}}}' \ --output-configuration '{"s3Uri": "s3://my-bucket/outputs/"}'

AWS コンソールの例:

  1. ライブラリの「ライブラリの詳細」ページに移動します。

  2. 「カスタム語彙リスト」から目的のエンティティを選択します。

  3. 「カスタム語彙リストの削除」を選択します。