by r3-yamauchi · v1.0.10
The tools based on the AWS Services
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: r3-yamauchi
Version: 1.0.10
Type: tool
English | Japanese
This repository is a personal fork of the AWS Tools plugin (release 0.0.15) under the terms of the Apache License 2.0.
This tool plugin provides a set of tools based on several AWS services, letting you leverage AWS capabilities directly inside Dify applications. It adds custom tools not included in the original AWS Tools plugin, removes a few tools that are less frequently used and harder for me to maintain, and adds custom parameters plus Japanese translations for each tool.
Included tools:
The source code of this plugin is available in the GitHub repository.
This project is distributed under the Apache License 2.0. See LICENSE for the full text, and NOTICE for credit requirements when redistributing derivatives. NOTICE specifies that this implementation is derived from https://github.com/langgenius/dify-official-plugins/tree/main/tools/aws.
bedrock-agent-runtime Retrieve API directly to run semantic or HYBRID search against a specified Knowledge Base.{
"knowledge_base_id": "ABCDEFG8H9",
"query": "Latest product roadmap",
"search_type": "HYBRID",
"max_results": 5,
"guardrail_id": "ab1cd2e3f45g"
}
retrieve_and_generate. Passing knowledge_base_configuration or external_sources_configuration in JSON performs retrieval and generation together. Provide session_configuration and session_id to let Bedrock retain conversation state.{
"result_type": "JSON",
"input": "Please summarize the incident response procedures",
"type": "Knowledge Base",
"knowledge_base_configuration": {
"knowledgeBaseId": "ABCDEFG8H9",
"modelArn":"arn:aws:bedrock:us-west-2::foundation-model/anthropic.claude-3-5-sonnet-20240620-v1:0",
"retrievalConfiguration": {
"vectorSearchConfiguration": {"numberOfResults": 3}
}
}
}
apply_guardrail.{
"guardrail_id": "ab1cd2e3f45g",
"guardrail_version": "1",
"source": "INPUT",
"content": [
{ "text": { "text": "User input text 1" } },
{ "text": { "text": "User input text 2" } }
]
}
{
"guardrail_id": "ab1cd2e3f45g",
"guardrail_version": "2",
"source": "OUTPUT",
"content": [
{
"image": {
"format": "png",
"source": { "s3Uri": "s3://bucket/path/image.png" }
}
},
{ "text": { "text": "Response generated by the LLM" } }
]
}
{
"task": "TEXT_IMAGE",
"prompt": "A lighthouse during a storm",
"output_s3_uri": "s3://my-bucket/outputs/canvas.png"
}
{
"mode": "TEXT_TO_VIDEO",
"prompt": "A drone flyover of snowy mountains",
"output_s3_uri": "s3://my-bucket/outputs/reel.mp4",
"wait_for_completion": true
}
{
"gif_url": "https://example.com/anim.gif",
"frame_count": 4
}
statusCode 200.lambda_name: yaml-to-json
yaml_content: |
key: value
list:
- a
- b
list_knowledge_bases to enumerate available knowledge bases, returning summaries (status, creation date, vector store) and pagination tokens for downstream filtering.{
"max_results": 20
}
list_data_sources for a given knowledge base, returning connector information, synchronization state, and pagination tokens so you can select the correct source before running ingestion jobs.{
"knowledge_base_id": "ABCDEFG8H9",
"max_results": 10
}
StartIngestionJob for a given knowledge base/data source pair so you can synchronize documents on demand, optionally setting a client token or deletion policy.{
"knowledge_base_id": "ABCDEFG8H9",
"data_source_id": "ds-001",
"client_token": "sync-20250227"
}
create_invalidation for a distribution. Accepts either paths (e.g., ["/*"] or ["/index.html", "/css/*"]) or an invalidation_batch JSON, and optional caller_reference; defaults invalidate all paths.{
"distribution_id": "D123456"
}
{
"distribution_id": "D123456",
"paths": ["/index.html", "/css/*"]
}
{
"distribution_id": "D123456",
"caller_reference": "my-ref-1",
"invalidation_batch": {
"Paths": {
"Items": ["/*"]
}
}
}
{
"bucket_name": "my-bucket",
"object_key": "uploads/example.txt",
"file": "{{file}}",
"return_presigned_url": true
}
s3:// URIs; this example writes JSON text.{
"operation": "write",
"s3_uri": "s3://my-bucket/config.json",
"text": "{\"env\":\"prod\"}"
}
presign_only / download_mode).{
"bucket_name": "my-bucket",
"object_key": "reports/latest.pdf",
"presign_only": true,
"expires_in": 600
}
put_item / get_item / delete_item with JSON item_data.{
"operation": "put_item",
"table_name": "users",
"partition_key_name": "user_id",
"item_data": {
"user_id": "u-1",
"name": "Alice"
}
}
{
"log_group_name": "/aws/lambda/my-function",
"log_stream_name_prefix": "2025/01/04",
"order_by": "LastEventTime",
"descending": true,
"max_items": 20
}
{
"log_group_name": "/aws/lambda/my-function",
"log_stream_names": "2025/01/04/[$LATEST]abc123,2025/01/04/[$LATEST]def456",
"start_time": "1h",
"filter_pattern": "ERROR",
"max_events": 500
}
{
"log_group_name": "/aws/lambda/my-function",
"log_stream_name": "2025/01/04/[$LATEST]abc123",
"start_time": "2025-01-04T00:00:00Z",
"end_time": "2025-01-04T23:59:59Z",
"start_from_head": true,
"max_events": 10000
}
{
"log_group_names": "/aws/lambda/function1,/aws/lambda/function2",
"query_string": "fields @timestamp, @message | filter @message like /ERROR/ | stats count() by bin(5m) | sort @timestamp desc",
"start_time": "1d",
"max_results": 1000
}
{
"topic_arn": "arn:aws:sns:us-east-1:111122223333:alerts",
"message": "Deployed v1.2.3",
"subject": "Deploy notice"
}
{
"queue_url": "https://sqs.us-east-1.amazonaws.com/111122223333/tasks",
"message_body": "{\"job_id\":123}",
"delay_seconds": 5
}
{
"operation": "invoke",
"agent_id": "agent-abc123",
"input_text": "Please execute data analysis",
"session_id": "session-001",
"enable_trace": true,
"end_session": false
}
{
"operation": "list",
"max_results": 50,
"filter_name_prefix": "prod-",
"sort_by": "createdAt",
"sort_order": "desc"
}
{
"operation": "create",
"memory_name": "customer-support-memory",
"description": "Memory for customer support",
"tags": {
"Environment": "production",
"Team": "support"
}
}
{
"operation": "list",
"memory_id": "mem-abc123",
"start_time": "2025-01-01T00:00:00Z",
"end_time": "2025-01-31T23:59:59Z",
"filter_actor_id": "user001",
"max_results": 100
}
{
"operation": "export",
"memory_id": "mem-abc123",
"format": "csv",
"output_location": "s3://my-bucket/exports/events.csv",
"start_time": "1w"
}
{
"operation": "memory_stats",
"memory_id": "mem-abc123"
}
{
"operation": "actor_stats",
"memory_id": "mem-abc123",
"start_time": "7d",
"top_n": 10
}
{
"operation": "timeline",
"memory_id": "mem-abc123",
"start_time": "2025-01-01T00:00:00Z",
"end_time": "2025-01-31T23:59:59Z",
"interval": "1h"
}
{
"operation": "get_session_metrics",
"session_id": "session-abc123",
"metric_types": "duration,token_count,error_rate"
}
{
"operation": "get_logs",
"log_group_name": "/aws/bedrock/agentcore",
"start_time": "1h",
"filter_pattern": "ERROR",
"max_events": 100
}
{
"operation": "analyze_performance",
"trace_id": "trace-abc123",
"include_bottlenecks": true
}
{
"operation": "backup",
"memory_id": "mem-abc123",
"backup_location": "s3://my-backup-bucket/backups/",
"include_events": true,
"include_strategies": true,
"compression": "gzip",
"encryption": true
}
{
"operation": "restore",
"backup_location": "s3://my-backup-bucket/backups/mem-abc123-20250115.json.gz",
"target_memory_id": "mem-new123",
"conflict_resolution": "skip"
}
{
"operation": "merge",
"source_memory_ids": "mem-abc123,mem-def456,mem-ghi789",
"target_memory_id": "mem-merged",
"merge_conflict_resolution": "keep_latest",
"deduplicate": true,
"merge_strategies": true
}
{
"operation": "split",
"source_memory_id": "mem-abc123",
"split_by": "actor_id",
"target_memory_prefix": "memory-actor-",
"create_index": true
}
{
"operation": "search",
"memory_id": "mem-abc123",
"query": {
"and": [
{"field": "actor_id", "operator": "equals", "value": "user001"},
{"field": "timestamp", "operator": "greater_than", "value": "2025-01-01T00:00:00Z"}
]
},
"max_results": 50
}
{
"operation": "similarity_search",
"memory_id": "mem-abc123",
"query_text": "Investigate the cause of the error",
"top_k": 10,
"similarity_threshold": 0.7
}
{
"operation": "create_template",
"template_name": "customer-support-template",
"description": "Standard template for customer support",
"memory_config": {
"retention_days": 90,
"max_events": 10000,
"enable_search": true
},
"tags": {
"Type": "support",
"Version": "1.0"
}
}
{
"operation": "create_from_template",
"template_id": "template-abc123",
"memory_name": "support-team-a-memory",
"override_config": {
"retention_days": 180
}
}
{
"operation": "upload",
"session_id": "session-abc123",
"file_path": "/path/to/data.csv",
"file_name": "data.csv",
"description": "Data for analysis"
}
{
"operation": "list",
"session_id": "session-abc123",
"filter_extension": ".csv",
"sort_by": "upload_time",
"sort_order": "desc"
}
{
"memory_id": "mem-abc123",
"query": "Error handling",
"filter_actor_id": "user001",
"filter_start_time": "2025-01-01T00:00:00Z",
"filter_end_time": "2025-01-31T23:59:59Z",
"sort_by": "relevance",
"page_size": 50,
"enable_highlight": true,
"context_size": 100
}
{
"operation": "execute",
"code": "print(1+1)",
"language": "python"
}
retrieve_memories for a memory/namespace with top_k limit.{
"memory_id": "mem-abc",
"namespace": "default",
"query": "error logs",
"top_k": 5
}
operation=record or retrieve.{
"operation": "record",
"memory_id": "mem-123",
"actor_id": "user",
"role": "user",
"content": "Hello!"
}
Lambda YAML to JSON – Lightweight wrapper for reusing your Lambda workloads from workflows.
Lambda Invoker – Calls any Lambda function name or ARN with a JSON payload, optional qualifier, per-call credentials, and tail logs for quick serverless utilities.
{
"lambda_name": "my-function",
"payload_json": {"action": "ping"},
"invocation_type": "RequestResponse",
"include_logs": true
}
{
"state_machine_arn": "arn:aws:states:us-east-1:111122223333:stateMachine:MyFlow",
"input_json": {"task": "sync"},
"name": "run-001"
}
profile_name or region_name is not specified, it uses the AWS Credential Provider Chain (environment variables, ~/.aws/credentials, IAM roles, etc.) to obtain default credentials. When running on EC2 instances or ECS tasks, it can automatically retrieve temporary credentials from instance profiles or task roles.{
"profile_name": "development",
"region_name": "ap-northeast-1"
}
{}
(Retrieve default credentials without parameters)
{
"role_arn": "arn:aws:iam::123456789012:role/MyRole",
"role_session_name": "DifySession",
"duration_seconds": 3600
}
{
"role_arn": "arn:aws:iam::123456789012:role/CrossAccountRole",
"role_session_name": "CrossAccountSession",
"external_id": "unique-external-id-123",
"serial_number": "arn:aws:iam::123456789012:mfa/user",
"token_code": "123456"
}
The plugin is designed to interact with AWS services (such as Bedrock, Lambda, S3, and DynamoDB) on your behalf. It does not collect analytics or telemetry beyond what is required to fulfill the tool invocations you issue.