sources/lambda-code/retrieve-rds-instance-state-lambda/lambda_function.py [8:21]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
LOGGER = logging.getLogger()
LOGGER.setLevel(logging.INFO)

#Initialise Boto3 for RDS
rdsClient = boto3.client('rds')


def lambda_handler(event, context):
    

    #log input event
    LOGGER.info(event)
    
    rdsInstanceId = event['rdsInstanceId']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sources/lambda-code/stop-rds-instance-lambda/lambda_function.py [8:20]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
LOGGER = logging.getLogger()
LOGGER.setLevel(logging.INFO)

#Initialise Boto3 for RDS
rdsClient = boto3.client('rds')


def lambda_handler(event, context):
    
    #log input event
    LOGGER.info(event)
    
    rdsInstanceId = event['rdsInstanceId']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



