Skip to content

Commit

Permalink
removed unneeded function
Browse files Browse the repository at this point in the history
  • Loading branch information
daidokoro committed Nov 14, 2024
1 parent 61cebc4 commit 49b6725
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions custom-resource/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,15 +502,6 @@ def handle(self):
physical_resource_id=self.event.get('PhysicalResourceId', self.context.aws_request_id)
)

def lambda_update_reserved_concurrent_executions(event):
lambda_client = boto3.client('lambda')
reserved_concurrent_executions_value = int(event['ResourceProperties']['Parameters']['ReservedConcurrentExecutions'])
if reserved_concurrent_executions_value > 0:
response = lambda_client.put_function_concurrency(
FunctionName=event['ResourceProperties']['LambdaArn'],
ReservedConcurrentExecutions=reserved_concurrent_executions_value
)

def lambda_handler(event, context):
'''
AWS Lambda handler function
Expand Down

0 comments on commit 49b6725

Please sign in to comment.