Skip to content

Commit 898c2b7

Browse files
author
dinsajwa
committed
fix(bda): removed unwanted code
1 parent 6d3771a commit 898c2b7

File tree

1 file changed

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

1 file changed

+1
-21
lines changed

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

Lines changed: 1 addition & 21 deletions
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
@@ -136,23 +136,3 @@ def handler(event: Dict[str, Any], context: LambdaContext) -> Dict[str, Any]:
136136
})
137137
}
138138

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)