Skip to content

Commit 6d3771a

Browse files
author
dinsajwa
committed
fix(bda): updated documenation
1 parent 8eb2e79 commit 6d3771a

File tree

1 file changed

+22
-1
lines changed
  • lambda/aws-bedrock-data-automation/bda_project

1 file changed

+22
-1
lines changed

lambda/aws-bedrock-data-automation/bda_project/lambda.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def process_api_gateway_event(event: Dict[str, Any]) -> Dict[str, Any]:
5959
raise ValueError("Invalid JSON in request body")
6060

6161

62-
@tracer.capture_lambda_handler
62+
#@tracer.capture_lambda_handler
6363
def handler(event: Dict[str, Any], context: LambdaContext) -> Dict[str, Any]:
6464
"""
6565
Create a new project
@@ -135,3 +135,24 @@ def handler(event: Dict[str, Any], context: LambdaContext) -> Dict[str, Any]:
135135
'error': str(e)
136136
})
137137
}
138+
139+
140+
input = {
141+
"version": "0",
142+
"id": "c868de8e-45c5-f562-59fb-3f47f3a912d1",
143+
"detail-type": "Bedrock Project Request",
144+
"source": "custom.bedrock.blueprint",
145+
"account": "551246883740",
146+
"time": "2025-04-24T16:42:30Z",
147+
"region": "us-west-2",
148+
"resources": [],
149+
"detail": {
150+
"project_name": "sample_proj_5",
151+
"project_description": "Sample Project",
152+
"project_stage": "LIVE",
153+
"operation": "CREATE",
154+
"modality": "document"
155+
}
156+
}
157+
158+
handler(input, None)

0 commit comments

Comments
 (0)