Updating Vocabulary Entities
Use the InvokeDataAutomationLibraryIngestionJob with "UPSERT" operation type to update existing vocabulary entities for the same entityId. This will replace the entire entity with the new content.
Important
UPSERT operations are clobber-style at the entity level. The entire entity is replaced, not merged.
AWS CLI Example:
Note that this operation is same as Adding New Vocabulary Entities.
Request
aws bedrock-data-automation-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 "UPSERT" \ --input-configuration '{"s3Object":{"s3Uri":"s3://my-bucket/manifests/vocabulary-manifest.json"}}' \ --output-configuration '{"s3Uri":"s3://my-bucket/outputs/"}'
AWS Console Example:
Navigate to the "Library details" page for your library
Select the desired entity from the "Custom vocabulary lists"
-
Make the desired modifications:
-
Update:
Select the desired phrase
Update the phrase
Choose the check mark to the right of the phrase
-
Delete
Select the checkbox to the left of the desired phrase(s)
Choose "Delete phrases"
-
Choose "Save updates"