def delete_manifest_file()

in functions/CreateManifestFileInS3/lambda_function.py [0:0]


def delete_manifest_file(event, context):
    bucket_name = event['ResourceProperties']['BucketName']
    manifest_file_name = event['ResourceProperties']['ManifestFileName']
    try:
        response = client.delete_object(
            Bucket = bucket_name,
            Key = manifest_file_name
        )
        print(response)
    except Exception as e:
        print(e)
        raise e